AI

Best CLI Tools for Developers and AI Agents in 2027: Top 12 Compared

A comparison of 12 CLI tools for coding and AI agents, led by Bright Data CLI for web data, plus GitHub CLI, Docker, AWS CLI, and more.
28 min read
Best CLI Tools for Developers and AI Agents

In this guide, you will see:

  • Why command-line interfaces matter for software development and automation.
  • Which criteria to consider when evaluating the best CLI tools for coding.
  • How the top CLI tools compare across common development categories.

Let’s dive in!

TL;DR: Summary Table of the Best CLI Tools for Coding

CLI tool Developer workflows Agentic workflows Why it matters Supported operating systems Infrastructure
Bright Data CLI Collect public web data and run repeatable search or scraping jobs. Retrieve live pages, structured records, and browser state to ground agent tasks. Combines search, extraction, and remote browser operations in one terminal interface. Windows, macOS, Linux The local CLI connects to Bright Data’s cloud products, which run on Bright Data’s proxy infrastructure. Bright Data’s residential proxy network spans 400M+ monthly IPs across 195 countries, with a 99.95% success rate and 99.99% network uptime.
GitHub CLI Manage repositories, issues, pull requests, and Actions. Inspect issues, create branches and pull requests, and monitor CI runs. Automates the path from code changes to review and delivery. Windows, macOS, Linux Local CLI connected to GitHub APIs and local Git.
Docker CLI Build images, run containers, and manage containerized services. Start reproducible development services and run builds or tests in containers. Keeps development and CI environments consistent across machines. Windows, macOS, Linux Local client connected to the Docker Engine daemon.
Ollama CLI Download, run, and manage local language models. Provide a local model backend for supported coding assistants. Runs inference on local hardware, with cloud models available as an option. Windows, macOS, Linux Local service and model files, with optional cloud inference.
Terraform CLI Plan and apply infrastructure described in configuration files. Draft configuration and review planned infrastructure changes before applying them. Makes infrastructure changes repeatable and reviewable in version control. Windows, macOS, Linux Local CLI calls provider APIs, with optional remote state.
AWS CLI Manage AWS resources from a terminal or deployment script. Run cloud operations through configured credentials and IAM permissions. Makes cloud resource management scriptable across local and CI workflows. Windows, macOS, Linux Local CLI connected to AWS service APIs.
Vercel CLI Develop, build, and deploy web applications. Create preview deployments and inspect project deployment workflows. Connects local projects with preview and production environments. Windows, macOS, Linux Local CLI connected to the Vercel platform, with local development and build options.
Supabase CLI Develop backends with local databases, migrations, and hosted projects. Start local services, manage schema changes, and deploy Edge Functions. Provides a repeatable workflow across local backend development and hosted services. Windows, macOS, Linux Local CLI manages containerized services and connects to hosted Supabase projects.
Snyk CLI Scan source code, dependencies, containers, and infrastructure configuration. Run security checks during code changes and surface findings for remediation. Finds application risks during development and CI instead of only after release. Windows, macOS, Linux Local scans with authenticated connections to Snyk services.
Google Workspace CLI Automate Workspace services from terminal scripts. Let agents query and manage Workspace data through structured JSON commands. Brings email, files, calendars, and documents into repeatable API workflows. Windows, macOS, Linux Local CLI connected to Google Workspace APIs.
FFmpeg Build local audio and video processing pipelines. Convert, filter, or extract media as part of a larger task. Makes media transformations repeatable in scripts and automation. Windows, macOS, Linux Local audio and video processing.
Pandoc Convert documents across publishing and office formats. Transform project documentation and other files between supported formats. Automates document conversion in writing and publishing workflows. Windows, macOS, Linux Local document conversion.

The Role of the Command Line in Modern Development

Command-line interfaces (CLIs) provide a direct way to run tools and execute tasks from a terminal. A single command can build or test a project, inspect files, query a service, deploy an application, manage infrastructure, and much more.

Because commands accept arguments and return output, they can be saved in scripts, combined using shell pipes, and reused locally, in CI pipelines, or inside containers. This makes operations easier to automate, reproduce, and integrate with other tools. Shell history also keeps executed commands visible, making it easier to review steps and debug issues.

AI coding agents such as Claude Code, OpenAI Codex CLI, Gemini CLI, and Grok Build can use command-line tools when given terminal access. They can inspect commands with --help, construct invocations, interpret their outputs, and pass results to other CLI tools.

The result of the “--help” flag for the Bright Data CLI

Access to CLI tools lets AI agents handle tasks and workflows beyond their built-in capabilities.

Criteria for Selecting CLI Tools for Coding

A wide range of command-line tools supports development tasks, from source control and container management to AI models, cloud services, security, and document processing.

Choosing the best CLI tools means evaluating them against a consistent set of criteria, including:

  • Best for: The primary task each CLI is selected for, such as code collaboration, container management, or media processing.
  • Supported environments: The operating systems on which each CLI runs.
  • Prerequisites: Required runtimes, accounts, credentials, services, or other dependencies.
  • Setup: Installation methods and any required authentication steps.
  • Main commands: Useful commands with their syntax and purpose. The number varies by tool, so the lists focus on practical commands without padding.
  • Underlying infrastructure: Whether the CLI runs locally, connects to remote services, or relies on other software.
  • GitHub stars: The star count for the CLI’s public repository.

Best CLI Tools for Coding By Category

Explore the top CLI tools, evaluated against the criteria presented earlier. Each solution has been selected as the best-in-class option for its primary development use cases.

The selection covers a range of categories, including web data access, code collaboration, container management, local AI, and more.

Bright Data CLI: Best for Web Data Collection

Bright Data CLI

Bright Data CLI gives developers and AI agents a terminal interface for web search, page scraping, structured data extraction, and remote browser automation.

It provides commands for connecting to Bright Data’s core web data products:

  • SERP API: Returns structured search results from Google, Bing, and Yandex, with query options for location, language, device, page, and result type.
  • Web Unlocker API: Fetches page content while handling proxy selection, CAPTCHA challenges, and other access barriers. The CLI can return Markdown, HTML, JSON, or screenshots.
  • Web Scraper APIs: Provide thousands of prebuilt scrapers that return structured data. The CLI can find a scraper, inspect its methods and input fields, and run it on supplied URLs or records.
  • Scraper Studio: Offers a cloud-hosted environment to build, run, and manage custom web scrapers. The CLI can generate a collector from a URL and data description, run it, or request an AI-assisted repair.
  • Browser API: Exposes hosted browsers for automation and dynamic-page scraping. The CLI can open remote sessions to navigate, inspect pages, interact with elements, and capture screenshots.

Page retrieval defaults to Markdown, while structured data commands support formats such as JSON, CSV, and NDJSON.

The CLI also manages proxy zones and APIs, account usage, and local configuration. It supports asynchronous jobs and can write results to files. The package is available as @brightdata/cli on npm, with bdata as a command alias, and its source is available in the public GitHub repository.

Note: Bright Data CLI is free to install, and the Bright Data free plan gives every new account 5,000 credits per month to use across supported products.

Further reading:

Best for: Collecting public web data, searching the web, and automating browser tasks from terminal workflows and coding agents.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Node.js 20+: The npm package requires Node.js to install and run.
  • Bright Data account: Required to authorize requests and use enabled services. New accounts include 5,000 free credits per month.

Setup:

  • Install the package globally with npm:

npm install -g @brightdata/cli

  • Run brightdata login to sign in through browser-based OAuth. In SSH or other headless environments, use brightdata login --device.

Main commands:

Command Description
brightdata scrape <url> [<flags>] Fetch a page as Markdown, HTML, JSON, or a screenshot, with geo-targeting and bot handling.
brightdata search <query> [<flags>] Query Google, Bing, or Yandex with country, language, page, device, and result-type filters.
brightdata pipelines search <query...> [--limit <limit>] Find prebuilt structured-data scrapers by target website, platform, or data type.
brightdata pipelines info <dataset_id> [<method>] Inspect collection methods, required input fields, and an example command for a scraper.
brightdata pipelines run <dataset_id> <method> [<url>...] [<flags>] Run a scraper on URLs or structured inputs, returning records as JSON, CSV, or NDJSON.
brightdata pipelines status <snapshot_id> [--wait] Check an asynchronous collection run or wait until its processing finishes.
brightdata pipelines results <snapshot_id> [<flags>] Retrieve completed pipeline records and write them in JSON, CSV, or line-delimited formats.
brightdata scraper create <url> <description> [<flags>] Build a custom scraper from a URL and a plain-language description of desired fields.
brightdata scraper run <collector_id> [<url>] [<flags>] Run a saved scraper on one URL or submit batches from a list or file.
brightdata scraper heal <collector_id> <prompt> Request an AI-assisted repair while keeping the existing Collector ID stable.
brightdata browser open <url> [<flags>] Start or reuse a remote browser session and navigate to the requested page.
brightdata browser snapshot [--compact] Read a page as an accessibility tree with references for interactive elements.
brightdata browser click <ref> Click a page element using the reference returned by the latest browser snapshot.
brightdata add mcp --agent <agent_name> --global Register the MCP server in the selected coding agent’s global configuration.
brightdata zones [--json] List configured proxy zones and APIs or export their details in structured JSON.

For the complete syntax, flags, and options, use the Bright Data CLI command reference.

Underlying infrastructure: The @brightdata/cli package runs locally on Node.js, stores credentials locally, and uses browser-based OAuth by default, with device flow and API key options also available. Web retrieval, search, scraping jobs, and browser sessions connect to Bright Data’s cloud products, which run on Bright Data’s enterprise-ready infrastructure.

That infrastructure includes a residential proxy network with 400M+ monthly IPs, a 99.95% success rate, and 99.99% network uptime. On first login, the CLI automatically creates the cli_unlocker and cli_browser APIs in your Bright Data account. Browser commands also start a lightweight local daemon that maintains the remote Browser API connection and session state between commands.

GitHub stars: 6.2k+ stars.

GitHub CLI: Ideal for Code Collaboration

GitHub CLI

GitHub CLI (gh) is a free command-line tool for bringing issues, pull requests, Actions, releases, and repository operations into the terminal alongside Git. It supports interactive workflows and scripts on GitHub.com and GitHub Enterprise Server.

Best for: Managing repositories, issues, pull requests, and CI workflows from the terminal or automation scripts.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Git: For cloning repositories and checking out pull request branches locally.
  • GitHub account: For account and repository operations.
  • GitHub Enterprise Server host: Needed when working with a self-hosted GitHub Enterprise instance.

Setup:

Main commands:

Command Description
gh auth login Authenticate gh with GitHub.com or a specified GitHub Enterprise Server host.
gh repo clone <owner>/<repo> Clone a remote GitHub repository locally, optionally choosing a directory and Git flags.
gh issue list [<flags>] List open issues by default, with filters for state, labels, assignees, and search.
gh pr create [<flags>] Create a pull request interactively or set its title, body, base, and reviewers using flags.
gh pr checkout [<number> or <url> or <branch>] Fetch and switch to a pull request branch in the local Git repository.
gh pr review [<number> or <url> or <branch>] Submit an approval, request changes, or leave a comment on a pull request.
gh run list [<flags>] List recent Actions workflow runs and filter results by repository, workflow, branch, or status.
gh workflow run [<workflow-id> or <workflow-name>] Trigger a workflow with workflow_dispatch, optionally specifying a branch and input values.
gh release create <tag> [<filename>...] Publish a GitHub Release from a tag and optionally upload build files as assets.

Explore the full command reference in the GitHub CLI manual.

Underlying infrastructure: GitHub CLI runs locally and uses the local Git installation for repository operations. For remote data and actions, it sends authenticated HTTP requests to GitHub’s REST or GraphQL APIs. The gh auth login flow stores tokens in the system credential store. GitHub CLI supports GitHub.com and GitHub Enterprise Server.

GitHub stars: 47.2k+ stars.

Docker CLI: Great for Container Management

Docker CLI

Docker CLI (docker) is a command-line client for Docker Engine. It builds images, starts and manages containers, works with registries, and runs multi-container applications through Docker Compose from a terminal or scripts.

Best for: Building images, running containers, and managing containerized services through a local or remote container engine.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Docker Engine: For running containers, the daemon must be running locally or reachable remotely.
  • Docker Compose plugin: For docker compose commands. Docker Desktop includes Compose, while Linux users can install the Compose plugin.
  • Registry credentials: Required to access private images or push to registries that require authentication.

Setup:

Docker CLI sends commands to Docker Engine, whose daemon runs containers. On Windows and macOS, Docker Desktop bundles the CLI and Engine.

Main commands:

Command Description
docker run [<options>] <image> [<command>] [<arg>...] Create and start a container from an image, optionally running a specified command.
docker build -t <image_name> . Build an image from a Dockerfile and local build context, tagging the result.
docker ps [<options>] List running containers, with options to show stopped containers and filter results.
docker images [<repository>[:<tag>]] List images stored locally, with optional filtering by repository and tag.
docker pull <image>[:<tag>] Download an image from a registry to the Docker host.
docker push <image>[:<tag>] Upload a local image to a registry where the user has permission.
docker exec [<options>] <container> <command> [<arg>...] Run a command inside a running container, optionally with an interactive terminal.
docker logs [<options>] <container> Show or follow a container’s standard output and error logs.
docker stop [<options>] <container> Stop one or more running containers, allowing time for a graceful shutdown.
docker compose up [<options>] [<service>...] Create and start the services defined in a Compose file, attaching output unless detached.

For more commands and flags, see the Docker CLI reference.

Underlying infrastructure: Docker CLI runs locally and uses the Docker Engine API to instruct the long-running daemon. The daemon manages images, containers, networks, and volumes on the Docker Engine host. The CLI can target local or remote daemons through Docker contexts. Docker Desktop bundles the CLI and Engine, while Linux installations can install the CLI and Engine separately.

GitHub stars: 6.1k+ stars.

Ollama CLI: Amazing for Running Local AI Models

Ollama CLI

Ollama CLI provides terminal access to local language models. It downloads models, runs interactive or scripted inference, manages model files and running sessions, and launches coding assistant integrations from the same command line.

Best for: Running and managing local language models, with terminal support for coding assistant integrations.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Hardware and storage: Requirements vary by model. Local inference uses available memory and disk space, and supported GPUs can accelerate workloads.
  • Ollama account: Not needed for local models. Sign-in and usage credits or a paid plan are required for cloud models.

Setup:

Main commands:

Command Description
ollama run <model> [<prompt>] Run a model interactively or submit a prompt directly from the terminal.
ollama launch [<integration>] Configure and launch supported coding assistants with an Ollama model.
ollama pull <model> Download a model to the local machine for use with the CLI.
ollama ls List all models available in the local Ollama model store.
ollama ps Show which models are currently loaded in memory for inference.
ollama stop <model> Stop a model that is currently running in the Ollama service.
ollama rm <model> Remove a model from the local store to reclaim disk space.
ollama serve Start Ollama’s server process to expose the local model service.

For additional flags and examples, consult the Ollama CLI reference.

Underlying infrastructure: The CLI communicates with Ollama’s local service, started with ollama serve. Local model inference runs on the computer hosting Ollama, using its CPU or a compatible GPU, and local model files are stored on that machine. Cloud models run on Ollama’s servers and do not need to be downloaded locally.

GitHub stars: 187.9k+ stars.

Terraform CLI: Ideal for Infrastructure as Code

Terraform CLI

Terraform CLI manages infrastructure as code from a terminal. It initializes project directories, installs provider plugins, previews proposed changes, and applies configurations to cloud and service APIs, with state tracking resources across runs.

Best for: Provisioning and managing cloud and service infrastructure through version-controlled configuration files.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Terraform configuration: A project directory with .tf files describing provider settings and the resources to manage.
  • Provider credentials: Required when a configuration manages resources through an authenticated provider. Use an identity with permissions for the planned operations.

Setup:

  • Windows: Download the archive from the Terraform installation page and add the extracted executable directory to PATH.
  • macOS: Use Homebrew with brew tap hashicorp/tap followed by brew install hashicorp/tap/terraform.
  • Linux: Install from HashiCorp’s package repository for your distribution or use the matching release binary.
  • Configure credentials for each cloud or service provider in the project before running plans that access its resources.

Main commands:

Command Description
terraform init [<options>] Prepare a working directory by initializing its backend, modules, and provider plugins.
terraform fmt [-recursive] Reformat configuration files into Terraform’s standard style, optionally traversing subdirectories.
terraform validate Check configuration syntax and internal consistency in an initialized working directory.
terraform plan [<options>] Create an execution plan that previews proposed infrastructure changes without applying them.
terraform apply [<options>] [<plan_file>] Generate a plan, prompt for approval, and apply its changes to managed infrastructure.
terraform destroy [<options>] Show a proposed deletion plan and destroy infrastructure managed by the current configuration.

For option details and additional subcommands, browse the Terraform CLI command reference.

Underlying infrastructure: Terraform CLI runs locally by default and stores state in a local JSON file unless the configuration selects a remote backend. Provider plugins call the APIs of cloud and service platforms to read or change resources. Terraform CLI can also work with HCP Terraform or Terraform Enterprise for team workflows.

GitHub stars: 50.3k+ stars.

AWS CLI: Best for Cloud Infrastructure

AWS CLI

AWS Command Line Interface is an open-source command-line tool for calling AWS service APIs from a terminal or script. It includes service commands for operations such as Amazon S3 transfers and CloudFormation deployments, alongside API-level operations.

Best for: Managing and automating cloud resources and services from a terminal, shell script, or deployment workflow.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • AWS account: Required to access AWS service APIs and the resources you manage.
  • Credentials and IAM permissions: Provide an identity authorized to perform the actions required by your commands.

Setup:

Main commands:

Command Description
aws configure sso --profile <profile_name> Create a named profile for IAM Identity Center sign-in and AWS access settings.
aws sts get-caller-identity Return the AWS account and identity associated with the active credentials.
aws s3 ls [<s3_uri>] List S3 buckets or the objects and prefixes within a specified bucket.
aws s3 cp <local_path> <s3_uri> Copy files between a local path and Amazon S3, with optional recursive transfer.
aws ec2 describe-instances [--filters <filter_expression>...] Show EC2 instance information, with filters to narrow results by state or other attributes.
aws ec2 start-instances --instance-ids <instance_id>... Start stopped EC2 instances by ID, subject to the caller’s IAM permissions.
aws lambda list-functions List Lambda functions in the selected Region, with optional version and pagination settings.
aws logs tail <log_group> --follow Display CloudWatch Logs events from a log group and optionally follow new events.
aws cloudformation deploy --template-file <template_file> --stack-name <stack_name> Create or update a CloudFormation stack from a template and supporting parameters.

Find more service commands and options in the AWS CLI Command Reference.

Underlying infrastructure: AWS CLI runs locally and sends requests to AWS service APIs using a selected credential source and profile. IAM Identity Center profiles are refreshed by aws sso login. Named profiles and settings are stored in the local AWS config and credentials files. The active identity’s permissions determine resource access, while charges depend on the AWS services and resources used.

GitHub stars: 17.4k+ stars.

Vercel CLI: Great for Deploying Web Applications

Vercel CLI

Vercel CLI brings web project development and deployment workflows to the terminal. It connects local projects to Vercel, runs development and build commands, manages environment variables, and deploys applications to the platform.

Best for: Deploying frontend and full-stack web projects to preview and production environments.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Node.js and npm: Required for the global npm installation.
  • Vercel account and project: Needed for linking directories, managing project settings, and standard deployments. A temporary deployment can be created without an account.

Setup:

npm install -g vercel

Main commands:

Command Description
vercel login Sign in to a Vercel account so the CLI can access projects and administrative resources.
vercel link Link the current directory to a Vercel project and write project settings locally.
vercel dev Run an app locally with Vercel’s development environment for Functions and Middleware.
vercel build Build a project locally or in CI and prepare artifacts for deployment.
vercel deploy --prod Deploy a project to production instead of creating the default preview deployment.
vercel env pull <env_file> Write the linked project’s environment variables to a local file.
vercel env add <variable_name> --environment <environment> Add an environment variable to selected deployment environments for the linked project.
vercel inspect <deployment_url> Retrieve details and deployment status using a deployment URL or ID.
vercel logs --deployment <deployment_url> View runtime logs for a specified deployment and inspect request behavior.

Explore the complete Vercel CLI command catalog and options in the CLI documentation.

Underlying infrastructure: Vercel CLI runs on the local machine. vercel dev recreates the deployment environment locally for development. vercel build can produce deployment output locally or in CI, and vercel deploy --prebuilt uploads that output without sending the project’s source code. Standard deployments are managed on Vercel’s platform. Most project and administrative operations require vercel login, while CI can authenticate with VERCEL_TOKEN. The vercel deploy --temporary option creates a temporary deployment without account sign-in.

GitHub stars: 16.7k+ stars.

Supabase CLI: Fantastic for Backend and Database Development

Supabase CLI

Supabase CLI brings local development and hosted project management to the terminal. It allows you to initialize local workspaces, start a service stack, manage database migrations, deploy Edge Functions, and generate TypeScript types from a project schema.

Best for: Managing application backends through local database development, schema migrations, and hosted deployments.

Supported environments: Windows, macOS, Linux

Prerequisites:

Setup:

Main commands:

Command Description
supabase init Initialize a project directory with Supabase configuration for local development.
supabase start Start the local Supabase stack, including its configured database and service containers.
supabase stop Stop all running local Supabase containers and services for the current development stack.
supabase login Authenticate the CLI with a Supabase personal access token for Management API operations.
supabase link --project-ref <project_ref> Associate the local project with a hosted project so remote commands target it.
supabase migration new <migration_name> Create a timestamped SQL migration file for local database schema changes.
supabase db pull --remote Read linked database schema changes and create a local SQL migration file.
supabase db push --remote Apply local migration files to the linked hosted Supabase database.
supabase functions deploy <function_name> Deploy one or more Edge Functions from the local project to a hosted project.
supabase gen types --lang typescript [--remote] Generate TypeScript type definitions from a local database or linked remote schema.

Browse the full Supabase CLI command catalog and usage flags in the official CLI reference.

Underlying infrastructure: Supabase CLI runs on the developer machine. supabase start launches local services in containers using a Docker API-compatible runtime. For hosted projects, supabase login authenticates with a personal access token, which is stored in the operating system keyring when available or a local token file otherwise. Use supabase link --project-ref PROJECT_REF to associate the local project with a hosted one before running remote database or deployment commands. In CI, set SUPABASE_ACCESS_TOKEN to authenticate without an interactive login.

GitHub stars: 2.5k+ stars.

Snyk CLI: Best for Application Security Scanning

Snyk CLI

Snyk CLI brings application security checks into local development and CI workflows. It enables you to test open-source dependencies, source code, container images, and infrastructure files. It can also upload project snapshots for continuous monitoring.

Best for: Scanning source code, open-source dependencies, container images, and infrastructure configuration for security issues.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Node.js and npm: Required for the global npm installation.
  • Snyk account: Needed to run organization-level scans and project monitoring.
  • Scan target: A supported dependency manifest, source tree, infrastructure file, or container image to inspect.

Setup:

npm install -g snyk
  • Run snyk auth to connect the CLI to your account.

Main commands:

Command Description
snyk auth Authenticate the CLI with an account to run scans and access organization features.
snyk test [<target>] Scan project dependencies for known open-source vulnerabilities and license issues.
snyk code test [<path>] Analyze source code with static analysis to identify security issues.
snyk container test <image> Check container images for vulnerabilities before deploying them to an environment.
snyk iac test [<path>] Inspect infrastructure-as-code files for security misconfigurations and policy violations before deployment.
snyk secrets test [<path>] Scan repository text files for hardcoded credentials and other exposed secrets.
snyk monitor [<target>] Snapshot a project to receive updates about new open-source vulnerabilities.

See the Snyk CLI help pages for command-specific flags and additional scan modes.

Underlying infrastructure: Snyk CLI runs locally against project manifests, source trees, infrastructure files, and container images. Authenticated scans connect to Snyk services for analysis and organization context. snyk monitor uploads a project snapshot for recurring checks. CI workflows can authenticate with a SNYK_TOKEN.

GitHub stars: 5.7k+ stars.

Google Workspace CLI: Perfect for Productivity Automation

Google Workspace CLI

Google Workspace CLI (gws) is an open-source terminal interface for Drive, Gmail, Calendar, Sheets, and other Google Workspace APIs. It returns structured JSON and includes agent skills. The project is not an officially supported Google product.

Best for: Automating email, file, calendar, and document workflows from terminal scripts or AI agents.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Node.js 18+: Required for the npm installation. Standalone releases are available for using a prebuilt binary.
  • Google Cloud project and OAuth credentials: Needed to authorize Workspace API calls. The automated setup requires the gcloud CLI. Manual OAuth setup is also available.
  • Google account with Workspace access: Required for the Workspace APIs and scopes used by your commands.

Setup:

npm install -g @googleworkspace/cli
  • Run gws auth setup to configure a Cloud project and enable APIs. This step requires gcloud.
  • Run gws auth login and authorize the Workspace API scopes your commands need.

Main commands:

Command Description
gws auth setup Configure a Google Cloud project and enable Workspace APIs for OAuth access.
gws auth login Sign in to Google and choose the Workspace API scopes the CLI may use.
gws drive files list --params '{"pageSize":<page_size>}' List a selected number of Drive files and return their metadata as structured JSON.
gws sheets spreadsheets values get --params '{"spreadsheetId":"<spreadsheet_id>","range":"<sheet_name>!<cell_range>"}' Read cell values from a spreadsheet range using the Google Sheets API.
gws gmail +send --to <recipient_email> --subject "<subject>" --body "<message>" Send an email through Gmail with recipient, subject, and message text.
gws calendar +agenda Show upcoming Calendar events using the account timezone and helper options.
gws schema drive.files.list Display the request and response schema for a Google Workspace API method.
gws drive files create --json '{"name":"<file_name>"}' --upload <local_file> Upload a local file to Drive and set its metadata in one operation.

The project README includes workflow examples, and generated services and methods provide their own --help output.

Underlying infrastructure: gws runs locally and builds its service commands from Google Discovery Service definitions, then sends authenticated requests to Google Workspace APIs. OAuth credentials are encrypted at rest, with the key stored in the operating system keyring when available. Responses use structured JSON, and paginated requests can stream as NDJSON.

GitHub stars: 32.5k+ stars.

FFmpeg: Powerful for Media Processing

FFmpeg

FFmpeg is a cross-platform multimedia framework with command-line tools for converting, filtering, recording, and streaming audio and video. The ffmpeg tool processes media, while ffprobe allows you to inspect streams and metadata for analysis.

Best for: Converting, filtering, recording, and streaming audio or video from scripts and media pipelines.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • Build toolchain: Source builds require a C compiler and GNU Make 3.81 or later. Windows builds use MSVC or MinGW-w64.
  • Optional libraries: Additional codecs and filters may require libraries that are not enabled by default in the source build.

Setup:

The official FFmpeg download page lists source releases and links to platform builds. To compile FFmpeg from source on macOS or Linux, run:

./configure

make

make install

For Windows, follow the platform-specific compilation guide.

Main commands:

Command Description
ffmpeg -i <input_file> <output_file> Convert input media and encode it in the format inferred from the output filename.
ffmpeg -i <input_file> -c copy <output_file> Remux media streams to a different container without re-encoding audio or video.
ffmpeg -ss <start_time> -i <input_file> -t <duration> -c copy <clip_file> Create a clip from a selected start time and duration without re-encoding.
ffmpeg -i <input_file> -vf scale=<width>:<height> <output_file> Scale the video stream to the selected dimensions before writing the output.
ffmpeg -i <input_file> -vn <audio_file> Extract audio to a separate file while excluding the input’s video stream.
ffmpeg -i <input_file> -frames:v 1 <thumbnail_file> Extract the first video frame and save it as a thumbnail image.
ffmpeg -i <input_file> -b:v <video_bitrate> <output_file> Set an output video bitrate to control its file size and quality.
ffprobe -v error -show_streams -of json <input_file> Print stream details as JSON for metadata inspection or downstream parsing.

For codec, filter, and option references, browse the FFmpeg documentation index.

Underlying infrastructure: FFmpeg runs locally, processing media through decoders, filters, and encoders before writing output to a file or stream. ffprobe reads media sources and emits human-readable or machine-readable details. Available codecs and formats depend on the build configuration and enabled libraries.

GitHub stars: 68.1k+ stars.

Pandoc: Strong for Document Conversion

Pandoc

Pandoc is a universal document converter that reads and writes formats such as Markdown, HTML, DOCX, EPUB, and LaTeX. It can also apply templates, filters, citations, and metadata during conversion.

Best for: Converting documents between markup, office, ebook, and publishing formats in scripted workflows.

Supported environments: Windows, macOS, Linux

Prerequisites:

  • PDF engine: Needed only for PDF output. Pandoc uses LaTeX by default, or another program can be selected with --pdf-engine.

Setup:

Download the installer or binary package for your operating system from the official Pandoc installation page.

Main commands:

Command Description
pandoc <input_file.md> -o <output_file.docx> Convert Markdown into a Word document, using file extensions to infer formats.
pandoc -f <input_format> -t <output_format> <input_file> -o <output_file> Set input and output formats explicitly when filename extensions cannot identify them.
pandoc <chapter_1.md> <chapter_2.md> -o <combined_file.html> Combine multiple source files into one output document, separating inputs with blank lines.
pandoc -s -o <output_file.html> <input_file.md> Create a complete HTML document with an appropriate header and footer.
pandoc <input_file.md> -o <output_file.pdf> Generate PDF output using a LaTeX engine or another selected PDF program.
pandoc <input_file.docx> --extract-media=<media_directory> -o <output_file.md> Extract embedded or linked media to a directory and update document references.
pandoc <input_file.md> --lua-filter=<filter_file.lua> -o <output_file.html> Run a Lua filter to transform the internal document representation before writing output.

The Pandoc User’s Guide covers more formats, reader and writer options, and conversion features.

Underlying infrastructure: Pandoc runs locally. Readers parse input files into an internal document representation, and writers render that representation in the target format. Filters can modify the intermediate document, while PDF conversion launches the selected PDF engine. Input and output can use files or standard streams.

GitHub stars: 47.0k+ stars.

Conclusion

This guide compared CLI tools for developers and AI agents across software development, automation, infrastructure management, and content processing, including the environments and workflows each one supports.

Bright Data CLI is a strong fit for web data retrieval, browser automation, and web search. These capabilities help AI agents ground responses in current information and interact with web pages. Developers can also use them to build web data pipelines from the command line.

Other leading CLI tools for development include GitHub CLI, Docker CLI, Ollama CLI, Terraform CLI, AWS CLI, Vercel CLI, Supabase CLI, Snyk CLI, Google Workspace CLI, FFmpeg, and Pandoc.

Bright Data CLI brings web search, page scraping, structured data extraction, and remote browser automation into terminal workflows for developers and AI agents. The CLI is free to install, and new accounts receive 5,000 free credits each month.

Create a Bright Data account and get started with Bright Data CLI using the free monthly credits.

No credit card required
Antonello Zanini

Technical Writer

5.5 years experience

Antonello Zanini is a technical writer, editor, and software engineer with 5M+ views. Expert in technical content strategy, web development, and project management.

Expertise
Web Development Web Scraping AI Integration