Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions 1.platform/04.automation/03.cli/03.setup.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
created: 2026-11-17
updated: 2026-11-19
reviewed: 2026-11-19
updated: 2026-11-26
reviewed: 2026-11-26
reviewer: fl
title: Set up the frbit CLI
description: 'Sign in to the frbit CLI through the browser or with an API token, link the project folder, connect a coding agent and check the setup with frbit doctor.'
Expand Down Expand Up @@ -35,6 +35,10 @@ The approval page also has an `Allow deletes` box, unticked by default. Without

The credential expires after an hour and renews itself. The connection ends one year after approval, or after 30 days without use, whichever comes first; then run `frbit auth login` again. It is listed under `Connected apps` in the account menu of the dashboard. Its page there lists the apps and deletes the OAuth token.

An expired or revoked sign-in fails with `the sign-in expired or was revoked` and the `frbit auth login` command for the profile and host in use. A refused `FRBIT_TOKEN` is named as such.

After the sign-in, frbit prints the next setup step. While the account has no SSH key, it also prints `Add an SSH key` with the link to the dashboard: `frbit ssh`, `frbit db` and `frbit files` need one.

`frbit auth status` shows the stored credential and the next open setup step. `frbit auth logout` removes it.

### Tokens in scripts and CI
Expand Down Expand Up @@ -95,4 +99,4 @@ frbit completion install zsh # or bash, fish, powershell
frbit doctor
```

It checks the CLI version against the latest release, the sign-in, `ssh`, `rsync` and `git`, the linked environment with an SSH connection, and the agent setup. Each problem comes with the fix. It exits with 1 when a check fails, and `--json` prints the result for agents.
It checks the CLI version against the latest release, the sign-in, `ssh`, `rsync` and `git`, the linked environment with an SSH connection, and the agent setup. Each problem comes with the fix, a missing SSH key on the account or on this machine included. It exits with 1 when a check fails, and `--json` prints the result for agents.
16 changes: 14 additions & 2 deletions 1.platform/04.automation/03.cli/04.usage.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
created: 2026-11-17
updated: 2026-11-17
reviewed: 2026-11-17
updated: 2026-11-26
reviewed: 2026-11-26
reviewer: fl
title: frbit CLI usage
description: 'Every frbit command group with its main options and examples: apps, environments, deployments, database and files sync, SSH, domains, jobs and backups.'
Expand Down Expand Up @@ -73,6 +73,18 @@ frbit ssh --print # print the plain ssh command

frbit connects with your own [SSH key](/1.platform/10.objects/12.ssh-key.md) and checks the host key of the fortrabbit SSH endpoints, so the first connection from CI needs no `known_hosts` entry. Without a terminal, ssh never prompts.

When the connection fails, frbit names the cause and the fix:

| Cause | Fix |
|--|--|
| No SSH key on the account | Add the public key in the dashboard |
| No key on this machine | `ssh-keygen -t ed25519`, then add the public key |
| The key here is not on the account, or has a passphrase | Add its public key, or load it with `ssh-add` |
| Too many keys in the agent | `IdentitiesOnly yes` and the `IdentityFile` for the host in `~/.ssh/config` |
| No connection | Check the network, a firewall or VPN, and the [status page](https://status.fortrabbit.com) |

More in [SSH troubleshooting](/1.platform/05.code-access/10.troubleshooting.md).

## Database

```shell
Expand Down