Skip to content

CLI reference

Use OpenCI from your terminal. Commands for installation, login, and switching teams.

Install the CLI with Dart 3.11.5 or later.

Terminal window
dart install openci_cli_plus
openci --help

If the command is not found, check the Dart PATH configuration.

Use the same email address and password as the dashboard. Enter your password in the interactive prompt.

Terminal window
openci login

To use another server, specify its HTTPS URL.

Terminal window
openci login --server https://ci.example.com

For a self-hosted Firebase project, also provide its Web API key with --firebase-api-key.

View your current profile, server, and team.

Terminal window
openci status

Select a team interactively. Use the arrow keys to move, Enter to select, and Esc to cancel.

Terminal window
openci switch team

Secret commands will then operate on the newly selected team.

CommandPurpose
openci loginLog in to a remote environment
openci statusCheck your current profile and team
openci switch teamSwitch the active team
openci list secretsList secret names
openci register secretRegister or update a secret
openci register secretFileRegister a file as Base64
openci syncGenerate secret definitions and workspace paths
openci sync --secretsGenerate secret definitions only
openci sync --pathsGenerate workspace paths only; no login required
openci updateUpdate the CLI

Files generated by sync are saved under openci/generated/. Import generated/secrets.g.dart and generated/paths.g.dart in your workflows.

Switch CLI messages between Japanese and English.

Terminal window
openci use japanese
openci use english

To update to the latest stable release, run:

Terminal window
openci update