> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alpic.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Alpic CLI

> Deploy and manage your MCP servers from the command line

## Installing Alpic CLI

Install the CLI globally with npm or pnpm:

```bash theme={null}
npm install -g alpic
# or
pnpm add -g alpic
```

Run it without installing via npx:

```bash theme={null}
npx alpic <command>
```

## Authentication

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

### Browser login (recommended)

```bash theme={null}
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](https://app.alpic.ai), 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:

```bash theme={null}
export ALPIC_API_KEY=your_api_key_here
```

> [!NOTE]
>
> If both OAuth login credentials and `ALPIC_API_KEY` are present, the CLI uses `ALPIC_API_KEY`.

> [!WARNING]
>
> 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

```bash theme={null}
alpic --version
```

Prints the installed CLI version.

## Available Commands

| Command | What it does | Full reference |
| - | - | - |
| `team list` | List teams for the current user | [View docs](https://docs.alpic.ai/cli/team-list.md) |
| `team inspect` | Show details of a team and its projects | [View docs](https://docs.alpic.ai/cli/team-inspect.md) |
| `project list` | List projects | [View docs](https://docs.alpic.ai/cli/project-list.md) |
| `project inspect` | Show details of a project and its environments | [View docs](https://docs.alpic.ai/cli/project-inspect.md) |
| `environment list` | List environments for a project | [View docs](https://docs.alpic.ai/cli/environment-list.md) |
| `environment inspect` | Show details of an environment | [View docs](https://docs.alpic.ai/cli/environment-inspect.md) |
| `environment delete` | Delete an environment | [View docs](https://docs.alpic.ai/cli/environment-delete.md) |
| `audit` | Run a beacon audit on an MCP server | [View docs](https://docs.alpic.ai/cli/audit.md) |
| `link` | Link the current directory to an Alpic project | [View docs](https://docs.alpic.ai/cli/link.md) |
| `deploy` | Deploy a project from the current directory or a specified path | [View docs](https://docs.alpic.ai/cli/deploy.md) |
| `publish` | Publish an MCP server to the MCP registry | [View docs](https://docs.alpic.ai/cli/publish.md) |
| `submission create` | Create a submission package for an environment | [View docs](https://docs.alpic.ai/cli/submission-create.md) |
| `submission list` | List the submission packages of a project | [View docs](https://docs.alpic.ai/cli/submission-list.md) |
| `submission inspect` | Show a submission package and the fields it carries | [View docs](https://docs.alpic.ai/cli/submission-inspect.md) |
| `submission update` | Update the fields of a submission package | [View docs](https://docs.alpic.ai/cli/submission-update.md) |
| `deployment list` | List deployments for the current project | [View docs](https://docs.alpic.ai/cli/deployment-list.md) |
| `deployment inspect` | Show details of a specific deployment | [View docs](https://docs.alpic.ai/cli/deployment-inspect.md) |
| `deployment logs` | Retrieve build logs for a deployment | [View docs](https://docs.alpic.ai/cli/deployment-logs.md) |
| `login` | Authenticate via browser OAuth | [View docs](https://docs.alpic.ai/cli/login.md) |
| `logout` | Remove stored OAuth credentials | [View docs](https://docs.alpic.ai/cli/logout.md) |
| `whoami` | Show the current authenticated identity | [View docs](https://docs.alpic.ai/cli/whoami.md) |
| `logs` | Stream runtime logs for an Alpic environment | [View docs](https://docs.alpic.ai/cli/logs.md) |
| `insights intent list` | List grouped user intents for an environment | [View docs](https://docs.alpic.ai/cli/insights-intent-list.md) |
| `insights feedback list` | List user feedback for an environment | [View docs](https://docs.alpic.ai/cli/insights-feedback-list.md) |
| `insights category list` | List intent categories for an environment | [View docs](https://docs.alpic.ai/cli/insights-category-list.md) |
| `insights category create` | Create an intent category | [View docs](https://docs.alpic.ai/cli/insights-category-create.md) |
| `insights category update` | Rename or recolor an intent category | [View docs](https://docs.alpic.ai/cli/insights-category-update.md) |
| `insights category delete` | Delete an intent category | [View docs](https://docs.alpic.ai/cli/insights-category-delete.md) |
| `insights category link` | Link an intent category to intents | [View docs](https://docs.alpic.ai/cli/insights-category-link.md) |
| `insights category unlink` | Unlink an intent category from intents | [View docs](https://docs.alpic.ai/cli/insights-category-unlink.md) |
| `git connect` | Link a project to a git remote repository | [View docs](https://docs.alpic.ai/cli/git-connect.md) |
| `git disconnect` | Unlink a project from its git remote repository | [View docs](https://docs.alpic.ai/cli/git-disconnect.md) |
| `environment-variable add` | Add one or more environment variables to an Alpic environment | [View docs](https://docs.alpic.ai/cli/environment-variable-add.md) |
| `environment-variable list` | List all environment variables for an Alpic environment | [View docs](https://docs.alpic.ai/cli/environment-variable-list.md) |
| `environment-variable remove` | Remove an environment variable from an Alpic environment | [View docs](https://docs.alpic.ai/cli/environment-variable-remove.md) |
| `environment-variable update` | Update the value and/or secret status of an existing environment variable | [View docs](https://docs.alpic.ai/cli/environment-variable-update.md) |
| `playground enable` | Enable the playground for an environment | [View docs](https://docs.alpic.ai/cli/playground-enable.md) |
| `playground disable` | Disable the playground for an environment | [View docs](https://docs.alpic.ai/cli/playground-disable.md) |
| `playground status` | Show playground configuration for an environment | [View docs](https://docs.alpic.ai/cli/playground-status.md) |
| `playground configure` | Set the playground server name and description | [View docs](https://docs.alpic.ai/cli/playground-configure.md) |
| `playground example-prompt add` | Add an example prompt to the playground (max 5) | [View docs](https://docs.alpic.ai/cli/playground-example-prompt-add.md) |
| `playground example-prompt list` | List playground example prompts for an environment | [View docs](https://docs.alpic.ai/cli/playground-example-prompt-list.md) |
| `playground example-prompt remove` | Remove an example prompt from the playground | [View docs](https://docs.alpic.ai/cli/playground-example-prompt-remove.md) |
| `playground headers add` | Add a header to the playground configuration | [View docs](https://docs.alpic.ai/cli/playground-headers-add.md) |
| `playground headers list` | List playground headers for an environment | [View docs](https://docs.alpic.ai/cli/playground-headers-list.md) |
| `playground headers remove` | Remove a playground header | [View docs](https://docs.alpic.ai/cli/playground-headers-remove.md) |
| `telemetry enable` | Opt this machine into anonymous CLI usage reporting | [View docs](https://docs.alpic.ai/cli/telemetry-enable.md) |
| `telemetry disable` | Opt this machine out of anonymous CLI usage reporting | [View docs](https://docs.alpic.ai/cli/telemetry-disable.md) |
| `telemetry status` | Show the current telemetry setting and anonymous machine ID | [View docs](https://docs.alpic.ai/cli/telemetry-status.md) |
| `telemetry destinations list` | List OTLP destinations for an environment | [View docs](https://docs.alpic.ai/cli/telemetry-destinations-list.md) |
| `telemetry destinations create` | Create and verify an OTLP destination | [View docs](https://docs.alpic.ai/cli/telemetry-destinations-create.md) |
| `telemetry destinations update` | Verify and update an OTLP destination | [View docs](https://docs.alpic.ai/cli/telemetry-destinations-update.md) |
| `telemetry destinations delete` | Delete an OTLP destination | [View docs](https://docs.alpic.ai/cli/telemetry-destinations-delete.md) |
| `tunnel` | Expose a local server to the internet through an Alpic tunnel | [View docs](https://docs.alpic.ai/cli/tunnel.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.