Thanks to visit codestin.com
Credit goes to docs.context.dev

Skip to main content
Use the context-dev CLI to retrieve company data, scrape websites, and run other API operations from your terminal.
The CLI is generated from the API contract. Command names and flags can change between releases as that contract evolves. Use --help from your installed version as the source of truth.

Install

Download the archive or package for your operating system and architecture from the latest GitHub release.Extract context-dev, move it to a directory on your PATH, then verify it:
Pin a release and verify any published checksums in CI instead of downloading latest on every run.

Set your API key

Create an account at context.dev/signup, copy a key from the dashboard, and expose it to the current shell:
Use a secret manager in CI. Avoid the global --api-key flag for normal use because command-line arguments can appear in shell history and process listings.

Make your first request

The Brand command uses the same discriminator as POST /brand/retrieve:
The command prints the returned company name. Remove --transform to inspect the full response. Do not use older dedicated commands such as retrieve-by-name or identify-from-transaction. The current CLI uses one brand retrieve command with the appropriate --type and matching identifier flag.

Find a command

The top-level resources currently include parse, web, ai, brand, industry, utility, monitors, batch, people, and news. Common operations:
The examples above were checked against the generated CLI source on September 4, 2026. Run the relevant --help command when using a different release.

Control output

Use machine-readable output for scripts and transformations to keep large responses out of an agent’s context window:
Available formats and transformation behavior belong to the installed CLI version. Check context-dev --help before relying on one in automation.

Use with an agent

Add a short instruction to your repository’s agent file:
AGENTS.md
Keep approval prompts enabled for commands that create, update, run, or delete monitors and batches. Do not let untrusted website content choose shell arguments.

Troubleshoot

Next steps

Agent quickstart

Scope an integration task and verify the code your agent writes.

Connect MCP

Connect your agent to the hosted Context.dev tools.

CLI source and releases

Inspect the CLI source or download a release.