# Switchboard CLI reference

The Switchboard CLI helps agents and developers authenticate, create projects,
manage keys, generate integration kits, and run smoke tests.

## Install

```bash
curl -fsSL https://switchboard.spot/install.sh | bash
```

## Common commands

```bash
switchboard auth login
switchboard projects list --json
switchboard projects use <id> --json
switchboard keys regenerate-sandbox --json
switchboard keys regenerate-publishable-sandbox --json
switchboard projects update <id> --allowed-origins http://localhost:5173
switchboard integration kit --json
switchboard chat test --json
```

Use `--json` for automation and AI agents.

## Credential boundaries

- Account sessions use the `sb_sess_` prefix.
- Secret project keys use `sb_test_` or `sb_live_`.
- Publishable project keys use `sb_pub_test_` or `sb_pub_live_`.
- End-user sessions use `sb_eusr_`.

Never embed secret project keys or account sessions in client code.
