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

# Deploy with the CLI

> Install pxxl, sign in, and deploy a folder from your terminal.

**1. Install the CLI**

```bash theme={null}
npm install -g @pxxlapp/pxxl
```

The command is `pxxl`. Check it with `pxxl --version`.

**2. Create an API key**

In the dashboard, open **Settings > Developer > API keys** and create a key. Copy it. It's shown once.

**3. Sign in**

```bash theme={null}
pxxl login --api-key pxxl_your_key
```

**4. Deploy**

From your project folder:

```bash theme={null}
pxxl deploy
```

The first time, Pxxl asks for a name and a domain suffix. It uploads the folder, streams the build, and prints the live URL.

`pxxl deploy` saves the project id in `pxxl.toml`. Run `pxxl deploy` again to ship a new version.

## Start from a template

```bash theme={null}
pxxl init --new vite-react-pnpm --name my-app
cd my-app
pxxl deploy
```

Run `pxxl init --new` with no name to pick a template from a list.

## Link an existing project

If the project already exists on Pxxl (for example, it deploys from GitHub):

```bash theme={null}
pxxl link
pxxl logs -f
```

`pxxl link` saves the project in `pxxl.toml`, so later commands in this folder use it.

## Useful next commands

```bash theme={null}
pxxl doctor              # check auth, git, config and build settings
pxxl env push            # upload your .env file
pxxl logs -f             # follow runtime logs
pxxl dev                 # run locally with your Pxxl env vars
pxxl domains connect example.com
pxxl open                # open the project in the dashboard
```

See [all CLI commands](https://docs.pxxl.app/cli/commands.md).


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