# CLI 0.1.0

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

Published: 2026-10-23

ScopeDB CLI 0.1.0 introduced browser login, scripting improvements, and Catalog plans in public preview.

> **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.2.0 release notes](https://www.scopedb.io/docs/release-notes/2026-10-25-cli-0-2-0.md#upgrade) cover the subsequent API key change; the release-candidate migration below still applies when upgrading directly to a newer CLI.

## What's new

* Approve a personal login in ScopeDB Console through a browser callback or device code. Credentials renew automatically and use the OS keyring when available, with a visible plaintext fallback warning.
* Export Catalog definitions, preview replacement changes, and apply a reviewed plan with version and connection checks.
* Read queries from a file or stdin and write table, JSON, JSON Lines, or CSV results to stdout.
* Check query access with `scope doctor` and use explicit timeouts when a command must stop waiting.

## Upgrade from a release candidate

The changes below were introduced in 0.1.0 and also apply when upgrading directly from a release candidate to a newer CLI. After installing your chosen version, sign in again with `scope auth login`. Login now uses Console approval; the old email/code flags and browser-session credentials are no longer used.

Update scripts that use the previous commands and flags:

| Earlier command or option          | Use in 0.1.0                                                 |
| ---------------------------------- | ------------------------------------------------------------ |
| `scope login`, `logout`, `status`  | `scope auth login`, `scope auth logout`, `scope auth status` |
| `scope workspace show`             | `scope workspace get`                                        |
| `scope open [page]`                | `scope console [page] --open`                                |
| `scope open [page] --print`        | `scope console [page]`                                       |
| `-f <format>`                      | `--format <format>`; `-f` now selects an input file          |
| `scope query --output results.csv` | `scope query -f report.scopeql --format csv > results.csv`   |
| Query `--force`                    | Shell redirection controls overwriting                       |
| Login `--email` and `--code`       | Browser approval, or `--use-device-code` for another device  |

The old command paths are not aliases. `scope console` always prints its URL; only `--open` launches a browser. Queries now wait without an additional client-side limit by default. Use `--timeout 5m` to retain the earlier wait limit, and review [query output handling](https://www.scopedb.io/docs/guides/scopedb-cli/query.md) before replacing output flags with redirection.

For JSON consumers, `scope auth status` uses `credential_source` instead of `auth_mode` and `email` instead of `user`, and adds `refresh_token_expires_at`. Read `provisioning.status` from `scope workspace get --format json` instead of the old status response's `provisioning_state`. Workspace JSON uses `connection.endpoint` instead of `connection.api_base_url`. Successful `scope auth login --format json` reports the signed-in account and selected workspace.

Workspace selection is local to the current CLI login. Existing credentials are discovered automatically; `credential_store` in `config.toml` and `SCOPEDB_CREDENTIAL_STORE` no longer select a backend. Follow the [credential storage and logout instructions](https://www.scopedb.io/docs/guides/scopedb-cli/connect.md#credential-storage-and-logout) to inspect or change the current login's storage.

## Related contents

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

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

* [Connect a client](https://www.scopedb.io/docs/guides/connect-to-scopedb.md)
