Installing Alpic CLI
Install the CLI globally with npm or pnpm:Authentication
The CLI supports two authentication methods: browser-based login and API key.Browser login (recommended)
API key
Set theALPIC_API_KEY environment variable to authenticate without a browser:
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.
If both OAuth login credentials and
ALPIC_API_KEY are present, the CLI uses ALPIC_API_KEY.Checking the version
Available Commands
| Command | What it does | Full reference |
|---|---|---|
link | Link the current directory to an Alpic project | View docs |
deploy | Deploy a project from the current directory or a specified path | View docs |
publish | Publish an MCP server to the MCP registry | View docs |
deployment list | List deployments for the current project | View docs |
deployment inspect | Show details of a specific deployment | View docs |
deployment logs | Retrieve build logs for a deployment | View docs |
login | Authenticate via browser OAuth | View docs |
logout | Remove stored OAuth credentials | View docs |
whoami | Show the current authenticated identity | View docs |
logs | Stream runtime logs for an Alpic environment | View docs |
git connect | Link a project to a git remote repository | View docs |
git disconnect | Unlink a project from its git remote repository | View docs |
environment-variable add | Add one or more environment variables to an Alpic environment | View docs |
environment-variable list | List all environment variables for an Alpic environment | View docs |
environment-variable remove | Remove an environment variable from an Alpic environment | View docs |
environment-variable update | Update the value and/or secret status of an existing environment variable | View docs |
telemetry enable | Opt this machine into anonymous CLI usage reporting | View docs |
telemetry disable | Opt this machine out of anonymous CLI usage reporting | View docs |
telemetry status | Show the current telemetry setting and anonymous machine ID | View docs |
tunnel | Expose a local server to the internet through an Alpic tunnel | View docs |