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

# Quickstart

> Get started with the Control Plane CLI in minutes.

Follow these steps to install, authenticate, and start using the Control Plane CLI.

**1. Install the CLI**

Choose your preferred installation method:

> [tab] npm
>
> Install via npm if you have Node.js **version 18** or later installed.
>
> ```bash theme={null}
> npm install -g @controlplane/cli
> ```
>
> > [!NOTE]
> >
> > Requires [Node.js](https://nodejs.org/en/download/) version 18+ (an active LTS release is recommended).
>
> For detailed instructions, see [Installation](https://docs.controlplane.com/cli-reference/installation.md).

> [tab] Homebrew
>
> Install via Homebrew on macOS or Linux.
>
> ```bash theme={null}
> brew tap controlplane-com/cpln && brew install cpln
> ```
>
> > [!NOTE]
> >
> > If you don't have Homebrew installed, follow the [installation instructions](https://brew.sh/).
>
> For detailed instructions, see [Installation](https://docs.controlplane.com/cli-reference/installation.md).

> [tab] Binary
>
> Download from the [Installation page](https://docs.controlplane.com/cli-reference/installation.md#binary).

**2. Verify the installation**

Confirm the CLI is installed and accessible:

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

You should see the CLI version number.

**3. Authenticate**

Log in to Control Plane:

```bash theme={null}
cpln login
```

The CLI prints a login URL and a six-digit confirmation code, then waits. Open the URL in a browser on any device, sign in, and enter the code. The CLI stores your credentials in a default profile.

**4. Explore available commands**

Use the built-in help to discover commands:

```bash theme={null}
cpln --help
cpln <command> --help
```

Start with read-only commands like `cpln gvc get` or `cpln workload get`.

## Try your first commands

Once authenticated, try these safe, read-only commands:

```bash List GVCs theme={null}
cpln gvc get
```

```bash List workloads in a GVC theme={null}
cpln workload get --gvc <gvc-name>
```

```bash List all configured profiles theme={null}
cpln profile get
```

## Deploy your first app

Build and deploy a local application to Control Plane:

**1. Create a GVC**

Create a Global Virtual Cloud to host your workload:

```bash theme={null}
cpln gvc create --name my-app-gvc --location aws-us-east-1
```

**2. Build and push your image**

From your project directory, build and push to your org's private registry:

```bash theme={null}
cpln image build --name my-app:v1 --push
```

> [!TIP]
>
> No Dockerfile? The CLI can auto-detect your language and build with buildpacks.

**3. Create a workload**

Deploy your image as a workload:

```bash theme={null}
cpln workload create --name my-app --gvc my-app-gvc \
  --image //image/my-app:v1 --port 8080 --public
```

> [!NOTE]
>
> Replace `8080` with the port your application listens on. Use `--public` to make it accessible from the internet.

**4. Check your deployment**

View your workload status:

```bash theme={null}
cpln workload get my-app --gvc my-app-gvc
```

Once ready, access your app at the endpoint shown in the output.

> [!NOTE]
>
> For more image operations, see the [Images guide](https://docs.controlplane.com/cli-reference/get-started/images.md).

## Next steps

> [card] [Images](https://docs.controlplane.com/cli-reference/get-started/images.md)
>
> Build, push, and manage container images

> [card] [Profiles](https://docs.controlplane.com/cli-reference/get-started/profiles.md)
>
> Manage authentication and context

> [card] [Common Options](https://docs.controlplane.com/cli-reference/using-cli/common-options.md)
>
> Learn about shared CLI flags

> [card] [CI/CD](https://docs.controlplane.com/cli-reference/ci-cd-development/ci-cd.md)
>
> Use the CLI in automation
