For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Quickstart
Follow these steps to go from a fresh install to your first feature flag.
Install
Install the CLI
bashnpm install -g @amplitude/developer-cliGo to Install for
npxusage and prerequisites.Authenticate
Log in
Authenticate with the OAuth device flow and save the result as the default US profile:
bashamp auth login --region usApprove the request in the browser when prompted. Go to Authentication for Personal Access Tokens and profile management.
Verify
Check your context
Confirm the CLI resolves your authentication and org/project context:
bashamp contextExplore
List your projects
bashamp projects listIn an interactive terminal, this prints a table. Pipe it to another command, or pass
--json, to get raw API JSON instead.Create
Create a feature flag
Create a flag in one of your projects:
bashamp flags create --project <project_id> --key my-flag --name "My Flag"Then confirm it exists:
bashamp flags get --project <project_id> --flag <flag_id>
From here, run amp help to list every available command surface, or check Configuration for global flags like --json and --dry-run.
Was this helpful?