Skip to main content

Installing Alpic CLI

Install the CLI globally with npm or pnpm:
Run it without installing via npx:

Authentication

The CLI supports two authentication methods: browser-based login and API key.
Opens a browser window to authenticate. Tokens are stored locally and reused across sessions.

API key

Set the ALPIC_API_KEY environment variable to authenticate without a browser:
1

Get your API key

In the Alpic dashboard, open your team and go to API Keys in the sidebar. Click New API key, name it, and copy the key.
2

Set the environment variable

Export the key in your shell or add it to your CI/CD secrets:
If both OAuth login credentials and ALPIC_API_KEY are present, the CLI uses ALPIC_API_KEY.
Keep your API key secure and never commit it to version control. If exposed, revoke it in the dashboard and create a new one.

Checking the version

Prints the installed CLI version.

Available Commands