# Quickstart with a terminal

For coding agents that can run commands. Without a terminal, see [Build from a chat](https://boring-cloud.app/docs/build-from-chat.md).

Boring Cloud runs the small internal apps your coding agent builds: a static frontend, an optional Worker backend and an optional private SQL database, behind sign-in, with a stable private URL you can share.

This guide takes you from nothing to a deployed, shared app.

## 1. Get an account and a workspace

The beta is invitation-only. Open the invitation email from your workspace admin, create your account with the invited address, confirm your email, and accept the invitation.

## 2. Create an agent token

In the console: **Agent setup → Create token** (or **Settings → Agent tokens**). Choose the scopes your agent needs:

| Scope              | Allows                                        |
| ------------------ | --------------------------------------------- |
| `apps:read`        | list apps, read metadata and URLs             |
| `apps:create`      | create apps                                   |
| `apps:deploy`      | upload releases and roll back apps you manage |
| `apps:share`       | grant/revoke access to apps you manage        |
| `deployments:read` | read deployment history and status            |

A token can never do more than you can: its effective permissions are its scopes intersected with your current access. It is shown once — store it in your agent's environment as `BORINGCLOUD_TOKEN`, never in git.

## 3. Install the CLI and sign in

Open **Agent setup** in the console, choose **Copy command**, and run it in a terminal (Node.js 22.12 or later):

```bash
npx -y https://console.boring-cloud.app/cli/<package>.tgz setup --url https://console.boring-cloud.app
```

It asks for your token (it stays hidden), signs you in and installs the `boringcloud` command. The CLI comes from your own console, so its version always matches. Check with `boringcloud whoami`.

## 4. Build an app

```bash
boringcloud guide                  # the stack and external APIs approved by your IT team
boringcloud init --template team-tracker sprint-tracker
cd sprint-tracker
npm install && npm run build      # → dist/client/ and dist/worker.mjs
boringcloud pack --dir .           # validates without deploying
```

Or give your agent the instructions from **Agent setup → Copy instructions** and a request such as:

> Build a shared sprint tracker for my team, with title, owner, status and due date. Persist entries, make it responsive, deploy privately on Boring Cloud and return the URL.

## 5. Deploy

```bash
boringcloud apps create --name "Sprint Tracker" --json   # note the id
boringcloud deploy --app <app-id> --dir .
```

The output gives the private URL. Open it: you are asked to sign in to the console, then you land in the app.

## 6. Share, update, roll back

```bash
boringcloud share --app <app-id> --email lea@company.com --role viewer
boringcloud share --app <app-id> --workspace          # everyone in the workspace, as viewers
npm run build && boringcloud deploy --app <app-id>    # same URL, new version, data kept
boringcloud deployments list --app <app-id>
boringcloud rollback --app <app-id> --to <deployment-id>   # code/assets only; data is not rewound
```

Owners and admins can disable or archive an app from its **Settings** tab; access stops on the next request.

## Next

- [Manifest](https://boring-cloud.app/docs/manifest.md), [Backend](https://boring-cloud.app/docs/backend.md) and [Frontend](https://boring-cloud.app/docs/frontend.md): the rules your code must follow.
- [Secure code](https://boring-cloud.app/docs/secure-code.md): what to check before you deploy.
- [CLI](https://boring-cloud.app/docs/cli.md): every command, option and exit code.

## For IT

People with IT access choose the stack agents must follow and add the external APIs that apps may use. Keys stay with IT: apps use an API without ever seeing its key. Both are in the console under **IT**. See [For IT teams](https://boring-cloud.app/docs/it.md).
