- Node.js 20 or newer
- An Openbridge account with a refresh token
npm install -g @openbridge-inc/obcmd
obcmd --versionTo run from a checkout instead:
npm install
npm run build
node dist/index.js --versionRefresh tokens are created in the Openbridge UI and cannot be created through the API.
- Sign in to Openbridge.
- Go to Account → API Management.
- Click Create Refresh Token, give it a name, and click Create.
- Copy the token immediately. It is shown once and cannot be retrieved again.
The refresh token is read from the environment. It is never accepted as a
command-line flag, because arguments are visible to every user on the machine
through ps and are captured by shell history and CI logs.
export OBCMD_REFRESH_TOKEN="ory_at_..."
obcmd auth loginauth login verifies the token and caches a short-lived access token in
~/.config/obcmd/token.json (mode 0600). The refresh token itself is never
written to disk.
Check state at any time:
obcmd auth statusKeep the export out of your shell history — put it in a profile file that is not world-readable, or use a secret manager:
export OBCMD_REFRESH_TOKEN="$(op read op://vault/openbridge/refresh_token)"Find your account and user IDs, which most other calls need:
obcmd account get
obcmd user getSave them so you can stop passing them:
obcmd config update --account_id <account_id> --user_id <user_id>Then look around:
obcmd product list --is_storage_product 0 # source products
obcmd storage list # destinations
obcmd remote-identity-shared list --invalid_identity 0
obcmd subscription list --status activeEvery mutating command accepts --dry-run, which resolves and prints the exact
request without sending it. It needs no credentials, so it is safe to explore
with:
obcmd subscription create \
--account <account_id> --user <user_id> --product 79 \
--status active --date_start 2026-01-01T00:00:00Z \
--storage_group <storage_group_id> --remote_identity <remote_identity_id> \
--product_parameters '{"stage_ids":"[1000]"}' \
--dry-run- Authentication — token lifetimes, build modes
- Recipes — complete worked flows
- Command reference — every flag