# CLI 0.2.0

[Read this page in HTML](https://www.scopedb.io/docs/release-notes/2026-10-25-cli-0-2-0)

Published: 2026-10-25

ScopeDB CLI 0.2.0 is available in public preview. This is an incremental update to [CLI 0.1.0](https://www.scopedb.io/docs/release-notes/2026-10-23-cli-0-1-0.md), focused on API key management in shared workspaces.

> **Note: Reading an earlier CLI release?**
>
> Use the [CLI guide](https://www.scopedb.io/docs/guides/scopedb-cli.md) for current installation and usage. The [0.3.0 release notes](https://www.scopedb.io/docs/release-notes/2026-11-08-cli-0-3-0.md#upgrade) cover the subsequent OIDC and environment-credential changes; the API key migration below still applies when upgrading directly to a newer CLI.

## What's changed since 0.1.0

* `scope api-key revoke` revokes by key ID. Names can repeat within a workspace; a unique name remains a shorthand, while ambiguous names are rejected before deletion.
* `scope api-key list` shows each key's creator, helping workspace owners identify members' keys with the same name.
* Fix mismatched account and workspace details in `scope workspace get` and `scope auth status` when another terminal changes the login.

## Upgrade

Choose the steps for your installed CLI, shown by `scope version`:

* **From 0.1.0:** use IDs from `scope api-key list` in revocation scripts so repeated names cannot make the target ambiguous. Your saved login and workspace selection remain usable.
* **From a 0.1.0 release candidate:** also apply the [command, login, and JSON changes introduced in 0.1.0](https://www.scopedb.io/docs/release-notes/2026-10-23-cli-0-1-0.md#upgrade-from-a-release-candidate). You can install 0.2.0 directly; installing 0.1.0 first is unnecessary.

To install this version from source with Go 1.27 or later:

```bash
go install github.com/scopedb/scopedb-cli/cmd/scope@v0.2.0
scope version
```

For the current CLI's prebuilt archives and checksum verification, follow the [installation guide](https://www.scopedb.io/docs/guides/scopedb-cli.md#install).

Use key IDs in automation:

```bash
scope api-key list
scope api-key revoke '<key-id>' --yes --format json
```

Replace `<key-id>` with the ID shown by `list`. Revoke JSON results add `id` alongside `name` and `revoked`; update strict JSON schemas to accept the new field. See [listing and revoking keys](https://www.scopedb.io/docs/guides/scopedb-cli/api-keys.md#list-and-revoke-keys) for permissions, name matching, and interactive confirmation.

## Related contents

* [ScopeDB CLI](https://www.scopedb.io/docs/guides/scopedb-cli.md)

* [CLI 0.1.0](https://www.scopedb.io/docs/release-notes/2026-10-23-cli-0-1-0.md)

* [All release notes](https://www.scopedb.io/docs/release-notes.md)
