CLI reference
Use OpenCI from your terminal. Commands for installation, login, and switching teams.
Install
Section titled “Install”Install the CLI with Dart 3.11.5 or later.
dart install openci_cli_plusopenci --helpIf the command is not found, check the Dart PATH configuration.
Log in
Section titled “Log in”Use the same email address and password as the dashboard. Enter your password in the interactive prompt.
openci loginTo use another server, specify its HTTPS URL.
openci login --server https://ci.example.comFor a self-hosted Firebase project, also provide its Web API key with --firebase-api-key.
Check your status
Section titled “Check your status”View your current profile, server, and team.
openci statusSwitch teams
Section titled “Switch teams”Select a team interactively. Use the arrow keys to move, Enter to select, and Esc to cancel.
openci switch teamSecret commands will then operate on the newly selected team.
Commands
Section titled “Commands”| Command | Purpose |
|---|---|
openci login | Log in to a remote environment |
openci status | Check your current profile and team |
openci switch team | Switch the active team |
openci list secrets | List secret names |
openci register secret | Register or update a secret |
openci register secretFile | Register a file as Base64 |
openci sync | Generate secret definitions and workspace paths |
openci sync --secrets | Generate secret definitions only |
openci sync --paths | Generate workspace paths only; no login required |
openci update | Update the CLI |
Files generated by sync are saved under openci/generated/. Import generated/secrets.g.dart and generated/paths.g.dart in your workflows.
Language and updates
Section titled “Language and updates”Switch CLI messages between Japanese and English.
openci use japaneseopenci use englishTo update to the latest stable release, run:
openci update