CLI 0.3.0
On this page
Related contents
Released .
ScopeDB CLI 0.3.0 is available in public preview. This update follows CLI 0.2.0 and signs data commands in with a CI job's OIDC token instead of a stored login or API key.
What's changed since 0.2.0
scope query,scope catalog, andscope doctorauthenticate in CI without a stored login: setSCOPEDB_WORKSPACE_IDandSCOPEDB_OIDC_TOKEN, and the CLI exchanges the token for a short-lived workspace credential that is never written to disk. On GitHub Actions, the scopedb/login-action action supplies the token. A workspace owner first creates a matching OpenID Connect trust policy in the Console under Credentials → OpenID Connect; see OIDC sign-in.scope workspace use <id>andscope auth login --workspace <id>require a workspace ID. Display names are no longer accepted; usescope workspace listto find the ID.- The CLI configuration directory override is renamed from
SCOPEDB_CONFIG_DIRtoSCOPEDB_HOME. The CLI no longer reads the old name; default storage locations are unchanged. scope query,scope catalog, andscope doctorno longer readSCOPEDB_ENDPOINTandSCOPEDB_API_KEY; they always use your CLI login, or the OIDC token when no login exists.scope auth statusno longer reportsenvironmentas itscredential_source, and catalog plans no longer containcredential_hash. The variables can stay set for SDK applications.scope api-key creategives keys created without--expires-inor--expires-ata default expiration and reports it on stderr.- Source installations require Go 1.27.3 or newer.
Upgrade
Choose the steps for your installed CLI, shown by scope version:
- CI jobs that set
SCOPEDB_ENDPOINTandSCOPEDB_API_KEY: switch to OIDC sign-in, or runscope auth loginon a managed host where a stored login is acceptable. Application SDKs keep using the endpoint and key. - Scripts that select workspaces by name: use IDs from
scope workspace listinscope workspace useandscope auth login --workspace. SCOPEDB_CONFIG_DIR: rename it toSCOPEDB_HOMEwith the same directory.- Saved catalog plans: plans created while environment credentials were set contain
credential_hash; regenerate them withscope catalog planbefore applying. - API key scripts: pass
--expires-inor--expires-atexplicitly to choose the expiration.
To install this version from source with Go 1.27.3 or later:
go install github.com/scopedb/scopedb-cli/cmd/scope@v0.3.0
scope versionFor the current CLI's prebuilt archives and checksum verification, follow the installation guide.