@sanity/runtime-cli 17.4.0-blueprinit.g596ac51 → 17.4.0-blueprinit.gb640804

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -90,7 +90,7 @@ EXAMPLES
90
90
  $ sanity-run blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
91
91
  ```
92
92
 
93
- _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/add.ts)_
93
+ _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/add.ts)_
94
94
 
95
95
  ## `sanity-run blueprints config`
96
96
 
@@ -127,7 +127,7 @@ EXAMPLES
127
127
  $ sanity-run blueprints config --edit --project-id <projectId> --stack <name-or-id>
128
128
  ```
129
129
 
130
- _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/config.ts)_
130
+ _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/config.ts)_
131
131
 
132
132
  ## `sanity-run blueprints deploy`
133
133
 
@@ -183,7 +183,7 @@ EXAMPLES
183
183
  $ sanity-run blueprints deploy --new-stack-name <new-name>
184
184
  ```
185
185
 
186
- _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/deploy.ts)_
186
+ _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/deploy.ts)_
187
187
 
188
188
  ## `sanity-run blueprints destroy`
189
189
 
@@ -221,7 +221,7 @@ EXAMPLES
221
221
  $ sanity-run blueprints destroy --stack <name-or-id> --project-id <projectId> --force --no-wait
222
222
  ```
223
223
 
224
- _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/destroy.ts)_
224
+ _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/destroy.ts)_
225
225
 
226
226
  ## `sanity-run blueprints doctor`
227
227
 
@@ -253,7 +253,7 @@ EXAMPLES
253
253
  $ sanity-run blueprints doctor --fix
254
254
  ```
255
255
 
256
- _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/doctor.ts)_
256
+ _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/doctor.ts)_
257
257
 
258
258
  ## `sanity-run blueprints info`
259
259
 
@@ -291,7 +291,7 @@ EXAMPLES
291
291
  $ sanity-run blueprints info --organization-id <orgId> --stack <name-or-id>
292
292
  ```
293
293
 
294
- _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/info.ts)_
294
+ _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/info.ts)_
295
295
 
296
296
  ## `sanity-run blueprints init [DIR]`
297
297
 
@@ -355,7 +355,7 @@ EXAMPLES
355
355
  $ sanity-run blueprints init old-stack --type <json|js|ts> --project-id <projectId> --stack-id <existingStackId>
356
356
  ```
357
357
 
358
- _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/init.ts)_
358
+ _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/init.ts)_
359
359
 
360
360
  ## `sanity-run blueprints logs`
361
361
 
@@ -401,7 +401,7 @@ EXAMPLES
401
401
  $ sanity-run blueprints logs --before 2026-05-01T00:00:00Z
402
402
  ```
403
403
 
404
- _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/logs.ts)_
404
+ _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/logs.ts)_
405
405
 
406
406
  ## `sanity-run blueprints mint-deploy-token`
407
407
 
@@ -446,7 +446,7 @@ EXAMPLES
446
446
  $ sanity-run blueprints mint-deploy-token --organization-id <orgId>
447
447
  ```
448
448
 
449
- _See code: [src/commands/blueprints/mint-deploy-token.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/mint-deploy-token.ts)_
449
+ _See code: [src/commands/blueprints/mint-deploy-token.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/mint-deploy-token.ts)_
450
450
 
451
451
  ## `sanity-run blueprints plan`
452
452
 
@@ -479,7 +479,7 @@ EXAMPLES
479
479
  $ sanity-run blueprints plan --organization-id <orgId> --stack <name-or-id>
480
480
  ```
481
481
 
482
- _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/plan.ts)_
482
+ _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/plan.ts)_
483
483
 
484
484
  ## `sanity-run blueprints promote`
485
485
 
@@ -515,7 +515,7 @@ EXAMPLES
515
515
  $ sanity-run blueprints promote --new-stack-name <new-name>
516
516
  ```
517
517
 
518
- _See code: [src/commands/blueprints/promote.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/promote.ts)_
518
+ _See code: [src/commands/blueprints/promote.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/promote.ts)_
519
519
 
520
520
  ## `sanity-run blueprints stacks`
521
521
 
@@ -551,7 +551,7 @@ EXAMPLES
551
551
  $ sanity-run blueprints stacks --organization-id <organizationId> --include-projects
552
552
  ```
553
553
 
554
- _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/blueprints/stacks.ts)_
554
+ _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/blueprints/stacks.ts)_
555
555
 
556
556
  ## `sanity-run functions add`
557
557
 
@@ -603,7 +603,7 @@ EXAMPLES
603
603
  $ sanity-run functions add --name my-function --type document-create --type document-update --lang js
604
604
  ```
605
605
 
606
- _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/functions/add.ts)_
606
+ _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/functions/add.ts)_
607
607
 
608
608
  ## `sanity-run functions dev`
609
609
 
@@ -638,7 +638,7 @@ EXAMPLES
638
638
  $ sanity-run functions dev --timeout 60
639
639
  ```
640
640
 
641
- _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/functions/dev.ts)_
641
+ _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/functions/dev.ts)_
642
642
 
643
643
  ## `sanity-run functions env add NAME KEY VALUE`
644
644
 
@@ -671,7 +671,7 @@ EXAMPLES
671
671
  $ sanity-run functions env add --stack <name-or-id> MyFunction API_URL https://api.example.com/
672
672
  ```
673
673
 
674
- _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/functions/env/add.ts)_
674
+ _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/functions/env/add.ts)_
675
675
 
676
676
  ## `sanity-run functions env list NAME`
677
677
 
@@ -701,7 +701,7 @@ EXAMPLES
701
701
  $ sanity-run functions env list --stack <name-or-id> MyFunction
702
702
  ```
703
703
 
704
- _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/functions/env/list.ts)_
704
+ _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/functions/env/list.ts)_
705
705
 
706
706
  ## `sanity-run functions env remove NAME KEY`
707
707
 
@@ -733,7 +733,7 @@ EXAMPLES
733
733
  $ sanity-run functions env remove --stack <name-or-id> MyFunction API_URL
734
734
  ```
735
735
 
736
- _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/functions/env/remove.ts)_
736
+ _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/functions/env/remove.ts)_
737
737
 
738
738
  ## `sanity-run functions logs [NAME]`
739
739
 
@@ -773,7 +773,7 @@ EXAMPLES
773
773
  $ sanity-run functions logs <name> --delete
774
774
  ```
775
775
 
776
- _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/functions/logs.ts)_
776
+ _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/functions/logs.ts)_
777
777
 
778
778
  ## `sanity-run functions test [NAME]`
779
779
 
@@ -830,7 +830,7 @@ EXAMPLES
830
830
  $ sanity-run functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
831
831
  ```
832
832
 
833
- _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.g596ac51/src/commands/functions/test.ts)_
833
+ _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v17.4.0-blueprinit.gb640804/src/commands/functions/test.ts)_
834
834
 
835
835
  ## `sanity-run help [COMMAND]`
836
836
 
@@ -1,5 +1,5 @@
1
1
  import { RuntimeCommand } from '../baseCommands.js';
2
- export default class BlueprinitCommand extends RuntimeCommand<typeof BlueprinitCommand> {
2
+ export default class InitCommand extends RuntimeCommand<typeof InitCommand> {
3
3
  static hidden: boolean;
4
4
  static summary: string;
5
5
  static description: string;
@@ -3,7 +3,7 @@ import { llmsFlagConfig } from '@sanity-labs/oclif-plugin-skills-flag';
3
3
  import { RuntimeCommand } from '../baseCommands.js';
4
4
  import { blueprinitCore } from '../cores/blueprinit.js';
5
5
  import { Logger } from '../utils/logger.js';
6
- export default class BlueprinitCommand extends RuntimeCommand {
6
+ export default class InitCommand extends RuntimeCommand {
7
7
  static hidden = true;
8
8
  static summary = 'Experimental blueprints-first project init';
9
9
  static description = `Scaffolds a Blueprint, Studio, and starter function around an existing Sanity project.
@@ -33,7 +33,7 @@ export async function blueprinitCore(options) {
33
33
  return {
34
34
  success: false,
35
35
  error: 'No Sanity session found.',
36
- suggestions: ['Sign in first: npx sanity login', 'Then run blueprinit again.'],
36
+ suggestions: ['Sign in first: npx sanity login', 'Then run init again.'],
37
37
  };
38
38
  }
39
39
  log('Setting up your Sanity workspace.');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "commands": {
3
- "blueprinit": {
3
+ "init": {
4
4
  "aliases": [],
5
5
  "args": {},
6
6
  "description": "Scaffolds a Blueprint, Studio, and starter function around an existing Sanity project.\n\nThis hidden command is an experiment; its interface and generated files are not stable.",
@@ -115,7 +115,7 @@
115
115
  "hasDynamicHelp": false,
116
116
  "hidden": true,
117
117
  "hiddenAliases": [],
118
- "id": "blueprinit",
118
+ "id": "init",
119
119
  "pluginAlias": "@sanity/runtime-cli",
120
120
  "pluginName": "@sanity/runtime-cli",
121
121
  "pluginType": "core",
@@ -126,7 +126,7 @@
126
126
  "relativePath": [
127
127
  "dist",
128
128
  "commands",
129
- "blueprinit.js"
129
+ "init.js"
130
130
  ]
131
131
  },
132
132
  "blueprints:add": {
@@ -3254,5 +3254,5 @@
3254
3254
  ]
3255
3255
  }
3256
3256
  },
3257
- "version": "17.4.0-blueprinit.g596ac51"
3257
+ "version": "17.4.0-blueprinit.gb640804"
3258
3258
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sanity/runtime-cli",
3
3
  "description": "Sanity's Runtime CLI for Blueprints and Functions",
4
- "version": "17.4.0-blueprinit.g596ac51",
4
+ "version": "17.4.0-blueprinit.gb640804",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -1,6 +1,6 @@
1
- # Blueprinit
1
+ # init
2
2
 
3
- Use `blueprinit` to scaffold a Blueprint around an existing Sanity project. The command is
3
+ Use `init` to scaffold a Blueprint around an existing Sanity project. The command is
4
4
  experimental, hidden from root help, and available from the `blueprinit` npm dist-tag.
5
5
 
6
6
  Use it for demos and evaluation, not as a stable project initializer. Its flags, generated files,
@@ -8,7 +8,7 @@ and resource model may change.
8
8
 
9
9
  ## Know what it does
10
10
 
11
- `blueprinit` uses an existing Sanity organization, project, and dataset. It writes local Blueprint
11
+ `init` uses an existing Sanity organization, project, and dataset. It writes local Blueprint
12
12
  files, then creates an empty organization-scoped Stack. The generated Blueprint attaches the
13
13
  project and dataset and declares resources for a later deployment.
14
14
 
@@ -65,7 +65,7 @@ npx @sanity/runtime-cli@blueprinit blueprints doctor
65
65
  When the organization and project IDs are known, run this from the target directory:
66
66
 
67
67
  ```sh
68
- npx @sanity/runtime-cli@blueprinit blueprinit --yes \
68
+ npx @sanity/runtime-cli@blueprinit init --yes \
69
69
  --organization-id <organization-id> \
70
70
  --project-id <project-id> \
71
71
  --dataset <dataset-name>
@@ -91,7 +91,7 @@ For interactive organization, project, dataset, confirmation, and Studio-name pr
91
91
  user run:
92
92
 
93
93
  ```sh
94
- npx @sanity/runtime-cli@blueprinit blueprinit
94
+ npx @sanity/runtime-cli@blueprinit init
95
95
  ```
96
96
 
97
97
  When the project has several datasets, the interactive command prompts for one and lists
@@ -152,4 +152,4 @@ the user's request.
152
152
  Do not delete or replace it without the user's direction.
153
153
  - **Stack quota or duplicate-name error.** Local scaffold files may already exist while
154
154
  `.sanity/blueprint.config.json` does not. Resolve the Stack error, then run the recovery command
155
- printed by `blueprinit`. It uses `blueprints init` to connect the existing manifest.
155
+ printed by `init`, which is `blueprints init`. It connects the existing manifest without rewriting it.