Skip to main content

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.

A new account starts with no project

A new account has no project, so there is nothing to select yet. Until you create one, apimetrics project select and every command that needs a project stop with no projects found.

  1. Sign in to the web app, open Projects, and create your first project. Create a new project has the steps. You do not need to verify your email address first.
  2. If a teammate invited you to their project instead, verify your email address first: invitations appear only after you do. Select the link in the verification email, or use the banner at the top of the web app.
  3. Select the project: run apimetrics project select in the CLI.
# 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]
FlagDescription
--idPrint 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​