|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [1.0.0](https://github.com/sanity-io/cli/compare/cli-core-v0.1.0...cli-core-v1.0.0) (2026-03-10) |
| 4 | + |
| 5 | + |
| 6 | +### ⚠ BREAKING CHANGES |
| 7 | + |
| 8 | +* **cli-core:** Renamed members: `setConfig` → `setCliUserConfig`, `getConfig` → `getCliUserConfig` |
| 9 | +* refactor promisyWorker to take a url instead of a worker ([#477](https://github.com/sanity-io/cli/issues/477)) |
| 10 | +* add ux core helpers ([#219](https://github.com/sanity-io/cli/issues/219)) |
| 11 | + |
| 12 | +### Features |
| 13 | + |
| 14 | +* add `--project-id` flag + prompts for dataset commands ([#500](https://github.com/sanity-io/cli/issues/500)) ([b264fa2](https://github.com/sanity-io/cli/commit/b264fa2b6996cbd195620ee730fd9bc6e6f12288)) |
| 15 | +* add `--project-id`, `--dataset` flag to all relevant commands ([#548](https://github.com/sanity-io/cli/issues/548)) ([3e77ceb](https://github.com/sanity-io/cli/commit/3e77ceb7c47266460007f21eb91c9603b3647f39)) |
| 16 | +* add a eslint-config-cli package ([#226](https://github.com/sanity-io/cli/issues/226)) ([2980003](https://github.com/sanity-io/cli/commit/2980003fc8d1b3935f436f7e29c00207e65db6fc)) |
| 17 | +* add cli core package for shared utils ([#61](https://github.com/sanity-io/cli/issues/61)) ([5d2af2a](https://github.com/sanity-io/cli/commit/5d2af2a8704f5ecfa73fb3d547e4671509fdbcdf)) |
| 18 | +* add cli-test package for test helpers ([#62](https://github.com/sanity-io/cli/issues/62)) ([e84a0bf](https://github.com/sanity-io/cli/commit/e84a0bfcf14fbcc2e5f7b3f97911e421b82bcf05)) |
| 19 | +* add debug command ([#70](https://github.com/sanity-io/cli/issues/70)) ([4edb88d](https://github.com/sanity-io/cli/commit/4edb88d340d21150341b7d2a6197fb772b4fb395)) |
| 20 | +* add import studio config util ([#185](https://github.com/sanity-io/cli/issues/185)) ([c1be611](https://github.com/sanity-io/cli/commit/c1be61110e7bb954ebdf580753dcdb555dcf55db)) |
| 21 | +* add typegen generate command ([#340](https://github.com/sanity-io/cli/issues/340)) ([3230469](https://github.com/sanity-io/cli/commit/32304690cedcb4215e02d128e90576a56846cc16)) |
| 22 | +* add ux core helpers ([#219](https://github.com/sanity-io/cli/issues/219)) ([d2a7d78](https://github.com/sanity-io/cli/commit/d2a7d7858a1c83792a02abb2cd95fe44cbe3b6ed)) |
| 23 | +* allow making telemetry calls from CLI ([#346](https://github.com/sanity-io/cli/issues/346)) ([41ef21e](https://github.com/sanity-io/cli/commit/41ef21eb1c3d6c1854b91bb0c953aa8596e39566)) |
| 24 | +* **cli-core:** add non-interactive environment detection for prompts ([#470](https://github.com/sanity-io/cli/issues/470)) ([e9dc8fb](https://github.com/sanity-io/cli/commit/e9dc8fbc8c57b7b99d27fdf5ec6b1aa92a7ca740)) |
| 25 | +* **cli-core:** export requester with shared middleware ([#451](https://github.com/sanity-io/cli/issues/451)) ([c506e8a](https://github.com/sanity-io/cli/commit/c506e8aa4a5b477b0f343b7408eb603b6d469cb1)) |
| 26 | +* **cli-core:** improve and reduce `@sanity/cli-core` public API ([#546](https://github.com/sanity-io/cli/issues/546)) ([e861a86](https://github.com/sanity-io/cli/commit/e861a861937e4b690e3d20798a0fc1cb2223135e)) |
| 27 | +* **cli:** add start command ([#46](https://github.com/sanity-io/cli/issues/46)) ([86c7b24](https://github.com/sanity-io/cli/commit/86c7b2436eee27294670d5f3129440c110192fb7)) |
| 28 | +* **dataset:** add embeddings configuration commands ([35c720d](https://github.com/sanity-io/cli/commit/35c720d43bb0ef795dbf624ea2475c5d83a6689e)) |
| 29 | +* **deploy:** add app manifest ([#274](https://github.com/sanity-io/cli/issues/274)) ([712650d](https://github.com/sanity-io/cli/commit/712650db1add4855dc9c849954e2b51b95b4ff3d)) |
| 30 | +* **dev:** missing critical features for `dev` command ([#442](https://github.com/sanity-io/cli/issues/442)) ([1acf0b0](https://github.com/sanity-io/cli/commit/1acf0b0be58dcfe87e7d2d8b7430389884bc16d4)) |
| 31 | +* **documents:** add documents get command ([#84](https://github.com/sanity-io/cli/issues/84)) ([aeea660](https://github.com/sanity-io/cli/commit/aeea66066d688a5929f2f042e1e3977ec748224c)) |
| 32 | +* **exec:** move cliClient ([#180](https://github.com/sanity-io/cli/issues/180)) ([47c89ea](https://github.com/sanity-io/cli/commit/47c89ea08ebceb575cb375f02b62ba5ccbf2f7c2)) |
| 33 | +* **graphql:** add graphql list command ([#139](https://github.com/sanity-io/cli/issues/139)) ([c77149e](https://github.com/sanity-io/cli/commit/c77149e8bab14938e2974d34d5b088157fd6f9b8)) |
| 34 | +* **graphql:** migrate graphql undeploy command ([#194](https://github.com/sanity-io/cli/issues/194)) ([3915139](https://github.com/sanity-io/cli/commit/39151391c3b557a53ed26e03016d9b7f7683285a)) |
| 35 | +* **hook:** add hook create command ([#74](https://github.com/sanity-io/cli/issues/74)) ([c2126e5](https://github.com/sanity-io/cli/commit/c2126e5e06fdb8500a6dc866285bcd27edc220f9)) |
| 36 | +* **init:** migration of init command setup, plan/coupon logic, and authentication logic ([#199](https://github.com/sanity-io/cli/issues/199)) ([012168e](https://github.com/sanity-io/cli/commit/012168eb03ab7e309918206511dc60c21dea573f)) |
| 37 | +* make telemetry calls in commands ([#347](https://github.com/sanity-io/cli/issues/347)) ([6e22909](https://github.com/sanity-io/cli/commit/6e229091b41e581bf3ebe4be3540dca5a5b5c9c8)) |
| 38 | +* **media:** add media create-aspect command ([#144](https://github.com/sanity-io/cli/issues/144)) ([ea8224f](https://github.com/sanity-io/cli/commit/ea8224fccf50923134991effd1395ab6b800ece9)) |
| 39 | +* migrate schema deploy ([#242](https://github.com/sanity-io/cli/issues/242)) ([268b256](https://github.com/sanity-io/cli/commit/268b2560dd189663498df40abe39f9149ccbc6b7)) |
| 40 | +* move mock browser utils ([#175](https://github.com/sanity-io/cli/issues/175)) ([db43757](https://github.com/sanity-io/cli/commit/db437572b2aaeba2920a419c9c55966567495751)) |
| 41 | +* move tree util to core package ([#208](https://github.com/sanity-io/cli/issues/208)) ([83417a2](https://github.com/sanity-io/cli/commit/83417a2a004338e62a5f898f733c4d1732b36e9b)) |
| 42 | +* parse cli config using Zod schema in `createCliConfig` ([547ac52](https://github.com/sanity-io/cli/commit/547ac528f7a762ee2295513eb09f6b2d439d8119)) |
| 43 | +* refactor promisyWorker to take a url instead of a worker ([#477](https://github.com/sanity-io/cli/issues/477)) ([382820a](https://github.com/sanity-io/cli/commit/382820a51e5e8ce45ff9510c6d8703c6a71b1a91)) |
| 44 | +* **schema:** moving latest updates to schema extract command ([#425](https://github.com/sanity-io/cli/issues/425)) ([b4f55ef](https://github.com/sanity-io/cli/commit/b4f55ef4267d3a173c2d11d9942a0608010148ff)) |
| 45 | +* sdk templates are ESM by default ([#576](https://github.com/sanity-io/cli/issues/576)) ([d31796f](https://github.com/sanity-io/cli/commit/d31796f606edce77d2f5c0f189477159b73e5d13)) |
| 46 | +* **telemetry:** add telemetry commands ([#75](https://github.com/sanity-io/cli/issues/75)) ([9f0ca66](https://github.com/sanity-io/cli/commit/9f0ca6688b61872c34a2eb396d2865ce3e085230)) |
| 47 | +* **telemetry:** shows a disclosure in all CLI commands ([#69](https://github.com/sanity-io/cli/issues/69)) ([406024a](https://github.com/sanity-io/cli/commit/406024a2e55cd6ef59432bde22df5f6bd6de04cb)) |
| 48 | +* **update:** oclif hook to notify of updated versions of CLI ([#374](https://github.com/sanity-io/cli/issues/374)) ([4172cbc](https://github.com/sanity-io/cli/commit/4172cbc548d51033208e534d98dd660113d7586d)) |
| 49 | +* **worker:** adding timeout to promisify worker ([#543](https://github.com/sanity-io/cli/issues/543)) ([ff22edc](https://github.com/sanity-io/cli/commit/ff22edcb3b3530ffad2e6ceb0c3a8107b9fc1243)) |
| 50 | + |
| 51 | + |
| 52 | +### Bug Fixes |
| 53 | + |
| 54 | +* add more debug logging ([#437](https://github.com/sanity-io/cli/issues/437)) ([687bcbf](https://github.com/sanity-io/cli/commit/687bcbf2f00a0f8ccc5187a5b4a8ae41b166f1e8)) |
| 55 | +* add no-console lint rule ([7823696](https://github.com/sanity-io/cli/commit/78236965ebdd784d01384b96b23bc590eeaaa325)) |
| 56 | +* allow commands to run outside project context with --project-id/--dataset flags ([#558](https://github.com/sanity-io/cli/issues/558)) ([b3281c0](https://github.com/sanity-io/cli/commit/b3281c07a52493e280f53e56d6b7d1fabc11460a)) |
| 57 | +* allow not getting default imports from importModule ([#521](https://github.com/sanity-io/cli/issues/521)) ([f6d8ba9](https://github.com/sanity-io/cli/commit/f6d8ba9760109414ebb0d4af04fd8726fafa92ab)) |
| 58 | +* allow passing more client options to methods ([#120](https://github.com/sanity-io/cli/issues/120)) ([5c131aa](https://github.com/sanity-io/cli/commit/5c131aa50ea24f017d74db89bf9675a52bf0b3a1)) |
| 59 | +* **build:** fixes issue with app build not failing for missing deps ([#409](https://github.com/sanity-io/cli/issues/409)) ([7a266fd](https://github.com/sanity-io/cli/commit/7a266fdf9fd6ad0acafcbd6770354a838b3d655e)) |
| 60 | +* **cli:** align minimum node version in package with runtime check ([#30](https://github.com/sanity-io/cli/issues/30)) ([e64d763](https://github.com/sanity-io/cli/commit/e64d763c73d95b8c2e6d7bef11494b8db06a1322)) |
| 61 | +* **core:** add typegen to CLI config type ([#283](https://github.com/sanity-io/cli/issues/283)) ([11be33a](https://github.com/sanity-io/cli/commit/11be33a11fb90160dbdb0fa142275ce75f73f175)) |
| 62 | +* **core:** fixes issue with resolving plugins in studio config ([#349](https://github.com/sanity-io/cli/issues/349)) ([71689bf](https://github.com/sanity-io/cli/commit/71689bf6e0f36590d61b03c37c90527a61ec8224)) |
| 63 | +* **core:** fixes issues with loading cli config ([#137](https://github.com/sanity-io/cli/issues/137)) ([8cf088e](https://github.com/sanity-io/cli/commit/8cf088e4afc06247dc82c09a6bceeb2b89f06c8b)) |
| 64 | +* **core:** re-add chalk dependency ([#395](https://github.com/sanity-io/cli/issues/395)) ([b51f986](https://github.com/sanity-io/cli/commit/b51f9862238785e47f4e65766061156706e64bf3)) |
| 65 | +* **deps:** update dependency @inquirer/prompts to ^8.2.0 ([#342](https://github.com/sanity-io/cli/issues/342)) ([e4bdbe2](https://github.com/sanity-io/cli/commit/e4bdbe2d6e632043f31bcafed118eeee036852cc)) |
| 66 | +* **deps:** update dependency @inquirer/prompts to ^8.3.0 ([#519](https://github.com/sanity-io/cli/issues/519)) ([d13245c](https://github.com/sanity-io/cli/commit/d13245c80de94728e3b5d07cbb7caceda48cf9de)) |
| 67 | +* **deps:** update dependency @sanity/types to v5 ([#269](https://github.com/sanity-io/cli/issues/269)) ([77f0617](https://github.com/sanity-io/cli/commit/77f0617a8f9c20998b69d54e0397eb6008fca5ea)) |
| 68 | +* **deps:** update dependency debug to ^4.4.3 ([#154](https://github.com/sanity-io/cli/issues/154)) ([f1cf942](https://github.com/sanity-io/cli/commit/f1cf942572ba47b5f91652748fdfa05eecc8260d)) |
| 69 | +* **deps:** update dependency vite to ^7.1.6 ([#136](https://github.com/sanity-io/cli/issues/136)) ([acf30f9](https://github.com/sanity-io/cli/commit/acf30f93345efe17572b83babbe9ebdb80917223)) |
| 70 | +* **deps:** update dependency vite to v7 ([#133](https://github.com/sanity-io/cli/issues/133)) ([fd96f03](https://github.com/sanity-io/cli/commit/fd96f032e7f78fe5df45646dc70300953426c700)) |
| 71 | +* **deps:** update oclif-tooling ([#116](https://github.com/sanity-io/cli/issues/116)) ([26a92ee](https://github.com/sanity-io/cli/commit/26a92eeeccbf6b92ab91fa08fedd09f2823cd8a3)) |
| 72 | +* **deps:** update oclif-tooling ([#210](https://github.com/sanity-io/cli/issues/210)) ([66f8c47](https://github.com/sanity-io/cli/commit/66f8c47c6abac9aefbdd5d41ef0253d1ccf413b9)) |
| 73 | +* **deps:** update sanity-tooling ([#117](https://github.com/sanity-io/cli/issues/117)) ([7543a82](https://github.com/sanity-io/cli/commit/7543a82ae8f9eb8e8acc759b6eda567fc2b49064)) |
| 74 | +* **deps:** update sanity-tooling ([#260](https://github.com/sanity-io/cli/issues/260)) ([c1d7c9d](https://github.com/sanity-io/cli/commit/c1d7c9d130a54f32aa85b3815a1dcecce73530af)) |
| 75 | +* **deps:** update sanity-tooling ([#292](https://github.com/sanity-io/cli/issues/292)) ([dfacca8](https://github.com/sanity-io/cli/commit/dfacca832f94a94b00e898b315e3fef567c90026)) |
| 76 | +* **deps:** update sanity-tooling ([#311](https://github.com/sanity-io/cli/issues/311)) ([51476f4](https://github.com/sanity-io/cli/commit/51476f4f47a004b7dc5b2ce0f9cf3e2be1a13b40)) |
| 77 | +* **deps:** update sanity-tooling to ^5.6.0 ([#324](https://github.com/sanity-io/cli/issues/324)) ([85d115e](https://github.com/sanity-io/cli/commit/85d115efc7e73d3a2a32dc56db23ab9422cc98cf)) |
| 78 | +* **documents:** fixes documents validate not working ([#386](https://github.com/sanity-io/cli/issues/386)) ([9a3337b](https://github.com/sanity-io/cli/commit/9a3337bd1d6c4af799bd1ef729414f45de2e8d8a)) |
| 79 | +* don't throw an error when telemetry is not initialized ([#518](https://github.com/sanity-io/cli/issues/518)) ([2b5b83f](https://github.com/sanity-io/cli/commit/2b5b83fd03db7c6e5add11b8e77767e4da2f3fca)) |
| 80 | +* issue with reading sanity config in various situations ([#460](https://github.com/sanity-io/cli/issues/460)) ([2a19272](https://github.com/sanity-io/cli/commit/2a1927290014aa901e067f4ad92bb41ecb0f2c66)) |
| 81 | +* issues reading CLI config in CJS project ([#428](https://github.com/sanity-io/cli/issues/428)) ([42701d0](https://github.com/sanity-io/cli/commit/42701d001f46fe89761544725e668b070079f5ac)) |
| 82 | +* **manifest:** fixes manifest extract not working ([#382](https://github.com/sanity-io/cli/issues/382)) ([3d14632](https://github.com/sanity-io/cli/commit/3d14632ec71ba731214356e755ce0e0194d46f7f)) |
| 83 | +* **schema:** fixes schema extract command ([#375](https://github.com/sanity-io/cli/issues/375)) ([6382401](https://github.com/sanity-io/cli/commit/63824011f8cd64bb2f0ec422e51701fc4c8e6140)) |
| 84 | +* token logic for `getCliClient()` ([#322](https://github.com/sanity-io/cli/issues/322)) ([d62eeda](https://github.com/sanity-io/cli/commit/d62eeda5004eb70db5ce0a74813fb64a1ebb114d)) |
| 85 | +* use `stdin`, not `stdout` for interactive checks ([#479](https://github.com/sanity-io/cli/issues/479)) ([287c082](https://github.com/sanity-io/cli/commit/287c0829cb9434239f1fb04f2ce301780653d7b0)) |
| 86 | + |
| 87 | + |
| 88 | +### Performance Improvements |
| 89 | + |
| 90 | +* cache reading cli config multiple times ([#506](https://github.com/sanity-io/cli/issues/506)) ([6222972](https://github.com/sanity-io/cli/commit/62229723b612fffd4da6d8621e29d4a0606c1e08)) |
| 91 | +* speed up graphql commands ([#502](https://github.com/sanity-io/cli/issues/502)) ([a52d59b](https://github.com/sanity-io/cli/commit/a52d59bbd8a1d621f942d1285eb593669de29326)) |
| 92 | + |
| 93 | + |
| 94 | +### Dependencies |
| 95 | + |
| 96 | +* The following workspace dependencies were updated |
| 97 | + * devDependencies |
| 98 | + * @sanity/eslint-config-cli bumped to 1.0.0 |
| 99 | + |
3 | 100 | ## [0.1.0-alpha.19](https://github.com/sanity-io/cli/compare/cli-core-v0.1.0-alpha.18...cli-core-v0.1.0-alpha.19) (2026-03-03) |
4 | 101 |
|
5 | 102 |
|
|
0 commit comments