Project
Manage the active project. Most generated commands operate against the active project, so set it once and the CLI remembers it (stored in state.json in your config directory).
apimetrics project [command]
project select
Set the active project for all subsequent commands.
apimetrics project select [project-id]
Provide a project ID directly to set it without prompting, or omit it to choose interactively from the list of projects you have access to.
# Choose interactively
apimetrics project select
# Set directly by ID (no prompt)
apimetrics project select prj_abc123
project show
Show the active project.
apimetrics project show [--id]
| Flag | Description |
|---|---|
--id | Print the project ID instead of the name |
# Print the active project name
apimetrics project show
# Print just the ID (useful in scripts)
apimetrics project show --id
See also
- Authentication — sign in before selecting a project
- Global flags