CLI Quickstart
Install Cybrave CLI, connect to a device, and run your first command in about five minutes.
Follow Get started through your first command. The standard installer includes the agent skill. Continue directly to Create an access token after installation unless you need to install the skill for another agent.
Get started
1. Install the CLI
The CLI requires macOS (Apple silicon), Linux (x64 or Arm64), or Windows (x64), and network access to the management address of the device.
macOS and Linux
curl -fsSL https://download.cybrave.com/cybrave-cli/install.sh | shWindows
Run the following command in PowerShell:
irm https://download.cybrave.com/cybrave-cli/install.ps1 | iexThe installer verifies the checksum, installs cybrave-cli in ~/.local/bin (on Windows, %USERPROFILE%\.local\bin), adds that directory to PATH, and installs the agent skill. Administrator privileges are not required. Open a new terminal after the installation completes.
To change the behavior of the installer, set the following variables before you run the command:
| Variable | Effect |
|---|---|
CYBRAVE_INSTALL_VERSION | Installs a specific release instead of the latest |
CYBRAVE_INSTALL_DIR | Installs to a different absolute directory |
CYBRAVE_INSTALL_SKIP_SKILLS=1 | Installs the CLI without the agent skill |
2. Install the agent skill
The skill instructs an AI agent how to operate the CLI safely. The installer installs the skill automatically. To install the skill for an additional agent, run:
cybrave-cli skill install
cybrave-cli skill install --yesThe first command previews the changes. The second command installs the skill for every supported agent on your computer.
cybrave-cli skill install --agent cursor --yes
cybrave-cli skill install --dir <dir> --yesUse --agent to target one agent, or --dir to target a skill directory. Restart the agent to load the skill. For the list of supported agents, see Use with AI Agents.
3. Create an access token
- Sign in to the device Web UI with the administrator account that the CLI will use. For an AI agent, use an account with the
superreaderrole for read-only access, or thesuperuserrole if the agent must change configuration. - Go to My Account > Access > Access Tokens, and create a token with an expiration time.
- Complete the credential confirmation and copy the issued token to secure storage. It is shown only once and works immediately, with nothing to commit. The token uses the roles that the account holds at the time of each request, so a role change applies to the token at once.
For details about the Web UI, see My Account.
4. Connect and verify
Create a profile, authenticate with the token through standard input, and verify the connection:
cybrave-cli profile set edge --base-url https://10.0.0.1
cybrave-cli auth login --with-token < token.txt
cybrave-cli context
cybrave-cli auth status
cybrave-cli doctor --format jsonDo not pass a token or a password on the command line. If the device certificate is not signed by a trusted CA, the CLI prompts you to confirm the SHA-256 fingerprint of the certificate once, and then pins it.
context displays the settings that the next command will use, without contacting the device. auth status returns the identity that the device associates with the credential. doctor checks DNS, TCP, TLS, the clock, the credential, the Config Publishing mode, and whether the device offers the operations that the CLI calls. A healthy connection returns output similar to the following abridged example. The example device uses Manual.
{
"ok": true,
"data": {
"checks": [
{ "name": "config", "status": "PASS", "detail": "base URL https://10.0.0.1" },
{ "name": "tcp", "status": "PASS", "detail": "connected to 10.0.0.1:443" },
{ "name": "auth", "status": "PASS", "detail": "credential present (stored in the OS credential store (bound to the device))" },
{ "name": "publish-mode", "status": "PASS", "detail": "publish mode manual (published-value)" },
{ "name": "operations", "status": "PASS", "detail": "the device offers all 85 operations this CLI calls" }
],
"overall": "PASS"
},
"error": null,
"meta": {}
}5. Run your first command
List the security rules. A read operation does not change the device:
cybrave-cli policy security-rule list --format jsonNext steps
After your first command, use the CLI Reference for the following tasks.