Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Release `@spree/cli` 2.2.0
Damian Legawiec745f538ef0c5
diff --git a/packages/cli/.changeset/admin-api-commands.md b/packages/cli/.changeset/admin-api-commands.mddeleted file mode 100644index 940fc2fd26..0000000000--- a/packages/cli/.changeset/admin-api-commands.md+++ /dev/null@@ -1,16 +0,0 @@-----"@spree/cli": minor------New `spree api` and `spree auth` command groups — a generic Admin API client (`get`/`post`/`patch`/`delete`) built into the CLI:--- `spree api get|post|patch|delete <path>` — generic verbs with Ransack `-q` filters, `--sort`/`--page`/`--limit`/`--expand`/`--fields`, and JSON bodies from inline/`@file`/stdin-- `spree api endpoints` / `spree api schema` — offline schema introspection over a bundled OpenAPI snapshot, including each endpoint's required scope-- `spree api status` — resolved credentials + server reachability-- `spree auth login|status|logout|list` — named profiles in `~/.config/spree/config.json`-- `spree completion bash|zsh|fish` — shell completion for resource paths, Ransack predicate stems, and scope names, resolved offline from the bundled spec-- Zero-config credentials inside a project: a read-only key is minted via the dev stack on first use and stored in `.spree/credentials.json`. For other servers, `SPREE_API_KEY` is enough — the host defaults to `http://localhost:3000`; set `SPREE_BASE_URL` or save a profile for a remote store.--Output is JSON: indented and colored in a terminal, compact and uncolored when piped (clean for `jq`).--Works against any Spree 5.5+ instance.diff --git a/packages/cli/.changeset/api-key-create-scopes.md b/packages/cli/.changeset/api-key-create-scopes.mddeleted file mode 100644index 8d7bee901c..0000000000--- a/packages/cli/.changeset/api-key-create-scopes.md+++ /dev/null@@ -1,5 +0,0 @@-----"@spree/cli": minor------`spree api-key create` now supports scopes for secret keys via `--scopes` (comma-separated, e.g. `--scopes read_orders,write_products`) or an interactive prompt defaulting to `read_all`. Required against Spree 5.5+ servers, where secret keys must carry at least one scope.diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdindex dd86438ee6..42884b0e46 100644--- a/packages/cli/CHANGELOG.md+++ b/packages/cli/CHANGELOG.md@@ -1,5 +1,24 @@# @spree/cli+## 2.2.0++### Minor Changes++- New `spree api` and `spree auth` command groups — a generic Admin API client (`get`/`post`/`patch`/`delete`) built into the CLI:++ - `spree api get|post|patch|delete <path>` — generic verbs with Ransack `-q` filters, `--sort`/`--page`/`--limit`/`--expand`/`--fields`, and JSON bodies from inline/`@file`/stdin+ - `spree api endpoints` / `spree api schema` — offline schema introspection over a bundled OpenAPI snapshot, including each endpoint's required scope+ - `spree api status` — resolved credentials + server reachability+ - `spree auth login|status|logout|list` — named profiles in `~/.config/spree/config.json`+ - `spree completion bash|zsh|fish` — shell completion for resource paths, Ransack predicate stems, and scope names, resolved offline from the bundled spec+ - Zero-config credentials inside a project: a read-only key is minted via the dev stack on first use and stored in `.spree/credentials.json`. For other servers, `SPREE_API_KEY` is enough — the host defaults to `http://localhost:3000`; set `SPREE_BASE_URL` or save a profile for a remote store.++ Output is JSON: indented and colored in a terminal, compact and uncolored when piped (clean for `jq`).++ Works against any Spree 5.5+ instance.++- `spree api-key create` now supports scopes for secret keys via `--scopes` (comma-separated, e.g. `--scopes read_orders,write_products`) or an interactive prompt defaulting to `read_all`. Required against Spree 5.5+ servers, where secret keys must carry at least one scope.+## 2.1.2### Patch Changesdiff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 1141137c32..282f5e969b 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@spree/cli",- "version": "2.1.2",+ "version": "2.2.0","description": "CLI for managing Spree Commerce projects","type": "module","bin": {