Skip to main content

Installing Alpic CLI

Install the CLI globally with npm or pnpm:
npm install -g alpic
# or
pnpm add -g alpic
Run it without installing via npx:
npx alpic <command>

Authentication

The CLI supports two authentication methods: browser-based login and API key.

Browser login

alpic login
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:
export ALPIC_API_KEY=your_api_key_here
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

alpic --version
Prints the installed CLI version.

Available Commands

deploy

Deploy a project to Alpic. Collects source files, uploads them, and waits for the deployment to complete.
alpic deploy
Full reference →

login

Log in to Alpic by completing an OAuth flow in your browser. Stores tokens locally.
alpic login
Full reference →

logout

Remove locally stored OAuth credentials.
alpic logout
Full reference →

whoami

Print the currently authenticated identity (OAuth user or API key team).
alpic whoami
Full reference →

logs

Stream runtime logs for an Alpic environment.
alpic logs --environment-id <environmentId>
Full reference →

git connect

Link an Alpic project to a GitHub remote repository to enable automatic deployments.
alpic git connect
Full reference →

git disconnect

Remove the GitHub remote repository link from an Alpic project.
alpic git disconnect
Full reference →

telemetry enable

Opt this machine into anonymous CLI usage reporting.
alpic telemetry enable
Full reference →

telemetry disable

Opt this machine out of anonymous CLI usage reporting.
alpic telemetry disable
Full reference →

telemetry status

Show the current telemetry setting and anonymous machine ID for this installation.
alpic telemetry status
Full reference →

environment-variable add

Add one or more environment variables to an Alpic environment.
alpic environment-variable add
Full reference →

environment-variable list

List all environment variables for an Alpic environment.
alpic environment-variable list
Full reference →

environment-variable remove

Remove an environment variable from an Alpic environment.
alpic environment-variable remove
Full reference →

environment-variable update

Update the value and/or secret status of an existing environment variable.
alpic environment-variable update
Full reference →