# the cli

> Everything the console does, from your terminal. Every command answers with --json.

## install

```
curl -fsSL https://00b5e2.com/install.sh | bash
```

Windows: `irm https://00b5e2.com/install.ps1 | iex`

## login

```
00b5e2 login
```

Opens login.00b5e2.com in your browser to authorise this machine. Agents use a token instead: `00b5e2 login --token`.

## deploy

```
00b5e2 init
00b5e2 deploy        # development, my-site.00b5e2.dev
00b5e2 deploy --prod # production, my-site.00b5e2.app
```

## made for scripts

- **--json**: every command prints plain data.
- **exit codes**: 0 done, 1 failed, 2 not allowed.
- **NO_COLOR**: respected everywhere.

## every command

- `00b5e2 login`: login from the terminal, or pass a token in CI.
- `00b5e2 init`: create a project from the current folder.
- `00b5e2 services`: add services, open or close them, link them to a database.
- `00b5e2 deploy`: deploy to development, or to production when you ask.
- `00b5e2 rollback`: put the previous deployment back live.
- `00b5e2 logs`: show logs, or follow them live.
- `00b5e2 env`: list, set and remove variables per environment.
- `00b5e2 domains`: add, verify and remove domains.
- `00b5e2 db`: create databases, open a shell, take backups.
- `00b5e2 tokens`: create and revoke scoped tokens for scripts and agents.
- `00b5e2 mcp`: run the MCP server locally for an agent.

## more

- [All commands](https://docs.00b5e2.com/reference/cli.md)
- [The MCP server](https://00b5e2.com/mcp.md)
- [Every page for agents](https://00b5e2.com/llms.txt)
