@sanity/cli 6.0.0-alpha.9 → 6.1.0
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 +602 -291
- package/bin/run.js +2 -0
- package/dist/SanityHelp.js +51 -23
- package/dist/SanityHelp.js.map +1 -1
- package/dist/actions/auth/authServer.js +28 -22
- package/dist/actions/auth/authServer.js.map +1 -1
- package/dist/actions/auth/login/getProvider.js +49 -38
- package/dist/actions/auth/login/getProvider.js.map +1 -1
- package/dist/actions/auth/login/getSSOProvider.js +25 -19
- package/dist/actions/auth/login/getSSOProvider.js.map +1 -1
- package/dist/actions/auth/login/login.js +12 -33
- package/dist/actions/auth/login/login.js.map +1 -1
- package/dist/actions/auth/types.js.map +1 -1
- package/dist/actions/backup/downloadAsset.js +9 -9
- package/dist/actions/backup/downloadAsset.js.map +1 -1
- package/dist/actions/backup/downloadDocument.js +8 -8
- package/dist/actions/backup/downloadDocument.js.map +1 -1
- package/dist/actions/build/buildApp.js +55 -18
- package/dist/actions/build/buildApp.js.map +1 -1
- package/dist/actions/build/buildStaticFiles.js +3 -2
- package/dist/actions/build/buildStaticFiles.js.map +1 -1
- package/dist/actions/build/buildStudio.js +72 -44
- package/dist/actions/build/buildStudio.js.map +1 -1
- package/dist/actions/build/buildVendorDependencies.js +18 -52
- package/dist/actions/build/buildVendorDependencies.js.map +1 -1
- package/dist/actions/build/checkRequiredDependencies.js +13 -8
- package/dist/actions/build/checkRequiredDependencies.js.map +1 -1
- package/dist/actions/build/checkStudioDependencyVersions.js +19 -17
- package/dist/actions/build/checkStudioDependencyVersions.js.map +1 -1
- package/dist/actions/build/createExternalFromImportMap.js +1 -1
- package/dist/actions/build/createExternalFromImportMap.js.map +1 -1
- package/dist/actions/build/determineBasePath.js +5 -2
- package/dist/actions/build/determineBasePath.js.map +1 -1
- package/dist/actions/build/getViteConfig.js +47 -4
- package/dist/actions/build/getViteConfig.js.map +1 -1
- package/dist/actions/build/handlePrereleaseVersions.js +44 -0
- package/dist/actions/build/handlePrereleaseVersions.js.map +1 -0
- package/dist/actions/build/renderDocument.js +6 -10
- package/dist/actions/build/renderDocument.js.map +1 -1
- package/dist/actions/build/renderDocumentWorker/components/BasicDocument.js +4 -4
- package/dist/actions/build/renderDocumentWorker/components/BasicDocument.js.map +1 -1
- package/dist/actions/build/renderDocumentWorker/components/DefaultDocument.js +3 -3
- package/dist/actions/build/renderDocumentWorker/components/DefaultDocument.js.map +1 -1
- package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.js +1 -0
- package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.js.map +1 -1
- package/dist/actions/build/renderDocumentWorker/getDocumentComponent.js +2 -2
- package/dist/actions/build/renderDocumentWorker/getDocumentComponent.js.map +1 -1
- package/dist/actions/build/renderDocumentWorker/renderDocumentWorker.js +1 -1
- package/dist/actions/build/renderDocumentWorker/renderDocumentWorker.js.map +1 -1
- package/dist/actions/build/shouldAutoUpdate.js +2 -0
- package/dist/actions/build/shouldAutoUpdate.js.map +1 -1
- package/dist/actions/build/types.js.map +1 -1
- package/dist/actions/build/writeFavicons.js +3 -5
- package/dist/actions/build/writeFavicons.js.map +1 -1
- package/dist/actions/build/writeSanityRuntime.js +4 -3
- package/dist/actions/build/writeSanityRuntime.js.map +1 -1
- package/dist/actions/codemods/reactIconsV3.js +2 -2
- package/dist/actions/codemods/reactIconsV3.js.map +1 -1
- package/dist/actions/dataset/create.js +7 -1
- package/dist/actions/dataset/create.js.map +1 -1
- package/dist/actions/dataset/determineDatasetAclMode.js.map +1 -1
- package/dist/actions/dataset/resolveDataset.js +26 -0
- package/dist/actions/dataset/resolveDataset.js.map +1 -0
- package/dist/actions/debug/formatters.js +22 -0
- package/dist/actions/debug/formatters.js.map +1 -0
- package/dist/actions/deploy/createStudioUserApplication.js +17 -4
- package/dist/actions/deploy/createStudioUserApplication.js.map +1 -1
- package/dist/actions/deploy/deployApp.js +41 -15
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +92 -44
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/deploy/deployStudioSchemasAndManifests.js +55 -0
- package/dist/actions/deploy/deployStudioSchemasAndManifests.js.map +1 -0
- package/dist/actions/deploy/deployStudioSchemasAndManifests.worker.js +120 -0
- package/dist/actions/deploy/deployStudioSchemasAndManifests.worker.js.map +1 -0
- package/dist/actions/deploy/findUserApplicationForStudio.js +35 -12
- package/dist/actions/deploy/findUserApplicationForStudio.js.map +1 -1
- package/dist/actions/deploy/types.js +10 -1
- package/dist/actions/deploy/types.js.map +1 -1
- package/dist/actions/deploy/urlUtils.js +21 -0
- package/dist/actions/deploy/urlUtils.js.map +1 -0
- package/dist/actions/dev/getDashboardAppUrl.js +48 -0
- package/dist/actions/dev/getDashboardAppUrl.js.map +1 -0
- package/dist/actions/dev/getDevServerConfig.js +7 -3
- package/dist/actions/dev/getDevServerConfig.js.map +1 -1
- package/dist/actions/dev/startAppDevServer.js +3 -3
- package/dist/actions/dev/startAppDevServer.js.map +1 -1
- package/dist/actions/dev/startStudioDevServer.js +14 -14
- package/dist/actions/dev/startStudioDevServer.js.map +1 -1
- package/dist/actions/doctor/checks/cliInstallation.js +56 -0
- package/dist/actions/doctor/checks/cliInstallation.js.map +1 -0
- package/dist/actions/doctor/checks/index.js +16 -0
- package/dist/actions/doctor/checks/index.js.map +1 -0
- package/dist/actions/doctor/runDoctorChecks.js +56 -0
- package/dist/actions/doctor/runDoctorChecks.js.map +1 -0
- package/dist/actions/doctor/types.js +3 -0
- package/dist/actions/doctor/types.js.map +1 -0
- package/dist/actions/documents/types.js.map +1 -1
- package/dist/actions/documents/validate.js +11 -2
- package/dist/actions/documents/validate.js.map +1 -1
- package/dist/actions/documents/validateDocuments.worker.js +4 -4
- package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
- package/dist/actions/documents/validation/reporters/jsonReporter.js +1 -1
- package/dist/actions/documents/validation/reporters/jsonReporter.js.map +1 -1
- package/dist/actions/documents/validation/reporters/ndjsonReporter.js +1 -1
- package/dist/actions/documents/validation/reporters/ndjsonReporter.js.map +1 -1
- package/dist/actions/documents/validation/reporters/prettyReporter/formatDocumentValidation.js +1 -1
- package/dist/actions/documents/validation/reporters/prettyReporter/formatDocumentValidation.js.map +1 -1
- package/dist/actions/documents/validation/reporters/prettyReporter/tree.js +108 -0
- package/dist/actions/documents/validation/reporters/prettyReporter/tree.js.map +1 -0
- package/dist/actions/graphql/SchemaError.js +4 -26
- package/dist/actions/graphql/SchemaError.js.map +1 -1
- package/dist/actions/graphql/__tests__/fixtures/many-self-refs.js +540 -0
- package/dist/actions/graphql/__tests__/fixtures/many-self-refs.js.map +1 -0
- package/dist/actions/graphql/__tests__/fixtures/test-studio.js +1143 -0
- package/dist/actions/graphql/__tests__/fixtures/test-studio.js.map +1 -0
- package/dist/actions/graphql/__tests__/fixtures/union-refs.js +591 -0
- package/dist/actions/graphql/__tests__/fixtures/union-refs.js.map +1 -0
- package/dist/actions/graphql/__tests__/helpers.js +23 -0
- package/dist/actions/graphql/__tests__/helpers.js.map +1 -0
- package/dist/actions/graphql/extractFromSanitySchema.js +5 -5
- package/dist/actions/graphql/extractFromSanitySchema.js.map +1 -1
- package/dist/actions/graphql/extractGraphQLAPIs.js +150 -0
- package/dist/actions/graphql/extractGraphQLAPIs.js.map +1 -0
- package/dist/actions/graphql/extractGraphQLAPIs.worker.js +12 -0
- package/dist/actions/graphql/extractGraphQLAPIs.worker.js.map +1 -0
- package/dist/actions/graphql/gen1/generateTypeFilters.js +1 -1
- package/dist/actions/graphql/gen1/generateTypeFilters.js.map +1 -1
- package/dist/actions/graphql/gen1/generateTypeQueries.js +2 -1
- package/dist/actions/graphql/gen1/generateTypeQueries.js.map +1 -1
- package/dist/actions/graphql/gen1/index.js +5 -5
- package/dist/actions/graphql/gen1/index.js.map +1 -1
- package/dist/actions/graphql/gen2/generateTypeQueries.js +1 -1
- package/dist/actions/graphql/gen2/generateTypeQueries.js.map +1 -1
- package/dist/actions/graphql/gen2/index.js +6 -6
- package/dist/actions/graphql/gen2/index.js.map +1 -1
- package/dist/actions/graphql/gen3/generateTypeQueries.js +3 -4
- package/dist/actions/graphql/gen3/generateTypeQueries.js.map +1 -1
- package/dist/actions/graphql/gen3/index.js +6 -7
- package/dist/actions/graphql/gen3/index.js.map +1 -1
- package/dist/actions/graphql/getGraphQLAPIs.js +15 -57
- package/dist/actions/graphql/getGraphQLAPIs.js.map +1 -1
- package/dist/actions/graphql/getGraphQLAPIs.worker.js +75 -106
- package/dist/actions/graphql/getGraphQLAPIs.worker.js.map +1 -1
- package/dist/actions/graphql/helpers.js +13 -0
- package/dist/actions/graphql/helpers.js.map +1 -1
- package/dist/actions/graphql/resolveGraphQLApisFromWorkspaces.js +187 -0
- package/dist/actions/graphql/resolveGraphQLApisFromWorkspaces.js.map +1 -0
- package/dist/actions/graphql/types.js +1 -1
- package/dist/actions/graphql/types.js.map +1 -1
- package/dist/actions/init/bootstrapLocalTemplate.js +10 -8
- package/dist/actions/init/bootstrapLocalTemplate.js.map +1 -1
- package/dist/actions/init/bootstrapRemoteTemplate.js +6 -5
- package/dist/actions/init/bootstrapRemoteTemplate.js.map +1 -1
- package/dist/actions/init/bootstrapTemplate.js.map +1 -1
- package/dist/actions/init/checkNextJsReactCompatibility.js +1 -1
- package/dist/actions/init/checkNextJsReactCompatibility.js.map +1 -1
- package/dist/actions/init/createAppCliConfig.js.map +1 -1
- package/dist/actions/init/createCliConfig.js.map +1 -1
- package/dist/actions/init/createPackageManifest.js +21 -9
- package/dist/actions/init/createPackageManifest.js.map +1 -1
- package/dist/actions/init/remoteTemplate.js +1 -2
- package/dist/actions/init/remoteTemplate.js.map +1 -1
- package/dist/actions/init/sdkAppDependencies.js +19 -0
- package/dist/actions/init/sdkAppDependencies.js.map +1 -0
- package/dist/actions/init/studioDependencies.js.map +1 -0
- package/dist/actions/init/templates/appQuickstart.js +1 -22
- package/dist/actions/init/templates/appQuickstart.js.map +1 -1
- package/dist/actions/init/templates/appSanityUi.js +3 -22
- package/dist/actions/init/templates/appSanityUi.js.map +1 -1
- package/dist/actions/init/types.js.map +1 -1
- package/dist/actions/manifest/SchemaIcon.js +6 -4
- package/dist/actions/manifest/SchemaIcon.js.map +1 -1
- package/dist/actions/manifest/blockTypeTransformer.js +67 -0
- package/dist/actions/manifest/blockTypeTransformer.js.map +1 -0
- package/dist/actions/manifest/debug.js +4 -0
- package/dist/actions/manifest/debug.js.map +1 -0
- package/dist/actions/manifest/extractAppManifest.js +39 -22
- package/dist/actions/manifest/extractAppManifest.js.map +1 -1
- package/dist/actions/manifest/extractManifest.js +27 -78
- package/dist/actions/manifest/extractManifest.js.map +1 -1
- package/dist/actions/manifest/extractManifest.worker.js +30 -0
- package/dist/actions/manifest/extractManifest.worker.js.map +1 -0
- package/dist/actions/manifest/extractWorkspaceManifest.js +31 -372
- package/dist/actions/manifest/extractWorkspaceManifest.js.map +1 -1
- package/dist/actions/manifest/iconResolver.js +30 -0
- package/dist/actions/manifest/iconResolver.js.map +1 -0
- package/dist/actions/manifest/referenceTransformer.js +51 -0
- package/dist/actions/manifest/referenceTransformer.js.map +1 -0
- package/dist/actions/manifest/schemaTypeHelpers.js +2 -2
- package/dist/actions/manifest/schemaTypeHelpers.js.map +1 -1
- package/dist/actions/manifest/schemaTypeTransformer.js +168 -0
- package/dist/actions/manifest/schemaTypeTransformer.js.map +1 -0
- package/dist/actions/manifest/transformerUtils.js +40 -0
- package/dist/actions/manifest/transformerUtils.js.map +1 -0
- package/dist/actions/manifest/types.js +5 -0
- package/dist/actions/manifest/types.js.map +1 -1
- package/dist/actions/manifest/validationTransformer.js +84 -0
- package/dist/actions/manifest/validationTransformer.js.map +1 -0
- package/dist/actions/manifest/writeManifestFile.js +30 -0
- package/dist/actions/manifest/writeManifestFile.js.map +1 -0
- package/dist/actions/manifest/writeWorkspaceFiles.js +30 -0
- package/dist/actions/manifest/writeWorkspaceFiles.js.map +1 -0
- package/dist/actions/mcp/detectAvailableEditors.js +34 -13
- package/dist/actions/mcp/detectAvailableEditors.js.map +1 -1
- package/dist/actions/mcp/editorConfigs.js +231 -109
- package/dist/actions/mcp/editorConfigs.js.map +1 -1
- package/dist/actions/mcp/promptForMCPSetup.js +16 -7
- package/dist/actions/mcp/promptForMCPSetup.js.map +1 -1
- package/dist/actions/mcp/setupMCP.js +62 -23
- package/dist/actions/mcp/setupMCP.js.map +1 -1
- package/dist/actions/mcp/types.js.map +1 -1
- package/dist/actions/mcp/validateEditorTokens.js +56 -0
- package/dist/actions/mcp/validateEditorTokens.js.map +1 -0
- package/dist/actions/mcp/writeMCPConfig.js +27 -15
- package/dist/actions/mcp/writeMCPConfig.js.map +1 -1
- package/dist/actions/media/buildNdjsonIndex.js +32 -0
- package/dist/actions/media/buildNdjsonIndex.js.map +1 -0
- package/dist/actions/media/importAspects.js +2 -11
- package/dist/actions/media/importAspects.js.map +1 -1
- package/dist/actions/media/importMedia.js +22 -18
- package/dist/actions/media/importMedia.js.map +1 -1
- package/dist/actions/organizations/findOrganizationByUserName.js +5 -0
- package/dist/actions/organizations/findOrganizationByUserName.js.map +1 -0
- package/dist/actions/organizations/getOrganization.js +3 -2
- package/dist/actions/organizations/getOrganization.js.map +1 -1
- package/dist/actions/organizations/getOrganizationChoices.js +27 -19
- package/dist/actions/organizations/getOrganizationChoices.js.map +1 -1
- package/dist/actions/organizations/types.js +3 -0
- package/dist/actions/organizations/types.js.map +1 -0
- package/dist/actions/projects/getManageUrl.js +1 -2
- package/dist/actions/projects/getManageUrl.js.map +1 -1
- package/dist/actions/schema/deleteSchemaAction.js +14 -30
- package/dist/actions/schema/deleteSchemaAction.js.map +1 -1
- package/dist/actions/schema/deploySchemas.js +22 -91
- package/dist/actions/schema/deploySchemas.js.map +1 -1
- package/dist/actions/schema/extractSanitySchema.worker.js +0 -5
- package/dist/actions/schema/extractSanitySchema.worker.js.map +1 -1
- package/dist/actions/schema/extractSanityWorkspace.worker.js +24 -0
- package/dist/actions/schema/extractSanityWorkspace.worker.js.map +1 -0
- package/dist/actions/schema/extractSchema.js +8 -40
- package/dist/actions/schema/extractSchema.js.map +1 -1
- package/dist/actions/schema/extractSchemaWatcher.js +128 -0
- package/dist/actions/schema/extractSchemaWatcher.js.map +1 -0
- package/dist/actions/schema/formatSchemaValidation.js +5 -1
- package/dist/actions/schema/formatSchemaValidation.js.map +1 -1
- package/dist/actions/schema/getExtractOptions.js +16 -0
- package/dist/actions/schema/getExtractOptions.js.map +1 -0
- package/dist/actions/schema/listSchemas.js +53 -56
- package/dist/actions/schema/listSchemas.js.map +1 -1
- package/dist/actions/schema/matchSchemaPattern.js +22 -0
- package/dist/actions/schema/matchSchemaPattern.js.map +1 -0
- package/dist/actions/schema/runSchemaExtraction.js +39 -0
- package/dist/actions/schema/runSchemaExtraction.js.map +1 -0
- package/dist/actions/schema/types.js +8 -0
- package/dist/actions/schema/types.js.map +1 -1
- package/dist/actions/schema/uniqueWorkspaces.worker.js +24 -0
- package/dist/actions/schema/uniqueWorkspaces.worker.js.map +1 -0
- package/dist/actions/schema/updateWorkspaceSchema.js +63 -0
- package/dist/actions/schema/updateWorkspaceSchema.js.map +1 -0
- package/dist/actions/schema/uploadSchemaToLexicon.js +87 -0
- package/dist/actions/schema/uploadSchemaToLexicon.js.map +1 -0
- package/dist/actions/schema/utils/SchemaExtractionError.js +10 -0
- package/dist/actions/schema/utils/SchemaExtractionError.js.map +1 -0
- package/dist/actions/schema/utils/schemaStoreValidation.js +1 -15
- package/dist/actions/schema/utils/schemaStoreValidation.js.map +1 -1
- package/dist/actions/schema/utils/uniqByProjectIdDataset.js +1 -1
- package/dist/actions/schema/utils/uniqByProjectIdDataset.js.map +1 -1
- package/dist/actions/schema/validateSchema.worker.js +1 -8
- package/dist/actions/schema/validateSchema.worker.js.map +1 -1
- package/dist/actions/schema/watchExtractSchema.js +72 -0
- package/dist/actions/schema/watchExtractSchema.js.map +1 -0
- package/dist/actions/telemetry/isTrueish.js +10 -0
- package/dist/actions/telemetry/isTrueish.js.map +1 -0
- package/dist/actions/telemetry/resolveConsent.js +2 -1
- package/dist/actions/telemetry/resolveConsent.js.map +1 -1
- package/dist/actions/telemetry/setConsent.js +2 -1
- package/dist/actions/telemetry/setConsent.js.map +1 -1
- package/dist/actions/telemetry/telemetryDebug.js +2 -2
- package/dist/actions/telemetry/telemetryDebug.js.map +1 -1
- package/dist/actions/users/getMembersForProject.js.map +1 -1
- package/dist/actions/users/getPendingInvitations.js +1 -1
- package/dist/actions/users/getPendingInvitations.js.map +1 -1
- package/dist/actions/users/types.js.map +1 -1
- package/dist/actions/versions/filterSanityModules.js.map +1 -1
- package/dist/actions/versions/findSanityModulesVersions.js +2 -3
- package/dist/actions/versions/findSanityModulesVersions.js.map +1 -1
- package/dist/actions/versions/getFormatters.js +1 -1
- package/dist/actions/versions/getFormatters.js.map +1 -1
- package/dist/actions/versions/tryFindLatestVersion.js +1 -1
- package/dist/actions/versions/tryFindLatestVersion.js.map +1 -1
- package/dist/commands/backup/disable.js +22 -7
- package/dist/commands/backup/disable.js.map +1 -1
- package/dist/commands/backup/download.js +19 -10
- package/dist/commands/backup/download.js.map +1 -1
- package/dist/commands/backup/enable.js +22 -7
- package/dist/commands/backup/enable.js.map +1 -1
- package/dist/commands/backup/list.js +20 -8
- package/dist/commands/backup/list.js.map +1 -1
- package/dist/commands/build.js +2 -5
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/cors/add.js +20 -7
- package/dist/commands/cors/add.js.map +1 -1
- package/dist/commands/cors/delete.js +22 -7
- package/dist/commands/cors/delete.js.map +1 -1
- package/dist/commands/cors/list.js +22 -7
- package/dist/commands/cors/list.js.map +1 -1
- package/dist/commands/dataset/alias/create.js +26 -7
- package/dist/commands/dataset/alias/create.js.map +1 -1
- package/dist/commands/dataset/alias/delete.js +20 -7
- package/dist/commands/dataset/alias/delete.js.map +1 -1
- package/dist/commands/dataset/alias/link.js +20 -7
- package/dist/commands/dataset/alias/link.js.map +1 -1
- package/dist/commands/dataset/alias/unlink.js +20 -7
- package/dist/commands/dataset/alias/unlink.js.map +1 -1
- package/dist/commands/dataset/copy.js +45 -30
- package/dist/commands/dataset/copy.js.map +1 -1
- package/dist/commands/dataset/create.js +32 -7
- package/dist/commands/dataset/create.js.map +1 -1
- package/dist/commands/dataset/delete.js +16 -7
- package/dist/commands/dataset/delete.js.map +1 -1
- package/dist/commands/dataset/embeddings/disable.js +77 -0
- package/dist/commands/dataset/embeddings/disable.js.map +1 -0
- package/dist/commands/dataset/embeddings/enable.js +141 -0
- package/dist/commands/dataset/embeddings/enable.js.map +1 -0
- package/dist/commands/dataset/embeddings/status.js +72 -0
- package/dist/commands/dataset/embeddings/status.js.map +1 -0
- package/dist/commands/dataset/export.js +25 -16
- package/dist/commands/dataset/export.js.map +1 -1
- package/dist/commands/dataset/import.js +306 -1
- package/dist/commands/dataset/import.js.map +1 -1
- package/dist/commands/dataset/list.js +22 -7
- package/dist/commands/dataset/list.js.map +1 -1
- package/dist/commands/dataset/visibility/get.js +18 -7
- package/dist/commands/dataset/visibility/get.js.map +1 -1
- package/dist/commands/dataset/visibility/set.js +22 -7
- package/dist/commands/dataset/visibility/set.js.map +1 -1
- package/dist/commands/debug.js +4 -2
- package/dist/commands/debug.js.map +1 -1
- package/dist/commands/deploy.js +22 -11
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/dev.js +2 -4
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.js +125 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/documents/create.js +19 -12
- package/dist/commands/documents/create.js.map +1 -1
- package/dist/commands/documents/delete.js +19 -12
- package/dist/commands/documents/delete.js.map +1 -1
- package/dist/commands/documents/get.js +17 -12
- package/dist/commands/documents/get.js.map +1 -1
- package/dist/commands/documents/query.js +26 -18
- package/dist/commands/documents/query.js.map +1 -1
- package/dist/commands/documents/validate.js +32 -10
- package/dist/commands/documents/validate.js.map +1 -1
- package/dist/commands/graphql/deploy.js +58 -30
- package/dist/commands/graphql/deploy.js.map +1 -1
- package/dist/commands/graphql/list.js +15 -7
- package/dist/commands/graphql/list.js.map +1 -1
- package/dist/commands/graphql/undeploy.js +37 -19
- package/dist/commands/graphql/undeploy.js.map +1 -1
- package/dist/commands/hook/attempt.js +22 -7
- package/dist/commands/hook/attempt.js.map +1 -1
- package/dist/commands/hook/create.js +23 -8
- package/dist/commands/hook/create.js.map +1 -1
- package/dist/commands/hook/delete.js +22 -7
- package/dist/commands/hook/delete.js.map +1 -1
- package/dist/commands/hook/list.js +22 -7
- package/dist/commands/hook/list.js.map +1 -1
- package/dist/commands/hook/logs.js +21 -8
- package/dist/commands/hook/logs.js.map +1 -1
- package/dist/commands/init.js +55 -32
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.js +19 -6
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +8 -6
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/manage.js +0 -1
- package/dist/commands/manage.js.map +1 -1
- package/dist/commands/manifest/extract.js +14 -10
- package/dist/commands/manifest/extract.js.map +1 -1
- package/dist/commands/mcp/configure.js +4 -2
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/commands/media/create-aspect.js +4 -4
- package/dist/commands/media/create-aspect.js.map +1 -1
- package/dist/commands/media/delete-aspect.js +9 -7
- package/dist/commands/media/delete-aspect.js.map +1 -1
- package/dist/commands/media/deploy-aspect.js +22 -9
- package/dist/commands/media/deploy-aspect.js.map +1 -1
- package/dist/commands/media/export.js +9 -7
- package/dist/commands/media/export.js.map +1 -1
- package/dist/commands/media/import.js +10 -8
- package/dist/commands/media/import.js.map +1 -1
- package/dist/commands/preview.js +5 -8
- package/dist/commands/preview.js.map +1 -1
- package/dist/commands/projects/list.js +2 -1
- package/dist/commands/projects/list.js.map +1 -1
- package/dist/commands/schema/delete.js +33 -34
- package/dist/commands/schema/delete.js.map +1 -1
- package/dist/commands/schema/deploy.js +19 -30
- package/dist/commands/schema/deploy.js.map +1 -1
- package/dist/commands/schema/extract.js +32 -4
- package/dist/commands/schema/extract.js.map +1 -1
- package/dist/commands/schema/list.js +10 -31
- package/dist/commands/schema/list.js.map +1 -1
- package/dist/commands/tokens/add.js +24 -7
- package/dist/commands/tokens/add.js.map +1 -1
- package/dist/commands/tokens/delete.js +20 -7
- package/dist/commands/tokens/delete.js.map +1 -1
- package/dist/commands/tokens/list.js +20 -7
- package/dist/commands/tokens/list.js.map +1 -1
- package/dist/commands/users/invite.js +24 -7
- package/dist/commands/users/invite.js.map +1 -1
- package/dist/commands/users/list.js +76 -33
- package/dist/commands/users/list.js.map +1 -1
- package/dist/commands/versions.js +1 -1
- package/dist/commands/versions.js.map +1 -1
- package/dist/config/createCliConfig.js +1 -2
- package/dist/config/createCliConfig.js.map +1 -1
- package/dist/exports/_internal.d.ts +132 -0
- package/dist/exports/_internal.js +4 -0
- package/dist/exports/_internal.js.map +1 -0
- package/dist/exports/index.d.ts +113 -0
- package/dist/exports/index.js +6 -0
- package/dist/exports/index.js.map +1 -0
- package/dist/hooks/init/checkForUpdates.js +14 -0
- package/dist/hooks/init/checkForUpdates.js.map +1 -0
- package/dist/hooks/prerun/flushTelemetry.worker.js +1 -1
- package/dist/hooks/prerun/flushTelemetry.worker.js.map +1 -1
- package/dist/hooks/prerun/injectEnvVariables.js +9 -1
- package/dist/hooks/prerun/injectEnvVariables.js.map +1 -1
- package/dist/hooks/prerun/setupTelemetry.js +16 -10
- package/dist/hooks/prerun/setupTelemetry.js.map +1 -1
- package/dist/prompts/promptForProject.js +64 -0
- package/dist/prompts/promptForProject.js.map +1 -0
- package/dist/{actions/auth/login/promptProviders.js → prompts/promptForProviders.js} +3 -3
- package/dist/prompts/promptForProviders.js.map +1 -0
- package/dist/prompts/selectMediaLibrary.js +1 -1
- package/dist/prompts/selectMediaLibrary.js.map +1 -1
- package/dist/server/devServer.js +4 -2
- package/dist/server/devServer.js.map +1 -1
- package/dist/server/previewServer.js +2 -2
- package/dist/server/previewServer.js.map +1 -1
- package/dist/server/vite/plugin-schema-extraction.js +201 -0
- package/dist/server/vite/plugin-schema-extraction.js.map +1 -0
- package/dist/server/vite/plugin-typegen.js +217 -0
- package/dist/server/vite/plugin-typegen.js.map +1 -0
- package/dist/services/auth.js +42 -3
- package/dist/services/auth.js.map +1 -1
- package/dist/services/datasets.js +7 -5
- package/dist/services/datasets.js.map +1 -1
- package/dist/services/docs.js +2 -2
- package/dist/services/docs.js.map +1 -1
- package/dist/services/embeddings.js +25 -0
- package/dist/services/embeddings.js.map +1 -0
- package/dist/services/getUrlHeaders.js +7 -18
- package/dist/services/getUrlHeaders.js.map +1 -1
- package/dist/services/grants.js +13 -0
- package/dist/services/grants.js.map +1 -0
- package/dist/services/graphql.js +1 -1
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/mcp.js +55 -1
- package/dist/services/mcp.js.map +1 -1
- package/dist/services/projects.js +4 -2
- package/dist/services/projects.js.map +1 -1
- package/dist/services/schemas.js +1 -1
- package/dist/services/schemas.js.map +1 -1
- package/dist/services/telemetry.js +2 -1
- package/dist/services/telemetry.js.map +1 -1
- package/dist/services/userApplications.js +21 -6
- package/dist/services/userApplications.js.map +1 -1
- package/dist/telemetry/extractSchema.telemetry.js +10 -0
- package/dist/telemetry/extractSchema.telemetry.js.map +1 -1
- package/dist/types/grants.js +3 -0
- package/dist/types/grants.js.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -1
- package/dist/util/checkProjectPermissions.js +21 -0
- package/dist/util/checkProjectPermissions.js.map +1 -0
- package/dist/util/cliClient.js +5 -3
- package/dist/util/cliClient.js.map +1 -1
- package/dist/util/compareDependencyVersions.js +74 -38
- package/dist/util/compareDependencyVersions.js.map +1 -1
- package/dist/util/createExpiringConfig.js +64 -0
- package/dist/util/createExpiringConfig.js.map +1 -0
- package/dist/util/detectFramework.js +135 -0
- package/dist/util/detectFramework.js.map +1 -0
- package/dist/util/errorMessages.js +0 -1
- package/dist/util/errorMessages.js.map +1 -1
- package/dist/util/extractDocumentsFromNdjsonOrTarball.js +1 -2
- package/dist/util/extractDocumentsFromNdjsonOrTarball.js.map +1 -1
- package/dist/util/getCliVersion.js +1 -1
- package/dist/util/getCliVersion.js.map +1 -1
- package/dist/util/getLocalPackageVersion.js +33 -23
- package/dist/util/getLocalPackageVersion.js.map +1 -1
- package/dist/util/getProjectDefaults.js +22 -28
- package/dist/util/getProjectDefaults.js.map +1 -1
- package/dist/util/getSharedServerConfig.js +1 -0
- package/dist/util/getSharedServerConfig.js.map +1 -1
- package/dist/util/getWorkspace.js +1 -1
- package/dist/util/getWorkspace.js.map +1 -1
- package/dist/util/gitConfig.js +45 -0
- package/dist/util/gitConfig.js.map +1 -0
- package/dist/util/isSchemaError.js +11 -0
- package/dist/util/isSchemaError.js.map +1 -0
- package/dist/util/isTar.js +8 -0
- package/dist/util/isTar.js.map +1 -0
- package/dist/util/packageManager/getPeerDependencies.js +44 -0
- package/dist/util/packageManager/getPeerDependencies.js.map +1 -0
- package/dist/util/packageManager/installationInfo/analyzeIssues.js +225 -0
- package/dist/util/packageManager/installationInfo/analyzeIssues.js.map +1 -0
- package/dist/util/packageManager/installationInfo/commands.js +73 -0
- package/dist/util/packageManager/installationInfo/commands.js.map +1 -0
- package/dist/util/packageManager/installationInfo/detectCliInstallation.js +66 -0
- package/dist/util/packageManager/installationInfo/detectCliInstallation.js.map +1 -0
- package/dist/util/packageManager/installationInfo/detectGlobals.js +295 -0
- package/dist/util/packageManager/installationInfo/detectGlobals.js.map +1 -0
- package/dist/util/packageManager/installationInfo/detectPackages.js +190 -0
- package/dist/util/packageManager/installationInfo/detectPackages.js.map +1 -0
- package/dist/util/packageManager/installationInfo/detectWorkspace.js +192 -0
- package/dist/util/packageManager/installationInfo/detectWorkspace.js.map +1 -0
- package/dist/util/packageManager/installationInfo/index.js +4 -0
- package/dist/util/packageManager/installationInfo/index.js.map +1 -0
- package/dist/util/packageManager/installationInfo/readJsonFile.js +14 -0
- package/dist/util/packageManager/installationInfo/readJsonFile.js.map +1 -0
- package/dist/util/packageManager/installationInfo/resolveVersionRange.js +42 -0
- package/dist/util/packageManager/installationInfo/resolveVersionRange.js.map +1 -0
- package/dist/util/packageManager/installationInfo/types.js +3 -0
- package/dist/util/packageManager/installationInfo/types.js.map +1 -0
- package/dist/util/packageManager/packageManagerChoice.js +1 -20
- package/dist/util/packageManager/packageManagerChoice.js.map +1 -1
- package/dist/util/packageManager/upgradePackages.js +4 -1
- package/dist/util/packageManager/upgradePackages.js.map +1 -1
- package/dist/util/promiseRaceWithTimeout.js +28 -0
- package/dist/util/promiseRaceWithTimeout.js.map +1 -0
- package/dist/util/readdirRecursive.js.map +1 -1
- package/dist/util/resolveLatestVersions.js +2 -2
- package/dist/util/resolveLatestVersions.js.map +1 -1
- package/dist/util/sharedFlags.js +54 -0
- package/dist/util/sharedFlags.js.map +1 -0
- package/dist/util/telemetry/cleanupOldTelemetryFiles.js +30 -0
- package/dist/util/telemetry/cleanupOldTelemetryFiles.js.map +1 -0
- package/dist/util/telemetry/createTelemetryStore.js +95 -0
- package/dist/util/telemetry/createTelemetryStore.js.map +1 -0
- package/dist/util/telemetry/createTraceId.js +10 -0
- package/dist/util/telemetry/createTraceId.js.map +1 -0
- package/dist/util/telemetry/findTelemetryFiles.js +35 -0
- package/dist/util/telemetry/findTelemetryFiles.js.map +1 -0
- package/dist/util/telemetry/flushTelemetryFiles.js +118 -0
- package/dist/util/telemetry/flushTelemetryFiles.js.map +1 -0
- package/dist/util/telemetry/generateTelemetryFilePath.js +30 -0
- package/dist/util/telemetry/generateTelemetryFilePath.js.map +1 -0
- package/dist/util/telemetry/logger.js +59 -0
- package/dist/util/telemetry/logger.js.map +1 -0
- package/dist/util/telemetry/readNDJSON.js +28 -0
- package/dist/util/telemetry/readNDJSON.js.map +1 -0
- package/dist/util/telemetry/telemetryStoreDebug.js +7 -0
- package/dist/util/telemetry/telemetryStoreDebug.js.map +1 -0
- package/dist/util/telemetry/trace.js +150 -0
- package/dist/util/telemetry/trace.js.map +1 -0
- package/dist/util/toForwardSlashes.js +8 -0
- package/dist/util/toForwardSlashes.js.map +1 -0
- package/dist/util/update/fetchLatestVersion.js +21 -0
- package/dist/util/update/fetchLatestVersion.js.map +1 -0
- package/dist/util/update/getUpdateCommand.js +20 -0
- package/dist/util/update/getUpdateCommand.js.map +1 -0
- package/dist/util/update/isInstalledUsingYarn.js +17 -0
- package/dist/util/update/isInstalledUsingYarn.js.map +1 -0
- package/dist/util/update/showNotificationUpdate.js +31 -0
- package/dist/util/update/showNotificationUpdate.js.map +1 -0
- package/dist/util/update/updateChecker.js +60 -0
- package/dist/util/update/updateChecker.js.map +1 -0
- package/dist/util/update/updateCheckerDebug.js +4 -0
- package/dist/util/update/updateCheckerDebug.js.map +1 -0
- package/oclif.config.js +1 -0
- package/oclif.manifest.json +1285 -492
- package/package.json +72 -73
- package/static/favicons/apple-touch-icon.png +0 -0
- package/static/favicons/favicon-192.png +0 -0
- package/static/favicons/favicon-512.png +0 -0
- package/static/favicons/favicon-96.png +0 -0
- package/static/favicons/favicon.ico +0 -0
- package/static/favicons/favicon.svg +12 -0
- package/dist/actions/auth/login/promptProviders.js.map +0 -1
- package/dist/actions/dev/getCoreAppUrl.js +0 -10
- package/dist/actions/dev/getCoreAppUrl.js.map +0 -1
- package/dist/actions/schema/schemaStoreTypes.js +0 -19
- package/dist/actions/schema/schemaStoreTypes.js.map +0 -1
- package/dist/actions/schema/utils/manifestExtractor.js +0 -33
- package/dist/actions/schema/utils/manifestExtractor.js.map +0 -1
- package/dist/actions/schema/utils/manifestReader.js +0 -71
- package/dist/actions/schema/utils/manifestReader.js.map +0 -1
- package/dist/index.d.ts +0 -2326
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
- package/dist/studioDependencies.js.map +0 -1
- package/dist/typings/deepSortObject.d.js +0 -2
- package/dist/typings/deepSortObject.d.js.map +0 -1
- package/dist/util/findNdjsonEntry.js +0 -21
- package/dist/util/findNdjsonEntry.js.map +0 -1
- package/dist/util/importStudioConfig.js +0 -40
- package/dist/util/importStudioConfig.js.map +0 -1
- package/dist/util/readModuleVersion.js +0 -15
- package/dist/util/readModuleVersion.js.map +0 -1
- package/dist/util/readPackageJson.js +0 -44
- package/dist/util/readPackageJson.js.map +0 -1
- package/dist/util/readPackageManifest.js +0 -46
- package/dist/util/readPackageManifest.js.map +0 -1
- package/dist/util/uniqBy.js +0 -14
- package/dist/util/uniqBy.js.map +0 -1
- package/dist/util/workerChannels.js +0 -172
- package/dist/util/workerChannels.js.map +0 -1
- /package/dist/{studioDependencies.js → actions/init/studioDependencies.js} +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"examples": [
|
|
159
159
|
{
|
|
160
160
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
161
|
-
"description": "Build the studio"
|
|
161
|
+
"description": "Build and deploy the studio to Sanity hosting"
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
"command": "<%= config.bin %> <%= command.id %> --no-minify --source-maps",
|
|
@@ -167,6 +167,10 @@
|
|
|
167
167
|
{
|
|
168
168
|
"command": "<%= config.bin %> <%= command.id %> --schema-required",
|
|
169
169
|
"description": "Fail fast on schema store fails - for when other services rely on the stored schema"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"command": "<%= config.bin %> <%= command.id %> --external",
|
|
173
|
+
"description": "Register an externally hosted studio (studioHost contains full URL)"
|
|
170
174
|
}
|
|
171
175
|
],
|
|
172
176
|
"flags": {
|
|
@@ -183,6 +187,17 @@
|
|
|
183
187
|
"allowNo": true,
|
|
184
188
|
"type": "boolean"
|
|
185
189
|
},
|
|
190
|
+
"external": {
|
|
191
|
+
"description": "Register an externally hosted studio",
|
|
192
|
+
"exclusive": [
|
|
193
|
+
"source-maps",
|
|
194
|
+
"minify",
|
|
195
|
+
"build"
|
|
196
|
+
],
|
|
197
|
+
"name": "external",
|
|
198
|
+
"allowNo": false,
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
186
201
|
"minify": {
|
|
187
202
|
"description": "Skip minifying built JavaScript (speeds up build, increases size of bundle)",
|
|
188
203
|
"name": "minify",
|
|
@@ -246,9 +261,8 @@
|
|
|
246
261
|
"type": "boolean"
|
|
247
262
|
},
|
|
248
263
|
"host": {
|
|
249
|
-
"description": "The local network interface at which to listen.",
|
|
264
|
+
"description": "[default: localhost] The local network interface at which to listen.",
|
|
250
265
|
"name": "host",
|
|
251
|
-
"default": "localhost",
|
|
252
266
|
"hasDynamicHelp": false,
|
|
253
267
|
"multiple": false,
|
|
254
268
|
"type": "option"
|
|
@@ -260,9 +274,8 @@
|
|
|
260
274
|
"type": "boolean"
|
|
261
275
|
},
|
|
262
276
|
"port": {
|
|
263
|
-
"description": "TCP port to start server on.",
|
|
277
|
+
"description": "[default: 3333] TCP port to start server on.",
|
|
264
278
|
"name": "port",
|
|
265
|
-
"default": "3333",
|
|
266
279
|
"hasDynamicHelp": false,
|
|
267
280
|
"multiple": false,
|
|
268
281
|
"type": "option"
|
|
@@ -282,6 +295,50 @@
|
|
|
282
295
|
"dev.js"
|
|
283
296
|
]
|
|
284
297
|
},
|
|
298
|
+
"doctor": {
|
|
299
|
+
"aliases": [],
|
|
300
|
+
"args": {
|
|
301
|
+
"checks": {
|
|
302
|
+
"description": "Checks to enable (defaults to all). Valid: cli",
|
|
303
|
+
"name": "checks",
|
|
304
|
+
"required": false
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"description": "Run diagnostics on your Sanity project",
|
|
308
|
+
"examples": [
|
|
309
|
+
"<%= config.bin %> <%= command.id %>",
|
|
310
|
+
{
|
|
311
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
312
|
+
"description": "Output results as JSON"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"command": "<%= config.bin %> <%= command.id %> cli",
|
|
316
|
+
"description": "Only run CLI-related diagnostics"
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"flags": {
|
|
320
|
+
"json": {
|
|
321
|
+
"char": "j",
|
|
322
|
+
"description": "Output results as JSON",
|
|
323
|
+
"name": "json",
|
|
324
|
+
"allowNo": false,
|
|
325
|
+
"type": "boolean"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"hasDynamicHelp": false,
|
|
329
|
+
"hiddenAliases": [],
|
|
330
|
+
"id": "doctor",
|
|
331
|
+
"pluginAlias": "@sanity/cli",
|
|
332
|
+
"pluginName": "@sanity/cli",
|
|
333
|
+
"pluginType": "core",
|
|
334
|
+
"strict": false,
|
|
335
|
+
"isESM": true,
|
|
336
|
+
"relativePath": [
|
|
337
|
+
"dist",
|
|
338
|
+
"commands",
|
|
339
|
+
"doctor.js"
|
|
340
|
+
]
|
|
341
|
+
},
|
|
285
342
|
"exec": {
|
|
286
343
|
"aliases": [],
|
|
287
344
|
"args": {
|
|
@@ -728,6 +785,9 @@
|
|
|
728
785
|
},
|
|
729
786
|
"provider": {
|
|
730
787
|
"description": "Log in using the given provider",
|
|
788
|
+
"exclusive": [
|
|
789
|
+
"sso"
|
|
790
|
+
],
|
|
731
791
|
"name": "provider",
|
|
732
792
|
"hasDynamicHelp": false,
|
|
733
793
|
"helpValue": "<providerId>",
|
|
@@ -736,6 +796,9 @@
|
|
|
736
796
|
},
|
|
737
797
|
"sso": {
|
|
738
798
|
"description": "Log in using Single Sign-On, using the given organization slug",
|
|
799
|
+
"exclusive": [
|
|
800
|
+
"provider"
|
|
801
|
+
],
|
|
739
802
|
"name": "sso",
|
|
740
803
|
"hasDynamicHelp": false,
|
|
741
804
|
"helpValue": "<slug>",
|
|
@@ -796,9 +859,7 @@
|
|
|
796
859
|
]
|
|
797
860
|
},
|
|
798
861
|
"preview": {
|
|
799
|
-
"aliases": [
|
|
800
|
-
"start"
|
|
801
|
-
],
|
|
862
|
+
"aliases": [],
|
|
802
863
|
"args": {
|
|
803
864
|
"outputDir": {
|
|
804
865
|
"description": "Output directory",
|
|
@@ -813,24 +874,24 @@
|
|
|
813
874
|
],
|
|
814
875
|
"flags": {
|
|
815
876
|
"host": {
|
|
816
|
-
"description": "The local network interface at which to listen.",
|
|
877
|
+
"description": "[default: localhost] The local network interface at which to listen.",
|
|
817
878
|
"name": "host",
|
|
818
|
-
"default": "localhost",
|
|
819
879
|
"hasDynamicHelp": false,
|
|
820
880
|
"multiple": false,
|
|
821
881
|
"type": "option"
|
|
822
882
|
},
|
|
823
883
|
"port": {
|
|
824
|
-
"description": "TCP port to start server on.",
|
|
884
|
+
"description": "[default: 3333] TCP port to start server on.",
|
|
825
885
|
"name": "port",
|
|
826
|
-
"default": "3333",
|
|
827
886
|
"hasDynamicHelp": false,
|
|
828
887
|
"multiple": false,
|
|
829
888
|
"type": "option"
|
|
830
889
|
}
|
|
831
890
|
},
|
|
832
891
|
"hasDynamicHelp": false,
|
|
833
|
-
"hiddenAliases": [
|
|
892
|
+
"hiddenAliases": [
|
|
893
|
+
"start"
|
|
894
|
+
],
|
|
834
895
|
"id": "preview",
|
|
835
896
|
"pluginAlias": "@sanity/cli",
|
|
836
897
|
"pluginName": "@sanity/cli",
|
|
@@ -912,7 +973,18 @@
|
|
|
912
973
|
"description": "Disable backup for the production dataset"
|
|
913
974
|
}
|
|
914
975
|
],
|
|
915
|
-
"flags": {
|
|
976
|
+
"flags": {
|
|
977
|
+
"project-id": {
|
|
978
|
+
"char": "p",
|
|
979
|
+
"description": "Project ID to disable backups for (overrides CLI configuration)",
|
|
980
|
+
"helpGroup": "OVERRIDE",
|
|
981
|
+
"name": "project-id",
|
|
982
|
+
"hasDynamicHelp": false,
|
|
983
|
+
"helpValue": "<id>",
|
|
984
|
+
"multiple": false,
|
|
985
|
+
"type": "option"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
916
988
|
"hasDynamicHelp": false,
|
|
917
989
|
"hiddenAliases": [],
|
|
918
990
|
"id": "backup:disable",
|
|
@@ -957,6 +1029,16 @@
|
|
|
957
1029
|
}
|
|
958
1030
|
],
|
|
959
1031
|
"flags": {
|
|
1032
|
+
"project-id": {
|
|
1033
|
+
"char": "p",
|
|
1034
|
+
"description": "Project ID to download backup from (overrides CLI configuration)",
|
|
1035
|
+
"helpGroup": "OVERRIDE",
|
|
1036
|
+
"name": "project-id",
|
|
1037
|
+
"hasDynamicHelp": false,
|
|
1038
|
+
"helpValue": "<id>",
|
|
1039
|
+
"multiple": false,
|
|
1040
|
+
"type": "option"
|
|
1041
|
+
},
|
|
960
1042
|
"backup-id": {
|
|
961
1043
|
"description": "The backup ID to download",
|
|
962
1044
|
"name": "backup-id",
|
|
@@ -1021,7 +1103,18 @@
|
|
|
1021
1103
|
"description": "Enable backup for the production dataset"
|
|
1022
1104
|
}
|
|
1023
1105
|
],
|
|
1024
|
-
"flags": {
|
|
1106
|
+
"flags": {
|
|
1107
|
+
"project-id": {
|
|
1108
|
+
"char": "p",
|
|
1109
|
+
"description": "Project ID to enable backups for (overrides CLI configuration)",
|
|
1110
|
+
"helpGroup": "OVERRIDE",
|
|
1111
|
+
"name": "project-id",
|
|
1112
|
+
"hasDynamicHelp": false,
|
|
1113
|
+
"helpValue": "<id>",
|
|
1114
|
+
"multiple": false,
|
|
1115
|
+
"type": "option"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1025
1118
|
"hasDynamicHelp": false,
|
|
1026
1119
|
"hiddenAliases": [],
|
|
1027
1120
|
"id": "backup:enable",
|
|
@@ -1066,6 +1159,16 @@
|
|
|
1066
1159
|
}
|
|
1067
1160
|
],
|
|
1068
1161
|
"flags": {
|
|
1162
|
+
"project-id": {
|
|
1163
|
+
"char": "p",
|
|
1164
|
+
"description": "Project ID to list backups for (overrides CLI configuration)",
|
|
1165
|
+
"helpGroup": "OVERRIDE",
|
|
1166
|
+
"name": "project-id",
|
|
1167
|
+
"hasDynamicHelp": false,
|
|
1168
|
+
"helpValue": "<id>",
|
|
1169
|
+
"multiple": false,
|
|
1170
|
+
"type": "option"
|
|
1171
|
+
},
|
|
1069
1172
|
"after": {
|
|
1070
1173
|
"description": "Only return backups after this date (inclusive, YYYY-MM-DD format)",
|
|
1071
1174
|
"name": "after",
|
|
@@ -1127,9 +1230,23 @@
|
|
|
1127
1230
|
{
|
|
1128
1231
|
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
1129
1232
|
"description": "Add a production origin with credentials allowed"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
1236
|
+
"description": "Add a CORS origin for a specific project"
|
|
1130
1237
|
}
|
|
1131
1238
|
],
|
|
1132
1239
|
"flags": {
|
|
1240
|
+
"project-id": {
|
|
1241
|
+
"char": "p",
|
|
1242
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
1243
|
+
"helpGroup": "OVERRIDE",
|
|
1244
|
+
"name": "project-id",
|
|
1245
|
+
"hasDynamicHelp": false,
|
|
1246
|
+
"helpValue": "<id>",
|
|
1247
|
+
"multiple": false,
|
|
1248
|
+
"type": "option"
|
|
1249
|
+
},
|
|
1133
1250
|
"credentials": {
|
|
1134
1251
|
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
1135
1252
|
"name": "credentials",
|
|
@@ -1171,9 +1288,24 @@
|
|
|
1171
1288
|
{
|
|
1172
1289
|
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
1173
1290
|
"description": "Delete a specific CORS origin"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1294
|
+
"description": "Delete a CORS origin from a specific project"
|
|
1174
1295
|
}
|
|
1175
1296
|
],
|
|
1176
|
-
"flags": {
|
|
1297
|
+
"flags": {
|
|
1298
|
+
"project-id": {
|
|
1299
|
+
"char": "p",
|
|
1300
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
1301
|
+
"helpGroup": "OVERRIDE",
|
|
1302
|
+
"name": "project-id",
|
|
1303
|
+
"hasDynamicHelp": false,
|
|
1304
|
+
"helpValue": "<id>",
|
|
1305
|
+
"multiple": false,
|
|
1306
|
+
"type": "option"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1177
1309
|
"hasDynamicHelp": false,
|
|
1178
1310
|
"hiddenAliases": [],
|
|
1179
1311
|
"id": "cors:delete",
|
|
@@ -1197,9 +1329,24 @@
|
|
|
1197
1329
|
{
|
|
1198
1330
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1199
1331
|
"description": "List CORS origins for the current project"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1335
|
+
"description": "List CORS origins for a specific project"
|
|
1200
1336
|
}
|
|
1201
1337
|
],
|
|
1202
|
-
"flags": {
|
|
1338
|
+
"flags": {
|
|
1339
|
+
"project-id": {
|
|
1340
|
+
"char": "p",
|
|
1341
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
1342
|
+
"helpGroup": "OVERRIDE",
|
|
1343
|
+
"name": "project-id",
|
|
1344
|
+
"hasDynamicHelp": false,
|
|
1345
|
+
"helpValue": "<id>",
|
|
1346
|
+
"multiple": false,
|
|
1347
|
+
"type": "option"
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1203
1350
|
"hasDynamicHelp": false,
|
|
1204
1351
|
"hiddenAliases": [],
|
|
1205
1352
|
"id": "cors:list",
|
|
@@ -1265,6 +1412,16 @@
|
|
|
1265
1412
|
}
|
|
1266
1413
|
],
|
|
1267
1414
|
"flags": {
|
|
1415
|
+
"project-id": {
|
|
1416
|
+
"char": "p",
|
|
1417
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
1418
|
+
"helpGroup": "OVERRIDE",
|
|
1419
|
+
"name": "project-id",
|
|
1420
|
+
"hasDynamicHelp": false,
|
|
1421
|
+
"helpValue": "<id>",
|
|
1422
|
+
"multiple": false,
|
|
1423
|
+
"type": "option"
|
|
1424
|
+
},
|
|
1268
1425
|
"attach": {
|
|
1269
1426
|
"description": "Attach to the running copy process to show progress",
|
|
1270
1427
|
"exclusive": [
|
|
@@ -1375,6 +1532,32 @@
|
|
|
1375
1532
|
}
|
|
1376
1533
|
],
|
|
1377
1534
|
"flags": {
|
|
1535
|
+
"project-id": {
|
|
1536
|
+
"char": "p",
|
|
1537
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
1538
|
+
"helpGroup": "OVERRIDE",
|
|
1539
|
+
"name": "project-id",
|
|
1540
|
+
"hasDynamicHelp": false,
|
|
1541
|
+
"helpValue": "<id>",
|
|
1542
|
+
"multiple": false,
|
|
1543
|
+
"type": "option"
|
|
1544
|
+
},
|
|
1545
|
+
"embeddings": {
|
|
1546
|
+
"description": "Enable embeddings for this dataset",
|
|
1547
|
+
"name": "embeddings",
|
|
1548
|
+
"allowNo": false,
|
|
1549
|
+
"type": "boolean"
|
|
1550
|
+
},
|
|
1551
|
+
"embeddings-projection": {
|
|
1552
|
+
"dependsOn": [
|
|
1553
|
+
"embeddings"
|
|
1554
|
+
],
|
|
1555
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
1556
|
+
"name": "embeddings-projection",
|
|
1557
|
+
"hasDynamicHelp": false,
|
|
1558
|
+
"multiple": false,
|
|
1559
|
+
"type": "option"
|
|
1560
|
+
},
|
|
1378
1561
|
"visibility": {
|
|
1379
1562
|
"description": "Set visibility for this dataset (custom/private/public)",
|
|
1380
1563
|
"name": "visibility",
|
|
@@ -1425,6 +1608,16 @@
|
|
|
1425
1608
|
}
|
|
1426
1609
|
],
|
|
1427
1610
|
"flags": {
|
|
1611
|
+
"project-id": {
|
|
1612
|
+
"char": "p",
|
|
1613
|
+
"description": "Project ID to delete dataset from (overrides CLI configuration)",
|
|
1614
|
+
"helpGroup": "OVERRIDE",
|
|
1615
|
+
"name": "project-id",
|
|
1616
|
+
"hasDynamicHelp": false,
|
|
1617
|
+
"helpValue": "<id>",
|
|
1618
|
+
"multiple": false,
|
|
1619
|
+
"type": "option"
|
|
1620
|
+
},
|
|
1428
1621
|
"force": {
|
|
1429
1622
|
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
1430
1623
|
"name": "force",
|
|
@@ -1480,6 +1673,16 @@
|
|
|
1480
1673
|
}
|
|
1481
1674
|
],
|
|
1482
1675
|
"flags": {
|
|
1676
|
+
"project-id": {
|
|
1677
|
+
"char": "p",
|
|
1678
|
+
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
1679
|
+
"helpGroup": "OVERRIDE",
|
|
1680
|
+
"name": "project-id",
|
|
1681
|
+
"hasDynamicHelp": false,
|
|
1682
|
+
"helpValue": "<id>",
|
|
1683
|
+
"multiple": false,
|
|
1684
|
+
"type": "option"
|
|
1685
|
+
},
|
|
1483
1686
|
"asset-concurrency": {
|
|
1484
1687
|
"description": "Concurrent number of asset downloads",
|
|
1485
1688
|
"name": "asset-concurrency",
|
|
@@ -1560,25 +1763,56 @@
|
|
|
1560
1763
|
"description": "Source file (use \"-\" for stdin)",
|
|
1561
1764
|
"name": "source",
|
|
1562
1765
|
"required": true
|
|
1766
|
+
},
|
|
1767
|
+
"targetDataset": {
|
|
1768
|
+
"description": "Target dataset (prefer --dataset flag instead)",
|
|
1769
|
+
"name": "targetDataset",
|
|
1770
|
+
"required": false
|
|
1563
1771
|
}
|
|
1564
1772
|
},
|
|
1565
1773
|
"description": "Import documents to a Sanity dataset",
|
|
1566
1774
|
"examples": [
|
|
1567
1775
|
{
|
|
1568
|
-
"
|
|
1569
|
-
"
|
|
1776
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
|
|
1777
|
+
"description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -t someToken -",
|
|
1781
|
+
"description": "Import into dataset \"test\" from stdin"
|
|
1570
1782
|
},
|
|
1571
1783
|
{
|
|
1572
|
-
"
|
|
1573
|
-
"
|
|
1784
|
+
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging -t someSecretToken my-dataset.ndjson",
|
|
1785
|
+
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
1574
1786
|
}
|
|
1575
1787
|
],
|
|
1576
1788
|
"flags": {
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1579
|
-
"
|
|
1580
|
-
"
|
|
1581
|
-
"
|
|
1789
|
+
"allow-assets-in-different-dataset": {
|
|
1790
|
+
"description": "Allow asset documents to reference different project/dataset",
|
|
1791
|
+
"name": "allow-assets-in-different-dataset",
|
|
1792
|
+
"allowNo": false,
|
|
1793
|
+
"type": "boolean"
|
|
1794
|
+
},
|
|
1795
|
+
"allow-failing-assets": {
|
|
1796
|
+
"description": "Skip assets that cannot be fetched/uploaded",
|
|
1797
|
+
"name": "allow-failing-assets",
|
|
1798
|
+
"allowNo": false,
|
|
1799
|
+
"type": "boolean"
|
|
1800
|
+
},
|
|
1801
|
+
"allow-replacement-characters": {
|
|
1802
|
+
"description": "Allow unicode replacement characters in imported documents",
|
|
1803
|
+
"name": "allow-replacement-characters",
|
|
1804
|
+
"allowNo": false,
|
|
1805
|
+
"type": "boolean"
|
|
1806
|
+
},
|
|
1807
|
+
"allow-system-documents": {
|
|
1808
|
+
"description": "Imports system documents",
|
|
1809
|
+
"name": "allow-system-documents",
|
|
1810
|
+
"allowNo": false,
|
|
1811
|
+
"type": "boolean"
|
|
1812
|
+
},
|
|
1813
|
+
"asset-concurrency": {
|
|
1814
|
+
"description": "Number of parallel asset imports",
|
|
1815
|
+
"name": "asset-concurrency",
|
|
1582
1816
|
"hasDynamicHelp": false,
|
|
1583
1817
|
"multiple": false,
|
|
1584
1818
|
"type": "option"
|
|
@@ -1587,30 +1821,11 @@
|
|
|
1587
1821
|
"char": "d",
|
|
1588
1822
|
"description": "Dataset to import to",
|
|
1589
1823
|
"name": "dataset",
|
|
1590
|
-
"required": true,
|
|
1591
|
-
"hasDynamicHelp": false,
|
|
1592
|
-
"multiple": false,
|
|
1593
|
-
"type": "option"
|
|
1594
|
-
},
|
|
1595
|
-
"token": {
|
|
1596
|
-
"char": "t",
|
|
1597
|
-
"description": "Token to authenticate with",
|
|
1598
|
-
"env": "SANITY_IMPORT_TOKEN",
|
|
1599
|
-
"name": "token",
|
|
1600
|
-
"required": false,
|
|
1601
1824
|
"hasDynamicHelp": false,
|
|
1825
|
+
"helpValue": "<name>",
|
|
1602
1826
|
"multiple": false,
|
|
1603
1827
|
"type": "option"
|
|
1604
1828
|
},
|
|
1605
|
-
"replace": {
|
|
1606
|
-
"description": "Replace documents with the same IDs",
|
|
1607
|
-
"exclusive": [
|
|
1608
|
-
"missing"
|
|
1609
|
-
],
|
|
1610
|
-
"name": "replace",
|
|
1611
|
-
"allowNo": false,
|
|
1612
|
-
"type": "boolean"
|
|
1613
|
-
},
|
|
1614
1829
|
"missing": {
|
|
1615
1830
|
"description": "Skip documents that already exist",
|
|
1616
1831
|
"exclusive": [
|
|
@@ -1620,15 +1835,33 @@
|
|
|
1620
1835
|
"allowNo": false,
|
|
1621
1836
|
"type": "boolean"
|
|
1622
1837
|
},
|
|
1623
|
-
"
|
|
1624
|
-
"
|
|
1625
|
-
"
|
|
1626
|
-
"
|
|
1627
|
-
"
|
|
1838
|
+
"project-id": {
|
|
1839
|
+
"char": "p",
|
|
1840
|
+
"description": "Project ID to import to (overrides CLI configuration)",
|
|
1841
|
+
"helpGroup": "OVERRIDE",
|
|
1842
|
+
"name": "project-id",
|
|
1843
|
+
"hasDynamicHelp": false,
|
|
1844
|
+
"helpValue": "<id>",
|
|
1845
|
+
"multiple": false,
|
|
1846
|
+
"type": "option"
|
|
1628
1847
|
},
|
|
1629
|
-
"
|
|
1630
|
-
"
|
|
1631
|
-
|
|
1848
|
+
"project": {
|
|
1849
|
+
"deprecated": {
|
|
1850
|
+
"to": "project-id"
|
|
1851
|
+
},
|
|
1852
|
+
"description": "Project ID to import to",
|
|
1853
|
+
"hidden": true,
|
|
1854
|
+
"name": "project",
|
|
1855
|
+
"hasDynamicHelp": false,
|
|
1856
|
+
"multiple": false,
|
|
1857
|
+
"type": "option"
|
|
1858
|
+
},
|
|
1859
|
+
"replace": {
|
|
1860
|
+
"description": "Replace documents with the same IDs",
|
|
1861
|
+
"exclusive": [
|
|
1862
|
+
"missing"
|
|
1863
|
+
],
|
|
1864
|
+
"name": "replace",
|
|
1632
1865
|
"allowNo": false,
|
|
1633
1866
|
"type": "boolean"
|
|
1634
1867
|
},
|
|
@@ -1644,21 +1877,12 @@
|
|
|
1644
1877
|
"allowNo": false,
|
|
1645
1878
|
"type": "boolean"
|
|
1646
1879
|
},
|
|
1647
|
-
"
|
|
1648
|
-
"
|
|
1649
|
-
"
|
|
1650
|
-
"
|
|
1651
|
-
"
|
|
1652
|
-
|
|
1653
|
-
"allow-system-documents": {
|
|
1654
|
-
"description": "Imports system documents",
|
|
1655
|
-
"name": "allow-system-documents",
|
|
1656
|
-
"allowNo": false,
|
|
1657
|
-
"type": "boolean"
|
|
1658
|
-
},
|
|
1659
|
-
"asset-concurrency": {
|
|
1660
|
-
"description": "Number of parallel asset imports",
|
|
1661
|
-
"name": "asset-concurrency",
|
|
1880
|
+
"token": {
|
|
1881
|
+
"char": "t",
|
|
1882
|
+
"description": "Token to authenticate with",
|
|
1883
|
+
"env": "SANITY_IMPORT_TOKEN",
|
|
1884
|
+
"name": "token",
|
|
1885
|
+
"required": false,
|
|
1662
1886
|
"hasDynamicHelp": false,
|
|
1663
1887
|
"multiple": false,
|
|
1664
1888
|
"type": "option"
|
|
@@ -1687,11 +1911,26 @@
|
|
|
1687
1911
|
{
|
|
1688
1912
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1689
1913
|
"description": "List datasets of your project"
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1917
|
+
"description": "List datasets for a specific project"
|
|
1690
1918
|
}
|
|
1691
1919
|
],
|
|
1692
|
-
"flags": {
|
|
1693
|
-
|
|
1694
|
-
|
|
1920
|
+
"flags": {
|
|
1921
|
+
"project-id": {
|
|
1922
|
+
"char": "p",
|
|
1923
|
+
"description": "Project ID to list datasets for (overrides CLI configuration)",
|
|
1924
|
+
"helpGroup": "OVERRIDE",
|
|
1925
|
+
"name": "project-id",
|
|
1926
|
+
"hasDynamicHelp": false,
|
|
1927
|
+
"helpValue": "<id>",
|
|
1928
|
+
"multiple": false,
|
|
1929
|
+
"type": "option"
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
"hasDynamicHelp": false,
|
|
1933
|
+
"hiddenAliases": [],
|
|
1695
1934
|
"id": "dataset:list",
|
|
1696
1935
|
"pluginAlias": "@sanity/cli",
|
|
1697
1936
|
"pluginName": "@sanity/cli",
|
|
@@ -1855,14 +2094,30 @@
|
|
|
1855
2094
|
{
|
|
1856
2095
|
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
1857
2096
|
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
|
|
2100
|
+
"description": "Create documents in a specific project"
|
|
1858
2101
|
}
|
|
1859
2102
|
],
|
|
1860
2103
|
"flags": {
|
|
2104
|
+
"project-id": {
|
|
2105
|
+
"char": "p",
|
|
2106
|
+
"description": "Project ID to create document(s) in (overrides CLI configuration)",
|
|
2107
|
+
"helpGroup": "OVERRIDE",
|
|
2108
|
+
"name": "project-id",
|
|
2109
|
+
"hasDynamicHelp": false,
|
|
2110
|
+
"helpValue": "<id>",
|
|
2111
|
+
"multiple": false,
|
|
2112
|
+
"type": "option"
|
|
2113
|
+
},
|
|
1861
2114
|
"dataset": {
|
|
1862
2115
|
"char": "d",
|
|
1863
|
-
"description": "Dataset to create document(s) in (overrides
|
|
2116
|
+
"description": "Dataset to create document(s) in (overrides CLI configuration)",
|
|
2117
|
+
"helpGroup": "OVERRIDE",
|
|
1864
2118
|
"name": "dataset",
|
|
1865
2119
|
"hasDynamicHelp": false,
|
|
2120
|
+
"helpValue": "<name>",
|
|
1866
2121
|
"multiple": false,
|
|
1867
2122
|
"type": "option"
|
|
1868
2123
|
},
|
|
@@ -1944,13 +2199,30 @@
|
|
|
1944
2199
|
{
|
|
1945
2200
|
"command": "<%= config.bin %> <%= command.id %> doc1 doc2",
|
|
1946
2201
|
"description": "Delete the document with ID \"doc1\" and \"doc2\""
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project-id abc123",
|
|
2205
|
+
"description": "Delete a document from a specific project"
|
|
1947
2206
|
}
|
|
1948
2207
|
],
|
|
1949
2208
|
"flags": {
|
|
2209
|
+
"project-id": {
|
|
2210
|
+
"char": "p",
|
|
2211
|
+
"description": "Project ID to delete from (overrides CLI configuration)",
|
|
2212
|
+
"helpGroup": "OVERRIDE",
|
|
2213
|
+
"name": "project-id",
|
|
2214
|
+
"hasDynamicHelp": false,
|
|
2215
|
+
"helpValue": "<id>",
|
|
2216
|
+
"multiple": false,
|
|
2217
|
+
"type": "option"
|
|
2218
|
+
},
|
|
1950
2219
|
"dataset": {
|
|
1951
|
-
"
|
|
2220
|
+
"char": "d",
|
|
2221
|
+
"description": "Dataset to delete from (overrides CLI configuration)",
|
|
2222
|
+
"helpGroup": "OVERRIDE",
|
|
1952
2223
|
"name": "dataset",
|
|
1953
2224
|
"hasDynamicHelp": false,
|
|
2225
|
+
"helpValue": "<name>",
|
|
1954
2226
|
"multiple": false,
|
|
1955
2227
|
"type": "option"
|
|
1956
2228
|
}
|
|
@@ -1992,14 +2264,30 @@
|
|
|
1992
2264
|
{
|
|
1993
2265
|
"command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
|
|
1994
2266
|
"description": "Get document from a specific dataset"
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project-id abc123",
|
|
2270
|
+
"description": "Get a document from a specific project"
|
|
1995
2271
|
}
|
|
1996
2272
|
],
|
|
1997
2273
|
"flags": {
|
|
2274
|
+
"project-id": {
|
|
2275
|
+
"char": "p",
|
|
2276
|
+
"description": "Project ID to get document from (overrides CLI configuration)",
|
|
2277
|
+
"helpGroup": "OVERRIDE",
|
|
2278
|
+
"name": "project-id",
|
|
2279
|
+
"hasDynamicHelp": false,
|
|
2280
|
+
"helpValue": "<id>",
|
|
2281
|
+
"multiple": false,
|
|
2282
|
+
"type": "option"
|
|
2283
|
+
},
|
|
1998
2284
|
"dataset": {
|
|
1999
2285
|
"char": "d",
|
|
2000
|
-
"description": "Dataset to get document from (overrides
|
|
2286
|
+
"description": "Dataset to get document from (overrides CLI configuration)",
|
|
2287
|
+
"helpGroup": "OVERRIDE",
|
|
2001
2288
|
"name": "dataset",
|
|
2002
2289
|
"hasDynamicHelp": false,
|
|
2290
|
+
"helpValue": "<name>",
|
|
2003
2291
|
"multiple": false,
|
|
2004
2292
|
"type": "option"
|
|
2005
2293
|
},
|
|
@@ -2047,9 +2335,33 @@
|
|
|
2047
2335
|
{
|
|
2048
2336
|
"command": "<%= config.bin %> <%= command.id %> '*[_id == \"header\"] { \"headerText\": pt::text(body) }' --api-version v2021-06-07",
|
|
2049
2337
|
"description": "Use API version v2021-06-07 and do a query"
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"post\"]' --project-id abc123 --dataset production",
|
|
2341
|
+
"description": "Query documents in a specific project and dataset"
|
|
2050
2342
|
}
|
|
2051
2343
|
],
|
|
2052
2344
|
"flags": {
|
|
2345
|
+
"project-id": {
|
|
2346
|
+
"char": "p",
|
|
2347
|
+
"description": "Project ID to query (overrides CLI configuration)",
|
|
2348
|
+
"helpGroup": "OVERRIDE",
|
|
2349
|
+
"name": "project-id",
|
|
2350
|
+
"hasDynamicHelp": false,
|
|
2351
|
+
"helpValue": "<id>",
|
|
2352
|
+
"multiple": false,
|
|
2353
|
+
"type": "option"
|
|
2354
|
+
},
|
|
2355
|
+
"dataset": {
|
|
2356
|
+
"char": "d",
|
|
2357
|
+
"description": "Dataset to query (overrides CLI configuration)",
|
|
2358
|
+
"helpGroup": "OVERRIDE",
|
|
2359
|
+
"name": "dataset",
|
|
2360
|
+
"hasDynamicHelp": false,
|
|
2361
|
+
"helpValue": "<name>",
|
|
2362
|
+
"multiple": false,
|
|
2363
|
+
"type": "option"
|
|
2364
|
+
},
|
|
2053
2365
|
"anonymous": {
|
|
2054
2366
|
"description": "Send the query without any authorization token",
|
|
2055
2367
|
"name": "anonymous",
|
|
@@ -2064,14 +2376,6 @@
|
|
|
2064
2376
|
"multiple": false,
|
|
2065
2377
|
"type": "option"
|
|
2066
2378
|
},
|
|
2067
|
-
"dataset": {
|
|
2068
|
-
"char": "d",
|
|
2069
|
-
"description": "Dataset to query (overrides config)",
|
|
2070
|
-
"name": "dataset",
|
|
2071
|
-
"hasDynamicHelp": false,
|
|
2072
|
-
"multiple": false,
|
|
2073
|
-
"type": "option"
|
|
2074
|
-
},
|
|
2075
2379
|
"pretty": {
|
|
2076
2380
|
"description": "Colorize JSON output",
|
|
2077
2381
|
"name": "pretty",
|
|
@@ -2079,8 +2383,11 @@
|
|
|
2079
2383
|
"type": "boolean"
|
|
2080
2384
|
},
|
|
2081
2385
|
"project": {
|
|
2082
|
-
"
|
|
2083
|
-
|
|
2386
|
+
"deprecated": {
|
|
2387
|
+
"to": "project-id"
|
|
2388
|
+
},
|
|
2389
|
+
"description": "Project ID to query",
|
|
2390
|
+
"hidden": true,
|
|
2084
2391
|
"name": "project",
|
|
2085
2392
|
"hasDynamicHelp": false,
|
|
2086
2393
|
"multiple": false,
|
|
@@ -2122,14 +2429,28 @@
|
|
|
2122
2429
|
{
|
|
2123
2430
|
"command": "<%= config.bin %> <%= command.id %> --level info",
|
|
2124
2431
|
"description": "Report out info level validation markers too"
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
|
|
2435
|
+
"description": "Validate documents in a specific project and dataset"
|
|
2125
2436
|
}
|
|
2126
2437
|
],
|
|
2127
2438
|
"flags": {
|
|
2439
|
+
"project-id": {
|
|
2440
|
+
"char": "p",
|
|
2441
|
+
"description": "Override the project ID used. By default, this is derived from the given workspace",
|
|
2442
|
+
"name": "project-id",
|
|
2443
|
+
"hasDynamicHelp": false,
|
|
2444
|
+
"helpValue": "<id>",
|
|
2445
|
+
"multiple": false,
|
|
2446
|
+
"type": "option"
|
|
2447
|
+
},
|
|
2128
2448
|
"dataset": {
|
|
2129
2449
|
"char": "d",
|
|
2130
2450
|
"description": "Override the dataset used. By default, this is derived from the given workspace",
|
|
2131
2451
|
"name": "dataset",
|
|
2132
2452
|
"hasDynamicHelp": false,
|
|
2453
|
+
"helpValue": "<name>",
|
|
2133
2454
|
"multiple": false,
|
|
2134
2455
|
"type": "option"
|
|
2135
2456
|
},
|
|
@@ -2148,7 +2469,7 @@
|
|
|
2148
2469
|
"type": "option"
|
|
2149
2470
|
},
|
|
2150
2471
|
"level": {
|
|
2151
|
-
"description": "The minimum level reported
|
|
2472
|
+
"description": "The minimum level reported. Defaults to warning",
|
|
2152
2473
|
"name": "level",
|
|
2153
2474
|
"default": "warning",
|
|
2154
2475
|
"hasDynamicHelp": false,
|
|
@@ -2169,7 +2490,7 @@
|
|
|
2169
2490
|
"type": "option"
|
|
2170
2491
|
},
|
|
2171
2492
|
"max-fetch-concurrency": {
|
|
2172
|
-
"description": "Specify how many `client.fetch` requests are
|
|
2493
|
+
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
2173
2494
|
"name": "max-fetch-concurrency",
|
|
2174
2495
|
"default": 25,
|
|
2175
2496
|
"hasDynamicHelp": false,
|
|
@@ -2237,9 +2558,11 @@
|
|
|
2237
2558
|
"type": "option"
|
|
2238
2559
|
},
|
|
2239
2560
|
"dataset": {
|
|
2561
|
+
"char": "d",
|
|
2240
2562
|
"description": "Deploy API for the given dataset",
|
|
2241
2563
|
"name": "dataset",
|
|
2242
2564
|
"hasDynamicHelp": false,
|
|
2565
|
+
"helpValue": "<name>",
|
|
2243
2566
|
"multiple": false,
|
|
2244
2567
|
"type": "option"
|
|
2245
2568
|
},
|
|
@@ -2316,9 +2639,24 @@
|
|
|
2316
2639
|
{
|
|
2317
2640
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2318
2641
|
"description": "List GraphQL endpoints for the current project"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2645
|
+
"description": "List GraphQL endpoints for a specific project"
|
|
2319
2646
|
}
|
|
2320
2647
|
],
|
|
2321
|
-
"flags": {
|
|
2648
|
+
"flags": {
|
|
2649
|
+
"project-id": {
|
|
2650
|
+
"char": "p",
|
|
2651
|
+
"description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
|
|
2652
|
+
"helpGroup": "OVERRIDE",
|
|
2653
|
+
"name": "project-id",
|
|
2654
|
+
"hasDynamicHelp": false,
|
|
2655
|
+
"helpValue": "<id>",
|
|
2656
|
+
"multiple": false,
|
|
2657
|
+
"type": "option"
|
|
2658
|
+
}
|
|
2659
|
+
},
|
|
2322
2660
|
"hasDynamicHelp": false,
|
|
2323
2661
|
"hiddenAliases": [],
|
|
2324
2662
|
"id": "graphql:list",
|
|
@@ -2358,11 +2696,29 @@
|
|
|
2358
2696
|
{
|
|
2359
2697
|
"command": "<%= config.bin %> <%= command.id %> --force",
|
|
2360
2698
|
"description": "Undeploy GraphQL API without confirmation prompt"
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
|
|
2702
|
+
"description": "Undeploy GraphQL API for a specific project and dataset"
|
|
2361
2703
|
}
|
|
2362
2704
|
],
|
|
2363
2705
|
"flags": {
|
|
2706
|
+
"project-id": {
|
|
2707
|
+
"char": "p",
|
|
2708
|
+
"description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2709
|
+
"helpGroup": "OVERRIDE",
|
|
2710
|
+
"name": "project-id",
|
|
2711
|
+
"hasDynamicHelp": false,
|
|
2712
|
+
"helpValue": "<id>",
|
|
2713
|
+
"multiple": false,
|
|
2714
|
+
"type": "option"
|
|
2715
|
+
},
|
|
2364
2716
|
"api": {
|
|
2365
|
-
"description": "Undeploy API with this ID
|
|
2717
|
+
"description": "Undeploy API with this ID",
|
|
2718
|
+
"exclusive": [
|
|
2719
|
+
"project-id",
|
|
2720
|
+
"project"
|
|
2721
|
+
],
|
|
2366
2722
|
"name": "api",
|
|
2367
2723
|
"required": false,
|
|
2368
2724
|
"hasDynamicHelp": false,
|
|
@@ -2370,10 +2726,12 @@
|
|
|
2370
2726
|
"type": "option"
|
|
2371
2727
|
},
|
|
2372
2728
|
"dataset": {
|
|
2373
|
-
"
|
|
2729
|
+
"char": "d",
|
|
2730
|
+
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2731
|
+
"helpGroup": "OVERRIDE",
|
|
2374
2732
|
"name": "dataset",
|
|
2375
|
-
"required": false,
|
|
2376
2733
|
"hasDynamicHelp": false,
|
|
2734
|
+
"helpValue": "<name>",
|
|
2377
2735
|
"multiple": false,
|
|
2378
2736
|
"type": "option"
|
|
2379
2737
|
},
|
|
@@ -2385,7 +2743,11 @@
|
|
|
2385
2743
|
"type": "boolean"
|
|
2386
2744
|
},
|
|
2387
2745
|
"project": {
|
|
2746
|
+
"deprecated": {
|
|
2747
|
+
"to": "project-id"
|
|
2748
|
+
},
|
|
2388
2749
|
"description": "Project ID to delete GraphQL API for",
|
|
2750
|
+
"hidden": true,
|
|
2389
2751
|
"name": "project",
|
|
2390
2752
|
"required": false,
|
|
2391
2753
|
"hasDynamicHelp": false,
|
|
@@ -2431,9 +2793,24 @@
|
|
|
2431
2793
|
{
|
|
2432
2794
|
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
2433
2795
|
"description": "Print details of webhook delivery attempt with ID abc123"
|
|
2796
|
+
},
|
|
2797
|
+
{
|
|
2798
|
+
"command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
|
|
2799
|
+
"description": "Get attempt details for a specific project"
|
|
2434
2800
|
}
|
|
2435
2801
|
],
|
|
2436
|
-
"flags": {
|
|
2802
|
+
"flags": {
|
|
2803
|
+
"project-id": {
|
|
2804
|
+
"char": "p",
|
|
2805
|
+
"description": "Project ID to view webhook attempt for (overrides CLI configuration)",
|
|
2806
|
+
"helpGroup": "OVERRIDE",
|
|
2807
|
+
"name": "project-id",
|
|
2808
|
+
"hasDynamicHelp": false,
|
|
2809
|
+
"helpValue": "<id>",
|
|
2810
|
+
"multiple": false,
|
|
2811
|
+
"type": "option"
|
|
2812
|
+
}
|
|
2813
|
+
},
|
|
2437
2814
|
"hasDynamicHelp": false,
|
|
2438
2815
|
"hiddenAliases": [],
|
|
2439
2816
|
"id": "hook:attempt",
|
|
@@ -2457,9 +2834,24 @@
|
|
|
2457
2834
|
{
|
|
2458
2835
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2459
2836
|
"description": "Create a new webhook for the current project"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2840
|
+
"description": "Create a webhook for a specific project"
|
|
2460
2841
|
}
|
|
2461
2842
|
],
|
|
2462
|
-
"flags": {
|
|
2843
|
+
"flags": {
|
|
2844
|
+
"project-id": {
|
|
2845
|
+
"char": "p",
|
|
2846
|
+
"description": "Project ID to create webhook for (overrides CLI configuration)",
|
|
2847
|
+
"helpGroup": "OVERRIDE",
|
|
2848
|
+
"name": "project-id",
|
|
2849
|
+
"hasDynamicHelp": false,
|
|
2850
|
+
"helpValue": "<id>",
|
|
2851
|
+
"multiple": false,
|
|
2852
|
+
"type": "option"
|
|
2853
|
+
}
|
|
2854
|
+
},
|
|
2463
2855
|
"hasDynamicHelp": false,
|
|
2464
2856
|
"hiddenAliases": [],
|
|
2465
2857
|
"id": "hook:create",
|
|
@@ -2493,9 +2885,24 @@
|
|
|
2493
2885
|
{
|
|
2494
2886
|
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
2495
2887
|
"description": "Delete a specific hook by name"
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2891
|
+
"description": "Delete a hook from a specific project"
|
|
2496
2892
|
}
|
|
2497
2893
|
],
|
|
2498
|
-
"flags": {
|
|
2894
|
+
"flags": {
|
|
2895
|
+
"project-id": {
|
|
2896
|
+
"char": "p",
|
|
2897
|
+
"description": "Project ID to delete webhook from (overrides CLI configuration)",
|
|
2898
|
+
"helpGroup": "OVERRIDE",
|
|
2899
|
+
"name": "project-id",
|
|
2900
|
+
"hasDynamicHelp": false,
|
|
2901
|
+
"helpValue": "<id>",
|
|
2902
|
+
"multiple": false,
|
|
2903
|
+
"type": "option"
|
|
2904
|
+
}
|
|
2905
|
+
},
|
|
2499
2906
|
"hasDynamicHelp": false,
|
|
2500
2907
|
"hiddenAliases": [],
|
|
2501
2908
|
"id": "hook:delete",
|
|
@@ -2519,9 +2926,24 @@
|
|
|
2519
2926
|
{
|
|
2520
2927
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2521
2928
|
"description": "List hooks for a given project"
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2932
|
+
"description": "List hooks for a specific project"
|
|
2522
2933
|
}
|
|
2523
2934
|
],
|
|
2524
|
-
"flags": {
|
|
2935
|
+
"flags": {
|
|
2936
|
+
"project-id": {
|
|
2937
|
+
"char": "p",
|
|
2938
|
+
"description": "Project ID to list webhooks for (overrides CLI configuration)",
|
|
2939
|
+
"helpGroup": "OVERRIDE",
|
|
2940
|
+
"name": "project-id",
|
|
2941
|
+
"hasDynamicHelp": false,
|
|
2942
|
+
"helpValue": "<id>",
|
|
2943
|
+
"multiple": false,
|
|
2944
|
+
"type": "option"
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2525
2947
|
"hasDynamicHelp": false,
|
|
2526
2948
|
"hiddenAliases": [],
|
|
2527
2949
|
"id": "hook:list",
|
|
@@ -2555,9 +2977,23 @@
|
|
|
2555
2977
|
{
|
|
2556
2978
|
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
2557
2979
|
"description": "List latest log entries for a specific hook by name"
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2983
|
+
"description": "List hook logs for a specific project"
|
|
2558
2984
|
}
|
|
2559
2985
|
],
|
|
2560
2986
|
"flags": {
|
|
2987
|
+
"project-id": {
|
|
2988
|
+
"char": "p",
|
|
2989
|
+
"description": "Project ID to view webhook logs for (overrides CLI configuration)",
|
|
2990
|
+
"helpGroup": "OVERRIDE",
|
|
2991
|
+
"name": "project-id",
|
|
2992
|
+
"hasDynamicHelp": false,
|
|
2993
|
+
"helpValue": "<id>",
|
|
2994
|
+
"multiple": false,
|
|
2995
|
+
"type": "option"
|
|
2996
|
+
},
|
|
2561
2997
|
"detailed": {
|
|
2562
2998
|
"description": "Include detailed payload and attempts",
|
|
2563
2999
|
"name": "detailed",
|
|
@@ -2599,7 +3035,7 @@
|
|
|
2599
3035
|
"path": {
|
|
2600
3036
|
"description": "Optional path to specify destination directory of the manifest files",
|
|
2601
3037
|
"name": "path",
|
|
2602
|
-
"default": "
|
|
3038
|
+
"default": "dist/static",
|
|
2603
3039
|
"hasDynamicHelp": false,
|
|
2604
3040
|
"multiple": false,
|
|
2605
3041
|
"type": "option"
|
|
@@ -2623,7 +3059,7 @@
|
|
|
2623
3059
|
"mcp:configure": {
|
|
2624
3060
|
"aliases": [],
|
|
2625
3061
|
"args": {},
|
|
2626
|
-
"description": "Configure Sanity MCP server for AI editors (Cursor,
|
|
3062
|
+
"description": "Configure Sanity MCP server for AI editors (Claude Code, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, VS Code)",
|
|
2627
3063
|
"examples": [
|
|
2628
3064
|
{
|
|
2629
3065
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -2689,6 +3125,16 @@
|
|
|
2689
3125
|
}
|
|
2690
3126
|
],
|
|
2691
3127
|
"flags": {
|
|
3128
|
+
"project-id": {
|
|
3129
|
+
"char": "p",
|
|
3130
|
+
"description": "Project ID to delete media aspect from (overrides CLI configuration)",
|
|
3131
|
+
"helpGroup": "OVERRIDE",
|
|
3132
|
+
"name": "project-id",
|
|
3133
|
+
"hasDynamicHelp": false,
|
|
3134
|
+
"helpValue": "<id>",
|
|
3135
|
+
"multiple": false,
|
|
3136
|
+
"type": "option"
|
|
3137
|
+
},
|
|
2692
3138
|
"media-library-id": {
|
|
2693
3139
|
"description": "The id of the target media library",
|
|
2694
3140
|
"name": "media-library-id",
|
|
@@ -2744,6 +3190,16 @@
|
|
|
2744
3190
|
}
|
|
2745
3191
|
],
|
|
2746
3192
|
"flags": {
|
|
3193
|
+
"project-id": {
|
|
3194
|
+
"char": "p",
|
|
3195
|
+
"description": "Project ID to deploy media aspect to (overrides CLI configuration)",
|
|
3196
|
+
"helpGroup": "OVERRIDE",
|
|
3197
|
+
"name": "project-id",
|
|
3198
|
+
"hasDynamicHelp": false,
|
|
3199
|
+
"helpValue": "<id>",
|
|
3200
|
+
"multiple": false,
|
|
3201
|
+
"type": "option"
|
|
3202
|
+
},
|
|
2747
3203
|
"all": {
|
|
2748
3204
|
"description": "Deploy all aspects",
|
|
2749
3205
|
"name": "all",
|
|
@@ -2799,6 +3255,16 @@
|
|
|
2799
3255
|
}
|
|
2800
3256
|
],
|
|
2801
3257
|
"flags": {
|
|
3258
|
+
"project-id": {
|
|
3259
|
+
"char": "p",
|
|
3260
|
+
"description": "Project ID to export media from (overrides CLI configuration)",
|
|
3261
|
+
"helpGroup": "OVERRIDE",
|
|
3262
|
+
"name": "project-id",
|
|
3263
|
+
"hasDynamicHelp": false,
|
|
3264
|
+
"helpValue": "<id>",
|
|
3265
|
+
"multiple": false,
|
|
3266
|
+
"type": "option"
|
|
3267
|
+
},
|
|
2802
3268
|
"asset-concurrency": {
|
|
2803
3269
|
"description": "Concurrent number of asset downloads",
|
|
2804
3270
|
"name": "asset-concurrency",
|
|
@@ -2867,6 +3333,16 @@
|
|
|
2867
3333
|
}
|
|
2868
3334
|
],
|
|
2869
3335
|
"flags": {
|
|
3336
|
+
"project-id": {
|
|
3337
|
+
"char": "p",
|
|
3338
|
+
"description": "Project ID to import media to (overrides CLI configuration)",
|
|
3339
|
+
"helpGroup": "OVERRIDE",
|
|
3340
|
+
"name": "project-id",
|
|
3341
|
+
"hasDynamicHelp": false,
|
|
3342
|
+
"helpValue": "<id>",
|
|
3343
|
+
"multiple": false,
|
|
3344
|
+
"type": "option"
|
|
3345
|
+
},
|
|
2870
3346
|
"media-library-id": {
|
|
2871
3347
|
"description": "The id of the target media library",
|
|
2872
3348
|
"name": "media-library-id",
|
|
@@ -3152,64 +3628,20 @@
|
|
|
3152
3628
|
"list.js"
|
|
3153
3629
|
]
|
|
3154
3630
|
},
|
|
3155
|
-
"
|
|
3631
|
+
"telemetry:disable": {
|
|
3156
3632
|
"aliases": [],
|
|
3157
3633
|
"args": {},
|
|
3158
|
-
"description": "
|
|
3634
|
+
"description": "Disable telemetry for your logged in user",
|
|
3159
3635
|
"examples": [
|
|
3160
3636
|
{
|
|
3161
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3162
|
-
"description": "
|
|
3163
|
-
},
|
|
3164
|
-
{
|
|
3165
|
-
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
|
|
3166
|
-
"description": "Delete multiple schemas"
|
|
3167
|
-
},
|
|
3168
|
-
{
|
|
3169
|
-
"command": "<%= config.bin %> <%= command.id %> --no-extract-manifest --ids sanity.workspace.schema.workspaceName",
|
|
3170
|
-
"description": "Delete using a pre-existing manifest file (config changes in sanity.config will not be picked up)"
|
|
3637
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3638
|
+
"description": "Disable telemetry for your logged in user"
|
|
3171
3639
|
}
|
|
3172
3640
|
],
|
|
3173
|
-
"flags": {
|
|
3174
|
-
"dataset": {
|
|
3175
|
-
"description": "Delete schemas from a specific dataset",
|
|
3176
|
-
"name": "dataset",
|
|
3177
|
-
"hasDynamicHelp": false,
|
|
3178
|
-
"multiple": false,
|
|
3179
|
-
"type": "option"
|
|
3180
|
-
},
|
|
3181
|
-
"extract-manifest": {
|
|
3182
|
-
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
3183
|
-
"name": "extract-manifest",
|
|
3184
|
-
"allowNo": true,
|
|
3185
|
-
"type": "boolean"
|
|
3186
|
-
},
|
|
3187
|
-
"ids": {
|
|
3188
|
-
"description": "Comma-separated list of schema ids to delete",
|
|
3189
|
-
"name": "ids",
|
|
3190
|
-
"required": true,
|
|
3191
|
-
"hasDynamicHelp": false,
|
|
3192
|
-
"multiple": false,
|
|
3193
|
-
"type": "option"
|
|
3194
|
-
},
|
|
3195
|
-
"manifest-dir": {
|
|
3196
|
-
"description": "Directory containing manifest file",
|
|
3197
|
-
"name": "manifest-dir",
|
|
3198
|
-
"default": "./dist/static",
|
|
3199
|
-
"hasDynamicHelp": false,
|
|
3200
|
-
"multiple": false,
|
|
3201
|
-
"type": "option"
|
|
3202
|
-
},
|
|
3203
|
-
"verbose": {
|
|
3204
|
-
"description": "Enable verbose logging",
|
|
3205
|
-
"name": "verbose",
|
|
3206
|
-
"allowNo": false,
|
|
3207
|
-
"type": "boolean"
|
|
3208
|
-
}
|
|
3209
|
-
},
|
|
3641
|
+
"flags": {},
|
|
3210
3642
|
"hasDynamicHelp": false,
|
|
3211
3643
|
"hiddenAliases": [],
|
|
3212
|
-
"id": "
|
|
3644
|
+
"id": "telemetry:disable",
|
|
3213
3645
|
"pluginAlias": "@sanity/cli",
|
|
3214
3646
|
"pluginName": "@sanity/cli",
|
|
3215
3647
|
"pluginType": "core",
|
|
@@ -3218,70 +3650,24 @@
|
|
|
3218
3650
|
"relativePath": [
|
|
3219
3651
|
"dist",
|
|
3220
3652
|
"commands",
|
|
3221
|
-
"
|
|
3222
|
-
"
|
|
3653
|
+
"telemetry",
|
|
3654
|
+
"disable.js"
|
|
3223
3655
|
]
|
|
3224
3656
|
},
|
|
3225
|
-
"
|
|
3657
|
+
"telemetry:enable": {
|
|
3226
3658
|
"aliases": [],
|
|
3227
3659
|
"args": {},
|
|
3228
|
-
"description": "
|
|
3660
|
+
"description": "Enable telemetry for your logged in user",
|
|
3229
3661
|
"examples": [
|
|
3230
3662
|
{
|
|
3231
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3232
|
-
"description": "
|
|
3233
|
-
},
|
|
3234
|
-
{
|
|
3235
|
-
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3236
|
-
"description": "Deploy the schema for only the workspace \"default\""
|
|
3237
|
-
},
|
|
3238
|
-
{
|
|
3239
|
-
"command": "<%= config.bin %> <%= command.id %> --no-extract-manifest",
|
|
3240
|
-
"description": "Runs using a pre-existing manifest file. Config changes in sanity.config will not be picked up in this case."
|
|
3663
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3664
|
+
"description": "Enable telemetry for your logged in user"
|
|
3241
3665
|
}
|
|
3242
3666
|
],
|
|
3243
|
-
"flags": {
|
|
3244
|
-
"extract-manifest": {
|
|
3245
|
-
"description": "Disables manifest generation - the command will fail if no manifest exists",
|
|
3246
|
-
"name": "extract-manifest",
|
|
3247
|
-
"allowNo": true,
|
|
3248
|
-
"type": "boolean"
|
|
3249
|
-
},
|
|
3250
|
-
"manifest-dir": {
|
|
3251
|
-
"description": "Directory containing manifest file",
|
|
3252
|
-
"name": "manifest-dir",
|
|
3253
|
-
"default": "./dist/static",
|
|
3254
|
-
"hasDynamicHelp": false,
|
|
3255
|
-
"helpValue": "<directory>",
|
|
3256
|
-
"multiple": false,
|
|
3257
|
-
"type": "option"
|
|
3258
|
-
},
|
|
3259
|
-
"tag": {
|
|
3260
|
-
"description": "Add a tag suffix to the schema id",
|
|
3261
|
-
"name": "tag",
|
|
3262
|
-
"hasDynamicHelp": false,
|
|
3263
|
-
"helpValue": "<tag>",
|
|
3264
|
-
"multiple": false,
|
|
3265
|
-
"type": "option"
|
|
3266
|
-
},
|
|
3267
|
-
"verbose": {
|
|
3268
|
-
"description": "Print detailed information during deployment",
|
|
3269
|
-
"name": "verbose",
|
|
3270
|
-
"allowNo": false,
|
|
3271
|
-
"type": "boolean"
|
|
3272
|
-
},
|
|
3273
|
-
"workspace": {
|
|
3274
|
-
"description": "The name of the workspace to deploy a schema for",
|
|
3275
|
-
"name": "workspace",
|
|
3276
|
-
"hasDynamicHelp": false,
|
|
3277
|
-
"helpValue": "<name>",
|
|
3278
|
-
"multiple": false,
|
|
3279
|
-
"type": "option"
|
|
3280
|
-
}
|
|
3281
|
-
},
|
|
3667
|
+
"flags": {},
|
|
3282
3668
|
"hasDynamicHelp": false,
|
|
3283
3669
|
"hiddenAliases": [],
|
|
3284
|
-
"id": "
|
|
3670
|
+
"id": "telemetry:enable",
|
|
3285
3671
|
"pluginAlias": "@sanity/cli",
|
|
3286
3672
|
"pluginName": "@sanity/cli",
|
|
3287
3673
|
"pluginType": "core",
|
|
@@ -3290,55 +3676,24 @@
|
|
|
3290
3676
|
"relativePath": [
|
|
3291
3677
|
"dist",
|
|
3292
3678
|
"commands",
|
|
3293
|
-
"
|
|
3294
|
-
"
|
|
3679
|
+
"telemetry",
|
|
3680
|
+
"enable.js"
|
|
3295
3681
|
]
|
|
3296
3682
|
},
|
|
3297
|
-
"
|
|
3683
|
+
"telemetry:status": {
|
|
3298
3684
|
"aliases": [],
|
|
3299
3685
|
"args": {},
|
|
3300
|
-
"description": "
|
|
3686
|
+
"description": "Check telemetry consent status for your logged in user",
|
|
3301
3687
|
"examples": [
|
|
3302
3688
|
{
|
|
3303
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3304
|
-
"description": "
|
|
3689
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3690
|
+
"description": "Check telemetry consent status for your logged in user"
|
|
3305
3691
|
}
|
|
3306
3692
|
],
|
|
3307
|
-
"flags": {
|
|
3308
|
-
"enforce-required-fields": {
|
|
3309
|
-
"description": "Makes the schema generated treat fields marked as required as non-optional",
|
|
3310
|
-
"name": "enforce-required-fields",
|
|
3311
|
-
"allowNo": false,
|
|
3312
|
-
"type": "boolean"
|
|
3313
|
-
},
|
|
3314
|
-
"format": {
|
|
3315
|
-
"description": "Format the schema as GROQ type nodes. Only available format at the moment.",
|
|
3316
|
-
"name": "format",
|
|
3317
|
-
"default": "groq-type-nodes",
|
|
3318
|
-
"hasDynamicHelp": false,
|
|
3319
|
-
"helpValue": "<format>",
|
|
3320
|
-
"multiple": false,
|
|
3321
|
-
"type": "option"
|
|
3322
|
-
},
|
|
3323
|
-
"path": {
|
|
3324
|
-
"description": "Optional path to specify destination of the schema file",
|
|
3325
|
-
"name": "path",
|
|
3326
|
-
"hasDynamicHelp": false,
|
|
3327
|
-
"multiple": false,
|
|
3328
|
-
"type": "option"
|
|
3329
|
-
},
|
|
3330
|
-
"workspace": {
|
|
3331
|
-
"description": "The name of the workspace to generate a schema for",
|
|
3332
|
-
"name": "workspace",
|
|
3333
|
-
"hasDynamicHelp": false,
|
|
3334
|
-
"helpValue": "<name>",
|
|
3335
|
-
"multiple": false,
|
|
3336
|
-
"type": "option"
|
|
3337
|
-
}
|
|
3338
|
-
},
|
|
3693
|
+
"flags": {},
|
|
3339
3694
|
"hasDynamicHelp": false,
|
|
3340
3695
|
"hiddenAliases": [],
|
|
3341
|
-
"id": "
|
|
3696
|
+
"id": "telemetry:status",
|
|
3342
3697
|
"pluginAlias": "@sanity/cli",
|
|
3343
3698
|
"pluginName": "@sanity/cli",
|
|
3344
3699
|
"pluginType": "core",
|
|
@@ -3347,70 +3702,78 @@
|
|
|
3347
3702
|
"relativePath": [
|
|
3348
3703
|
"dist",
|
|
3349
3704
|
"commands",
|
|
3350
|
-
"
|
|
3351
|
-
"
|
|
3705
|
+
"telemetry",
|
|
3706
|
+
"status.js"
|
|
3352
3707
|
]
|
|
3353
3708
|
},
|
|
3354
|
-
"
|
|
3709
|
+
"tokens:add": {
|
|
3355
3710
|
"aliases": [],
|
|
3356
|
-
"args": {
|
|
3357
|
-
|
|
3711
|
+
"args": {
|
|
3712
|
+
"label": {
|
|
3713
|
+
"description": "Label for the new token",
|
|
3714
|
+
"name": "label",
|
|
3715
|
+
"required": false
|
|
3716
|
+
}
|
|
3717
|
+
},
|
|
3718
|
+
"description": "Create a new API token for this project",
|
|
3358
3719
|
"examples": [
|
|
3359
3720
|
{
|
|
3360
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3361
|
-
"description": "
|
|
3721
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
3722
|
+
"description": "Create a token with a label"
|
|
3362
3723
|
},
|
|
3363
3724
|
{
|
|
3364
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3365
|
-
"description": "
|
|
3725
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
3726
|
+
"description": "Create a token with editor role"
|
|
3366
3727
|
},
|
|
3367
3728
|
{
|
|
3368
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3369
|
-
"description": "
|
|
3729
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
3730
|
+
"description": "Create a token in unattended mode"
|
|
3370
3731
|
},
|
|
3371
3732
|
{
|
|
3372
|
-
"command": "<%= config.bin %> <%= command.id %> --json
|
|
3373
|
-
"description": "
|
|
3733
|
+
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
3734
|
+
"description": "Output token information as JSON"
|
|
3374
3735
|
},
|
|
3375
3736
|
{
|
|
3376
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3377
|
-
"description": "
|
|
3737
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project-id abc123 --role=editor",
|
|
3738
|
+
"description": "Create a token for a specific project"
|
|
3378
3739
|
}
|
|
3379
3740
|
],
|
|
3380
3741
|
"flags": {
|
|
3381
|
-
"
|
|
3382
|
-
"
|
|
3383
|
-
"
|
|
3384
|
-
"
|
|
3385
|
-
"
|
|
3386
|
-
},
|
|
3387
|
-
"id": {
|
|
3388
|
-
"description": "Fetch a single schema by id",
|
|
3389
|
-
"name": "id",
|
|
3742
|
+
"project-id": {
|
|
3743
|
+
"char": "p",
|
|
3744
|
+
"description": "Project ID to add token to (overrides CLI configuration)",
|
|
3745
|
+
"helpGroup": "OVERRIDE",
|
|
3746
|
+
"name": "project-id",
|
|
3390
3747
|
"hasDynamicHelp": false,
|
|
3391
|
-
"helpValue": "<
|
|
3748
|
+
"helpValue": "<id>",
|
|
3392
3749
|
"multiple": false,
|
|
3393
3750
|
"type": "option"
|
|
3394
3751
|
},
|
|
3395
3752
|
"json": {
|
|
3396
|
-
"description": "
|
|
3753
|
+
"description": "Output as JSON",
|
|
3397
3754
|
"name": "json",
|
|
3398
3755
|
"allowNo": false,
|
|
3399
3756
|
"type": "boolean"
|
|
3400
3757
|
},
|
|
3401
|
-
"
|
|
3402
|
-
"description": "
|
|
3403
|
-
"name": "
|
|
3404
|
-
"default": "./dist/static",
|
|
3758
|
+
"role": {
|
|
3759
|
+
"description": "Role to assign to the token",
|
|
3760
|
+
"name": "role",
|
|
3405
3761
|
"hasDynamicHelp": false,
|
|
3406
|
-
"helpValue": "
|
|
3762
|
+
"helpValue": "viewer",
|
|
3407
3763
|
"multiple": false,
|
|
3408
3764
|
"type": "option"
|
|
3765
|
+
},
|
|
3766
|
+
"yes": {
|
|
3767
|
+
"char": "y",
|
|
3768
|
+
"description": "Skip prompts and use defaults (unattended mode)",
|
|
3769
|
+
"name": "yes",
|
|
3770
|
+
"allowNo": false,
|
|
3771
|
+
"type": "boolean"
|
|
3409
3772
|
}
|
|
3410
3773
|
},
|
|
3411
3774
|
"hasDynamicHelp": false,
|
|
3412
3775
|
"hiddenAliases": [],
|
|
3413
|
-
"id": "
|
|
3776
|
+
"id": "tokens:add",
|
|
3414
3777
|
"pluginAlias": "@sanity/cli",
|
|
3415
3778
|
"pluginName": "@sanity/cli",
|
|
3416
3779
|
"pluginType": "core",
|
|
@@ -3419,77 +3782,63 @@
|
|
|
3419
3782
|
"relativePath": [
|
|
3420
3783
|
"dist",
|
|
3421
3784
|
"commands",
|
|
3422
|
-
"
|
|
3423
|
-
"
|
|
3785
|
+
"tokens",
|
|
3786
|
+
"add.js"
|
|
3424
3787
|
]
|
|
3425
3788
|
},
|
|
3426
|
-
"
|
|
3789
|
+
"tokens:delete": {
|
|
3427
3790
|
"aliases": [],
|
|
3428
|
-
"args": {
|
|
3429
|
-
|
|
3791
|
+
"args": {
|
|
3792
|
+
"tokenId": {
|
|
3793
|
+
"description": "Token ID to delete (will prompt if not provided)",
|
|
3794
|
+
"name": "tokenId",
|
|
3795
|
+
"required": false
|
|
3796
|
+
}
|
|
3797
|
+
},
|
|
3798
|
+
"description": "Delete an API token from this project",
|
|
3430
3799
|
"examples": [
|
|
3431
3800
|
{
|
|
3432
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3433
|
-
"description": "
|
|
3801
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3802
|
+
"description": "Interactively select and delete a token"
|
|
3434
3803
|
},
|
|
3435
3804
|
{
|
|
3436
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3437
|
-
"description": "
|
|
3805
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
3806
|
+
"description": "Delete a specific token by ID"
|
|
3438
3807
|
},
|
|
3439
3808
|
{
|
|
3440
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3441
|
-
"description": "
|
|
3809
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
3810
|
+
"description": "Delete a specific token without confirmation prompt"
|
|
3442
3811
|
},
|
|
3443
3812
|
{
|
|
3444
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3445
|
-
"description": "
|
|
3813
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3814
|
+
"description": "Delete a token from a specific project"
|
|
3446
3815
|
}
|
|
3447
3816
|
],
|
|
3448
3817
|
"flags": {
|
|
3449
|
-
"
|
|
3450
|
-
"
|
|
3451
|
-
"
|
|
3452
|
-
"
|
|
3453
|
-
"
|
|
3454
|
-
"multiple": false,
|
|
3455
|
-
"type": "option"
|
|
3456
|
-
},
|
|
3457
|
-
"format": {
|
|
3458
|
-
"description": "The output format used to print schema errors and warnings",
|
|
3459
|
-
"name": "format",
|
|
3460
|
-
"default": "pretty",
|
|
3818
|
+
"project-id": {
|
|
3819
|
+
"char": "p",
|
|
3820
|
+
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
3821
|
+
"helpGroup": "OVERRIDE",
|
|
3822
|
+
"name": "project-id",
|
|
3461
3823
|
"hasDynamicHelp": false,
|
|
3824
|
+
"helpValue": "<id>",
|
|
3462
3825
|
"multiple": false,
|
|
3463
|
-
"options": [
|
|
3464
|
-
"pretty",
|
|
3465
|
-
"ndjson",
|
|
3466
|
-
"json"
|
|
3467
|
-
],
|
|
3468
3826
|
"type": "option"
|
|
3469
3827
|
},
|
|
3470
|
-
"
|
|
3471
|
-
"
|
|
3472
|
-
|
|
3473
|
-
"default": "warning",
|
|
3474
|
-
"hasDynamicHelp": false,
|
|
3475
|
-
"multiple": false,
|
|
3476
|
-
"options": [
|
|
3477
|
-
"error",
|
|
3478
|
-
"warning"
|
|
3828
|
+
"yes": {
|
|
3829
|
+
"aliases": [
|
|
3830
|
+
"y"
|
|
3479
3831
|
],
|
|
3480
|
-
"
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
"
|
|
3484
|
-
"
|
|
3485
|
-
"hasDynamicHelp": false,
|
|
3486
|
-
"multiple": false,
|
|
3487
|
-
"type": "option"
|
|
3832
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
3833
|
+
"name": "yes",
|
|
3834
|
+
"required": false,
|
|
3835
|
+
"allowNo": false,
|
|
3836
|
+
"type": "boolean"
|
|
3488
3837
|
}
|
|
3489
3838
|
},
|
|
3490
3839
|
"hasDynamicHelp": false,
|
|
3491
3840
|
"hiddenAliases": [],
|
|
3492
|
-
"id": "
|
|
3841
|
+
"id": "tokens:delete",
|
|
3493
3842
|
"pluginAlias": "@sanity/cli",
|
|
3494
3843
|
"pluginName": "@sanity/cli",
|
|
3495
3844
|
"pluginType": "core",
|
|
@@ -3498,50 +3847,112 @@
|
|
|
3498
3847
|
"relativePath": [
|
|
3499
3848
|
"dist",
|
|
3500
3849
|
"commands",
|
|
3501
|
-
"
|
|
3502
|
-
"
|
|
3850
|
+
"tokens",
|
|
3851
|
+
"delete.js"
|
|
3503
3852
|
]
|
|
3504
3853
|
},
|
|
3505
|
-
"
|
|
3854
|
+
"tokens:list": {
|
|
3506
3855
|
"aliases": [],
|
|
3507
3856
|
"args": {},
|
|
3508
|
-
"description": "
|
|
3857
|
+
"description": "List API tokens for the current project",
|
|
3509
3858
|
"examples": [
|
|
3510
3859
|
{
|
|
3511
|
-
"command": "<%= config.bin %>
|
|
3512
|
-
"description": "
|
|
3860
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3861
|
+
"description": "List tokens for the current project"
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
3865
|
+
"description": "List tokens in JSON format"
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3869
|
+
"description": "List tokens for a specific project"
|
|
3513
3870
|
}
|
|
3514
3871
|
],
|
|
3515
|
-
"flags": {
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
"
|
|
3527
|
-
|
|
3528
|
-
|
|
3872
|
+
"flags": {
|
|
3873
|
+
"project-id": {
|
|
3874
|
+
"char": "p",
|
|
3875
|
+
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
3876
|
+
"helpGroup": "OVERRIDE",
|
|
3877
|
+
"name": "project-id",
|
|
3878
|
+
"hasDynamicHelp": false,
|
|
3879
|
+
"helpValue": "<id>",
|
|
3880
|
+
"multiple": false,
|
|
3881
|
+
"type": "option"
|
|
3882
|
+
},
|
|
3883
|
+
"json": {
|
|
3884
|
+
"description": "Output tokens in JSON format",
|
|
3885
|
+
"name": "json",
|
|
3886
|
+
"allowNo": false,
|
|
3887
|
+
"type": "boolean"
|
|
3888
|
+
}
|
|
3889
|
+
},
|
|
3890
|
+
"hasDynamicHelp": false,
|
|
3891
|
+
"hiddenAliases": [],
|
|
3892
|
+
"id": "tokens:list",
|
|
3893
|
+
"pluginAlias": "@sanity/cli",
|
|
3894
|
+
"pluginName": "@sanity/cli",
|
|
3895
|
+
"pluginType": "core",
|
|
3896
|
+
"strict": true,
|
|
3897
|
+
"isESM": true,
|
|
3898
|
+
"relativePath": [
|
|
3899
|
+
"dist",
|
|
3900
|
+
"commands",
|
|
3901
|
+
"tokens",
|
|
3902
|
+
"list.js"
|
|
3529
3903
|
]
|
|
3530
3904
|
},
|
|
3531
|
-
"
|
|
3905
|
+
"users:invite": {
|
|
3532
3906
|
"aliases": [],
|
|
3533
|
-
"args": {
|
|
3534
|
-
|
|
3907
|
+
"args": {
|
|
3908
|
+
"email": {
|
|
3909
|
+
"description": "Email address to invite",
|
|
3910
|
+
"name": "email",
|
|
3911
|
+
"required": false
|
|
3912
|
+
}
|
|
3913
|
+
},
|
|
3914
|
+
"description": "Invite a new user to the project",
|
|
3535
3915
|
"examples": [
|
|
3536
3916
|
{
|
|
3537
|
-
"command": "<%= config.bin %>
|
|
3538
|
-
"description": "
|
|
3917
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3918
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
3919
|
+
},
|
|
3920
|
+
{
|
|
3921
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
3922
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
3923
|
+
},
|
|
3924
|
+
{
|
|
3925
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
3926
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
3927
|
+
},
|
|
3928
|
+
{
|
|
3929
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project-id abc123",
|
|
3930
|
+
"description": "Invite a user to a specific project"
|
|
3539
3931
|
}
|
|
3540
3932
|
],
|
|
3541
|
-
"flags": {
|
|
3933
|
+
"flags": {
|
|
3934
|
+
"project-id": {
|
|
3935
|
+
"char": "p",
|
|
3936
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
3937
|
+
"helpGroup": "OVERRIDE",
|
|
3938
|
+
"name": "project-id",
|
|
3939
|
+
"hasDynamicHelp": false,
|
|
3940
|
+
"helpValue": "<id>",
|
|
3941
|
+
"multiple": false,
|
|
3942
|
+
"type": "option"
|
|
3943
|
+
},
|
|
3944
|
+
"role": {
|
|
3945
|
+
"description": "Role to invite the user as",
|
|
3946
|
+
"name": "role",
|
|
3947
|
+
"required": false,
|
|
3948
|
+
"hasDynamicHelp": false,
|
|
3949
|
+
"multiple": false,
|
|
3950
|
+
"type": "option"
|
|
3951
|
+
}
|
|
3952
|
+
},
|
|
3542
3953
|
"hasDynamicHelp": false,
|
|
3543
3954
|
"hiddenAliases": [],
|
|
3544
|
-
"id": "
|
|
3955
|
+
"id": "users:invite",
|
|
3545
3956
|
"pluginAlias": "@sanity/cli",
|
|
3546
3957
|
"pluginName": "@sanity/cli",
|
|
3547
3958
|
"pluginType": "core",
|
|
@@ -3550,24 +3961,85 @@
|
|
|
3550
3961
|
"relativePath": [
|
|
3551
3962
|
"dist",
|
|
3552
3963
|
"commands",
|
|
3553
|
-
"
|
|
3554
|
-
"
|
|
3964
|
+
"users",
|
|
3965
|
+
"invite.js"
|
|
3555
3966
|
]
|
|
3556
3967
|
},
|
|
3557
|
-
"
|
|
3968
|
+
"users:list": {
|
|
3558
3969
|
"aliases": [],
|
|
3559
3970
|
"args": {},
|
|
3560
|
-
"description": "
|
|
3971
|
+
"description": "List all users of the project",
|
|
3561
3972
|
"examples": [
|
|
3562
3973
|
{
|
|
3563
|
-
"command": "<%= config.bin %>
|
|
3564
|
-
"description": "
|
|
3974
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3975
|
+
"description": "List all users of the project"
|
|
3976
|
+
},
|
|
3977
|
+
{
|
|
3978
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
3979
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
3983
|
+
"description": "List all users, sorted by role"
|
|
3984
|
+
},
|
|
3985
|
+
{
|
|
3986
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3987
|
+
"description": "List users for a specific project"
|
|
3565
3988
|
}
|
|
3566
3989
|
],
|
|
3567
|
-
"flags": {
|
|
3990
|
+
"flags": {
|
|
3991
|
+
"project-id": {
|
|
3992
|
+
"char": "p",
|
|
3993
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
3994
|
+
"helpGroup": "OVERRIDE",
|
|
3995
|
+
"name": "project-id",
|
|
3996
|
+
"hasDynamicHelp": false,
|
|
3997
|
+
"helpValue": "<id>",
|
|
3998
|
+
"multiple": false,
|
|
3999
|
+
"type": "option"
|
|
4000
|
+
},
|
|
4001
|
+
"invitations": {
|
|
4002
|
+
"description": "Includes or excludes pending invitations",
|
|
4003
|
+
"name": "invitations",
|
|
4004
|
+
"allowNo": true,
|
|
4005
|
+
"type": "boolean"
|
|
4006
|
+
},
|
|
4007
|
+
"order": {
|
|
4008
|
+
"description": "Sort output ascending/descending",
|
|
4009
|
+
"name": "order",
|
|
4010
|
+
"default": "asc",
|
|
4011
|
+
"hasDynamicHelp": false,
|
|
4012
|
+
"multiple": false,
|
|
4013
|
+
"options": [
|
|
4014
|
+
"asc",
|
|
4015
|
+
"desc"
|
|
4016
|
+
],
|
|
4017
|
+
"type": "option"
|
|
4018
|
+
},
|
|
4019
|
+
"robots": {
|
|
4020
|
+
"description": "Includes or excludes robots (token users)",
|
|
4021
|
+
"name": "robots",
|
|
4022
|
+
"allowNo": true,
|
|
4023
|
+
"type": "boolean"
|
|
4024
|
+
},
|
|
4025
|
+
"sort": {
|
|
4026
|
+
"description": "Sort users by specified column",
|
|
4027
|
+
"name": "sort",
|
|
4028
|
+
"default": "date",
|
|
4029
|
+
"hasDynamicHelp": false,
|
|
4030
|
+
"multiple": false,
|
|
4031
|
+
"options": [
|
|
4032
|
+
"id",
|
|
4033
|
+
"name",
|
|
4034
|
+
"role",
|
|
4035
|
+
"date"
|
|
4036
|
+
],
|
|
4037
|
+
"type": "option"
|
|
4038
|
+
}
|
|
4039
|
+
},
|
|
3568
4040
|
"hasDynamicHelp": false,
|
|
3569
4041
|
"hiddenAliases": [],
|
|
3570
|
-
"id": "
|
|
4042
|
+
"id": "users:list",
|
|
3571
4043
|
"pluginAlias": "@sanity/cli",
|
|
3572
4044
|
"pluginName": "@sanity/cli",
|
|
3573
4045
|
"pluginType": "core",
|
|
@@ -3576,64 +4048,78 @@
|
|
|
3576
4048
|
"relativePath": [
|
|
3577
4049
|
"dist",
|
|
3578
4050
|
"commands",
|
|
3579
|
-
"
|
|
3580
|
-
"
|
|
4051
|
+
"users",
|
|
4052
|
+
"list.js"
|
|
3581
4053
|
]
|
|
3582
4054
|
},
|
|
3583
|
-
"
|
|
4055
|
+
"schema:delete": {
|
|
3584
4056
|
"aliases": [],
|
|
3585
|
-
"args": {
|
|
3586
|
-
|
|
3587
|
-
"description": "Label for the new token",
|
|
3588
|
-
"name": "label",
|
|
3589
|
-
"required": false
|
|
3590
|
-
}
|
|
3591
|
-
},
|
|
3592
|
-
"description": "Create a new API token for this project",
|
|
4057
|
+
"args": {},
|
|
4058
|
+
"description": "Delete schema documents by id",
|
|
3593
4059
|
"examples": [
|
|
3594
4060
|
{
|
|
3595
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3596
|
-
"description": "
|
|
3597
|
-
},
|
|
3598
|
-
{
|
|
3599
|
-
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
3600
|
-
"description": "Create a token with editor role"
|
|
3601
|
-
},
|
|
3602
|
-
{
|
|
3603
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
3604
|
-
"description": "Create a token in unattended mode"
|
|
4061
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
|
|
4062
|
+
"description": "Delete a single schema"
|
|
3605
4063
|
},
|
|
3606
4064
|
{
|
|
3607
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3608
|
-
"description": "
|
|
4065
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
|
|
4066
|
+
"description": "Delete multiple schemas"
|
|
3609
4067
|
}
|
|
3610
4068
|
],
|
|
3611
4069
|
"flags": {
|
|
3612
|
-
"
|
|
3613
|
-
"
|
|
3614
|
-
"
|
|
3615
|
-
"
|
|
4070
|
+
"project-id": {
|
|
4071
|
+
"char": "p",
|
|
4072
|
+
"description": "Project ID to delete schema from (overrides CLI configuration)",
|
|
4073
|
+
"helpGroup": "OVERRIDE",
|
|
4074
|
+
"name": "project-id",
|
|
4075
|
+
"hasDynamicHelp": false,
|
|
4076
|
+
"helpValue": "<id>",
|
|
4077
|
+
"multiple": false,
|
|
4078
|
+
"type": "option"
|
|
4079
|
+
},
|
|
4080
|
+
"dataset": {
|
|
4081
|
+
"char": "d",
|
|
4082
|
+
"description": "Delete schemas from a specific dataset",
|
|
4083
|
+
"name": "dataset",
|
|
4084
|
+
"hasDynamicHelp": false,
|
|
4085
|
+
"helpValue": "<name>",
|
|
4086
|
+
"multiple": false,
|
|
4087
|
+
"type": "option"
|
|
4088
|
+
},
|
|
4089
|
+
"extract-manifest": {
|
|
4090
|
+
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
4091
|
+
"hidden": true,
|
|
4092
|
+
"name": "extract-manifest",
|
|
4093
|
+
"allowNo": true,
|
|
3616
4094
|
"type": "boolean"
|
|
3617
4095
|
},
|
|
3618
|
-
"
|
|
3619
|
-
"description": "
|
|
3620
|
-
"name": "
|
|
4096
|
+
"ids": {
|
|
4097
|
+
"description": "Comma-separated list of schema ids to delete",
|
|
4098
|
+
"name": "ids",
|
|
4099
|
+
"required": true,
|
|
3621
4100
|
"hasDynamicHelp": false,
|
|
3622
|
-
"helpValue": "viewer",
|
|
3623
4101
|
"multiple": false,
|
|
3624
4102
|
"type": "option"
|
|
3625
4103
|
},
|
|
3626
|
-
"
|
|
3627
|
-
"
|
|
3628
|
-
"
|
|
3629
|
-
"name": "
|
|
4104
|
+
"manifest-dir": {
|
|
4105
|
+
"description": "Directory containing manifest file",
|
|
4106
|
+
"hidden": true,
|
|
4107
|
+
"name": "manifest-dir",
|
|
4108
|
+
"default": "./dist/static",
|
|
4109
|
+
"hasDynamicHelp": false,
|
|
4110
|
+
"multiple": false,
|
|
4111
|
+
"type": "option"
|
|
4112
|
+
},
|
|
4113
|
+
"verbose": {
|
|
4114
|
+
"description": "Enable verbose logging",
|
|
4115
|
+
"name": "verbose",
|
|
3630
4116
|
"allowNo": false,
|
|
3631
4117
|
"type": "boolean"
|
|
3632
4118
|
}
|
|
3633
4119
|
},
|
|
3634
4120
|
"hasDynamicHelp": false,
|
|
3635
4121
|
"hiddenAliases": [],
|
|
3636
|
-
"id": "
|
|
4122
|
+
"id": "schema:delete",
|
|
3637
4123
|
"pluginAlias": "@sanity/cli",
|
|
3638
4124
|
"pluginName": "@sanity/cli",
|
|
3639
4125
|
"pluginType": "core",
|
|
@@ -3642,49 +4128,66 @@
|
|
|
3642
4128
|
"relativePath": [
|
|
3643
4129
|
"dist",
|
|
3644
4130
|
"commands",
|
|
3645
|
-
"
|
|
3646
|
-
"
|
|
4131
|
+
"schema",
|
|
4132
|
+
"delete.js"
|
|
3647
4133
|
]
|
|
3648
4134
|
},
|
|
3649
|
-
"
|
|
4135
|
+
"schema:deploy": {
|
|
3650
4136
|
"aliases": [],
|
|
3651
|
-
"args": {
|
|
3652
|
-
|
|
3653
|
-
"description": "Token ID to delete (will prompt if not provided)",
|
|
3654
|
-
"name": "tokenId",
|
|
3655
|
-
"required": false
|
|
3656
|
-
}
|
|
3657
|
-
},
|
|
3658
|
-
"description": "Delete an API token from this project",
|
|
4137
|
+
"args": {},
|
|
4138
|
+
"description": "Deploy schema documents into workspace datasets.\n\n**Note**: This command is experimental and subject to change.\n\nThis operation (re-)generates a manifest file describing the sanity config workspace by default.\nTo re-use an existing manifest file, use --no-extract-manifest.",
|
|
3659
4139
|
"examples": [
|
|
3660
4140
|
{
|
|
3661
4141
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3662
|
-
"description": "
|
|
3663
|
-
},
|
|
3664
|
-
{
|
|
3665
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
3666
|
-
"description": "Delete a specific token by ID"
|
|
4142
|
+
"description": "Deploy all workspace schemas"
|
|
3667
4143
|
},
|
|
3668
4144
|
{
|
|
3669
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3670
|
-
"description": "
|
|
4145
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
4146
|
+
"description": "Deploy the schema for only the workspace \"default\""
|
|
3671
4147
|
}
|
|
3672
4148
|
],
|
|
3673
4149
|
"flags": {
|
|
3674
|
-
"
|
|
3675
|
-
"
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
"
|
|
3679
|
-
|
|
3680
|
-
|
|
4150
|
+
"extract-manifest": {
|
|
4151
|
+
"description": "Disables manifest generation - the command will fail if no manifest exists",
|
|
4152
|
+
"name": "extract-manifest",
|
|
4153
|
+
"allowNo": true,
|
|
4154
|
+
"type": "boolean"
|
|
4155
|
+
},
|
|
4156
|
+
"manifest-dir": {
|
|
4157
|
+
"description": "Directory containing manifest file",
|
|
4158
|
+
"name": "manifest-dir",
|
|
4159
|
+
"default": "./dist/static",
|
|
4160
|
+
"hasDynamicHelp": false,
|
|
4161
|
+
"helpValue": "<directory>",
|
|
4162
|
+
"multiple": false,
|
|
4163
|
+
"type": "option"
|
|
4164
|
+
},
|
|
4165
|
+
"tag": {
|
|
4166
|
+
"description": "Add a tag suffix to the schema id",
|
|
4167
|
+
"name": "tag",
|
|
4168
|
+
"hasDynamicHelp": false,
|
|
4169
|
+
"helpValue": "<tag>",
|
|
4170
|
+
"multiple": false,
|
|
4171
|
+
"type": "option"
|
|
4172
|
+
},
|
|
4173
|
+
"verbose": {
|
|
4174
|
+
"description": "Print detailed information during deployment",
|
|
4175
|
+
"name": "verbose",
|
|
3681
4176
|
"allowNo": false,
|
|
3682
4177
|
"type": "boolean"
|
|
4178
|
+
},
|
|
4179
|
+
"workspace": {
|
|
4180
|
+
"description": "The name of the workspace to deploy a schema for",
|
|
4181
|
+
"name": "workspace",
|
|
4182
|
+
"hasDynamicHelp": false,
|
|
4183
|
+
"helpValue": "<name>",
|
|
4184
|
+
"multiple": false,
|
|
4185
|
+
"type": "option"
|
|
3683
4186
|
}
|
|
3684
4187
|
},
|
|
3685
4188
|
"hasDynamicHelp": false,
|
|
3686
4189
|
"hiddenAliases": [],
|
|
3687
|
-
"id": "
|
|
4190
|
+
"id": "schema:deploy",
|
|
3688
4191
|
"pluginAlias": "@sanity/cli",
|
|
3689
4192
|
"pluginName": "@sanity/cli",
|
|
3690
4193
|
"pluginType": "core",
|
|
@@ -3693,35 +4196,77 @@
|
|
|
3693
4196
|
"relativePath": [
|
|
3694
4197
|
"dist",
|
|
3695
4198
|
"commands",
|
|
3696
|
-
"
|
|
3697
|
-
"
|
|
4199
|
+
"schema",
|
|
4200
|
+
"deploy.js"
|
|
3698
4201
|
]
|
|
3699
4202
|
},
|
|
3700
|
-
"
|
|
4203
|
+
"schema:extract": {
|
|
3701
4204
|
"aliases": [],
|
|
3702
4205
|
"args": {},
|
|
3703
|
-
"description": "
|
|
4206
|
+
"description": "Extracts a JSON representation of a Sanity schema within a Studio context.\n\n**Note**: This command is experimental and subject to change.",
|
|
3704
4207
|
"examples": [
|
|
3705
4208
|
{
|
|
3706
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3707
|
-
"description": "
|
|
4209
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
4210
|
+
"description": "Extracts schema types in a Sanity project with more than one workspace"
|
|
3708
4211
|
},
|
|
3709
4212
|
{
|
|
3710
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3711
|
-
"description": "
|
|
4213
|
+
"command": "<%= config.bin %> <%= command.id %> --watch",
|
|
4214
|
+
"description": "Watch mode - re-extract on changes"
|
|
4215
|
+
},
|
|
4216
|
+
{
|
|
4217
|
+
"command": "<%= config.bin %> <%= command.id %> --watch --watch-patterns \"lib/**/*.ts\"",
|
|
4218
|
+
"description": "Watch with custom glob patterns"
|
|
3712
4219
|
}
|
|
3713
4220
|
],
|
|
3714
4221
|
"flags": {
|
|
3715
|
-
"
|
|
3716
|
-
"description": "
|
|
3717
|
-
"name": "
|
|
4222
|
+
"enforce-required-fields": {
|
|
4223
|
+
"description": "Makes the schema generated treat fields marked as required as non-optional",
|
|
4224
|
+
"name": "enforce-required-fields",
|
|
4225
|
+
"allowNo": false,
|
|
4226
|
+
"type": "boolean"
|
|
4227
|
+
},
|
|
4228
|
+
"format": {
|
|
4229
|
+
"description": "Format the schema as GROQ type nodes. Only available format at the moment.",
|
|
4230
|
+
"name": "format",
|
|
4231
|
+
"default": "groq-type-nodes",
|
|
4232
|
+
"hasDynamicHelp": false,
|
|
4233
|
+
"helpValue": "<format>",
|
|
4234
|
+
"multiple": false,
|
|
4235
|
+
"type": "option"
|
|
4236
|
+
},
|
|
4237
|
+
"path": {
|
|
4238
|
+
"description": "Optional path to specify destination of the schema file",
|
|
4239
|
+
"name": "path",
|
|
4240
|
+
"hasDynamicHelp": false,
|
|
4241
|
+
"multiple": false,
|
|
4242
|
+
"type": "option"
|
|
4243
|
+
},
|
|
4244
|
+
"watch": {
|
|
4245
|
+
"description": "Enable watch mode to re-extract schema on file changes",
|
|
4246
|
+
"name": "watch",
|
|
3718
4247
|
"allowNo": false,
|
|
3719
4248
|
"type": "boolean"
|
|
4249
|
+
},
|
|
4250
|
+
"watch-patterns": {
|
|
4251
|
+
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
4252
|
+
"name": "watch-patterns",
|
|
4253
|
+
"hasDynamicHelp": false,
|
|
4254
|
+
"helpValue": "<glob>",
|
|
4255
|
+
"multiple": true,
|
|
4256
|
+
"type": "option"
|
|
4257
|
+
},
|
|
4258
|
+
"workspace": {
|
|
4259
|
+
"description": "The name of the workspace to generate a schema for",
|
|
4260
|
+
"name": "workspace",
|
|
4261
|
+
"hasDynamicHelp": false,
|
|
4262
|
+
"helpValue": "<name>",
|
|
4263
|
+
"multiple": false,
|
|
4264
|
+
"type": "option"
|
|
3720
4265
|
}
|
|
3721
4266
|
},
|
|
3722
4267
|
"hasDynamicHelp": false,
|
|
3723
4268
|
"hiddenAliases": [],
|
|
3724
|
-
"id": "
|
|
4269
|
+
"id": "schema:extract",
|
|
3725
4270
|
"pluginAlias": "@sanity/cli",
|
|
3726
4271
|
"pluginName": "@sanity/cli",
|
|
3727
4272
|
"pluginType": "core",
|
|
@@ -3730,47 +4275,68 @@
|
|
|
3730
4275
|
"relativePath": [
|
|
3731
4276
|
"dist",
|
|
3732
4277
|
"commands",
|
|
3733
|
-
"
|
|
3734
|
-
"
|
|
4278
|
+
"schema",
|
|
4279
|
+
"extract.js"
|
|
3735
4280
|
]
|
|
3736
4281
|
},
|
|
3737
|
-
"
|
|
4282
|
+
"schema:list": {
|
|
3738
4283
|
"aliases": [],
|
|
3739
|
-
"args": {
|
|
3740
|
-
|
|
3741
|
-
"description": "Email address to invite",
|
|
3742
|
-
"name": "email",
|
|
3743
|
-
"required": false
|
|
3744
|
-
}
|
|
3745
|
-
},
|
|
3746
|
-
"description": "Invite a new user to the project",
|
|
4284
|
+
"args": {},
|
|
4285
|
+
"description": "Lists all schemas in the current dataset.\n\n**Note**: This command is experimental and subject to change.\n\nThis operation (re-)generates a manifest file describing the sanity config workspace by default.\nTo re-use an existing manifest file, use --no-extract-manifest.",
|
|
3747
4286
|
"examples": [
|
|
3748
4287
|
{
|
|
3749
4288
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3750
|
-
"description": "
|
|
4289
|
+
"description": "List all schemas found in any workspace dataset in a table"
|
|
3751
4290
|
},
|
|
3752
4291
|
{
|
|
3753
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3754
|
-
"description": "
|
|
4292
|
+
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
4293
|
+
"description": "Get a schema for a given id"
|
|
3755
4294
|
},
|
|
3756
4295
|
{
|
|
3757
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3758
|
-
"description": "
|
|
4296
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4297
|
+
"description": "Get stored schemas as pretty-printed json-array"
|
|
4298
|
+
},
|
|
4299
|
+
{
|
|
4300
|
+
"command": "<%= config.bin %> <%= command.id %> --json --id _.schemas.workspaceName",
|
|
4301
|
+
"description": "Get singular stored schema as pretty-printed json-object"
|
|
3759
4302
|
}
|
|
3760
4303
|
],
|
|
3761
4304
|
"flags": {
|
|
3762
|
-
"
|
|
3763
|
-
"description": "
|
|
3764
|
-
"
|
|
3765
|
-
"
|
|
4305
|
+
"extract-manifest": {
|
|
4306
|
+
"description": "Disables manifest generation - the command will fail if no manifest exists",
|
|
4307
|
+
"hidden": true,
|
|
4308
|
+
"name": "extract-manifest",
|
|
4309
|
+
"allowNo": true,
|
|
4310
|
+
"type": "boolean"
|
|
4311
|
+
},
|
|
4312
|
+
"id": {
|
|
4313
|
+
"description": "Fetch a single schema by id",
|
|
4314
|
+
"name": "id",
|
|
4315
|
+
"hasDynamicHelp": false,
|
|
4316
|
+
"helpValue": "<schema_id>",
|
|
4317
|
+
"multiple": false,
|
|
4318
|
+
"type": "option"
|
|
4319
|
+
},
|
|
4320
|
+
"json": {
|
|
4321
|
+
"description": "Get schema as json",
|
|
4322
|
+
"name": "json",
|
|
4323
|
+
"allowNo": false,
|
|
4324
|
+
"type": "boolean"
|
|
4325
|
+
},
|
|
4326
|
+
"manifest-dir": {
|
|
4327
|
+
"description": "Directory containing manifest file",
|
|
4328
|
+
"hidden": true,
|
|
4329
|
+
"name": "manifest-dir",
|
|
4330
|
+
"default": "./dist/static",
|
|
3766
4331
|
"hasDynamicHelp": false,
|
|
4332
|
+
"helpValue": "<directory>",
|
|
3767
4333
|
"multiple": false,
|
|
3768
4334
|
"type": "option"
|
|
3769
4335
|
}
|
|
3770
4336
|
},
|
|
3771
4337
|
"hasDynamicHelp": false,
|
|
3772
4338
|
"hiddenAliases": [],
|
|
3773
|
-
"id": "
|
|
4339
|
+
"id": "schema:list",
|
|
3774
4340
|
"pluginAlias": "@sanity/cli",
|
|
3775
4341
|
"pluginName": "@sanity/cli",
|
|
3776
4342
|
"pluginType": "core",
|
|
@@ -3779,71 +4345,77 @@
|
|
|
3779
4345
|
"relativePath": [
|
|
3780
4346
|
"dist",
|
|
3781
4347
|
"commands",
|
|
3782
|
-
"
|
|
3783
|
-
"
|
|
4348
|
+
"schema",
|
|
4349
|
+
"list.js"
|
|
3784
4350
|
]
|
|
3785
4351
|
},
|
|
3786
|
-
"
|
|
4352
|
+
"schema:validate": {
|
|
3787
4353
|
"aliases": [],
|
|
3788
4354
|
"args": {},
|
|
3789
|
-
"description": "
|
|
4355
|
+
"description": "Validates all schema types specified in a workspace",
|
|
3790
4356
|
"examples": [
|
|
3791
4357
|
{
|
|
3792
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3793
|
-
"description": "
|
|
4358
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
4359
|
+
"description": "Validates all schema types in a Sanity project with more than one workspace"
|
|
3794
4360
|
},
|
|
3795
4361
|
{
|
|
3796
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3797
|
-
"description": "
|
|
4362
|
+
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
4363
|
+
"description": "Save the results of the report into a file"
|
|
3798
4364
|
},
|
|
3799
4365
|
{
|
|
3800
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3801
|
-
"description": "
|
|
4366
|
+
"command": "<%= config.bin %> <%= command.id %> --level error",
|
|
4367
|
+
"description": "Report out only errors"
|
|
4368
|
+
},
|
|
4369
|
+
{
|
|
4370
|
+
"command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
|
|
4371
|
+
"description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
|
|
3802
4372
|
}
|
|
3803
4373
|
],
|
|
3804
4374
|
"flags": {
|
|
3805
|
-
"
|
|
3806
|
-
"description": "
|
|
3807
|
-
"
|
|
3808
|
-
"
|
|
3809
|
-
"
|
|
4375
|
+
"debug-metafile-path": {
|
|
4376
|
+
"description": "Optional path where a metafile will be written for build analysis. Only written on successful validation. Can be analyzed at https://esbuild.github.io/analyze/",
|
|
4377
|
+
"helpGroup": "DEBUG",
|
|
4378
|
+
"name": "debug-metafile-path",
|
|
4379
|
+
"hasDynamicHelp": false,
|
|
4380
|
+
"multiple": false,
|
|
4381
|
+
"type": "option"
|
|
3810
4382
|
},
|
|
3811
|
-
"
|
|
3812
|
-
"description": "
|
|
3813
|
-
"name": "
|
|
3814
|
-
"default": "
|
|
4383
|
+
"format": {
|
|
4384
|
+
"description": "The output format used to print schema errors and warnings",
|
|
4385
|
+
"name": "format",
|
|
4386
|
+
"default": "pretty",
|
|
3815
4387
|
"hasDynamicHelp": false,
|
|
3816
4388
|
"multiple": false,
|
|
3817
4389
|
"options": [
|
|
3818
|
-
"
|
|
3819
|
-
"
|
|
4390
|
+
"pretty",
|
|
4391
|
+
"ndjson",
|
|
4392
|
+
"json"
|
|
3820
4393
|
],
|
|
3821
4394
|
"type": "option"
|
|
3822
4395
|
},
|
|
3823
|
-
"
|
|
3824
|
-
"description": "
|
|
3825
|
-
"name": "
|
|
3826
|
-
"
|
|
3827
|
-
"type": "boolean"
|
|
3828
|
-
},
|
|
3829
|
-
"sort": {
|
|
3830
|
-
"description": "Sort users by specified column",
|
|
3831
|
-
"name": "sort",
|
|
3832
|
-
"default": "date",
|
|
4396
|
+
"level": {
|
|
4397
|
+
"description": "The minimum level reported out",
|
|
4398
|
+
"name": "level",
|
|
4399
|
+
"default": "warning",
|
|
3833
4400
|
"hasDynamicHelp": false,
|
|
3834
4401
|
"multiple": false,
|
|
3835
4402
|
"options": [
|
|
3836
|
-
"
|
|
3837
|
-
"
|
|
3838
|
-
"role",
|
|
3839
|
-
"date"
|
|
4403
|
+
"error",
|
|
4404
|
+
"warning"
|
|
3840
4405
|
],
|
|
3841
4406
|
"type": "option"
|
|
4407
|
+
},
|
|
4408
|
+
"workspace": {
|
|
4409
|
+
"description": "The name of the workspace to use when validating all schema types",
|
|
4410
|
+
"name": "workspace",
|
|
4411
|
+
"hasDynamicHelp": false,
|
|
4412
|
+
"multiple": false,
|
|
4413
|
+
"type": "option"
|
|
3842
4414
|
}
|
|
3843
4415
|
},
|
|
3844
4416
|
"hasDynamicHelp": false,
|
|
3845
4417
|
"hiddenAliases": [],
|
|
3846
|
-
"id": "
|
|
4418
|
+
"id": "schema:validate",
|
|
3847
4419
|
"pluginAlias": "@sanity/cli",
|
|
3848
4420
|
"pluginName": "@sanity/cli",
|
|
3849
4421
|
"pluginType": "core",
|
|
@@ -3852,8 +4424,8 @@
|
|
|
3852
4424
|
"relativePath": [
|
|
3853
4425
|
"dist",
|
|
3854
4426
|
"commands",
|
|
3855
|
-
"
|
|
3856
|
-
"
|
|
4427
|
+
"schema",
|
|
4428
|
+
"validate.js"
|
|
3857
4429
|
]
|
|
3858
4430
|
},
|
|
3859
4431
|
"dataset:alias:create": {
|
|
@@ -3872,6 +4444,10 @@
|
|
|
3872
4444
|
},
|
|
3873
4445
|
"description": "Create a dataset alias within your project",
|
|
3874
4446
|
"examples": [
|
|
4447
|
+
{
|
|
4448
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
|
|
4449
|
+
"description": "Create alias in a specific project"
|
|
4450
|
+
},
|
|
3875
4451
|
{
|
|
3876
4452
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3877
4453
|
"description": "Create an alias with interactive prompts"
|
|
@@ -3889,7 +4465,18 @@
|
|
|
3889
4465
|
"description": "Create alias with explicit ~ prefix"
|
|
3890
4466
|
}
|
|
3891
4467
|
],
|
|
3892
|
-
"flags": {
|
|
4468
|
+
"flags": {
|
|
4469
|
+
"project-id": {
|
|
4470
|
+
"char": "p",
|
|
4471
|
+
"description": "Project ID to create dataset alias in (overrides CLI configuration)",
|
|
4472
|
+
"helpGroup": "OVERRIDE",
|
|
4473
|
+
"name": "project-id",
|
|
4474
|
+
"hasDynamicHelp": false,
|
|
4475
|
+
"helpValue": "<id>",
|
|
4476
|
+
"multiple": false,
|
|
4477
|
+
"type": "option"
|
|
4478
|
+
}
|
|
4479
|
+
},
|
|
3893
4480
|
"hasDynamicHelp": false,
|
|
3894
4481
|
"hiddenAliases": [],
|
|
3895
4482
|
"id": "dataset:alias:create",
|
|
@@ -3931,6 +4518,16 @@
|
|
|
3931
4518
|
}
|
|
3932
4519
|
],
|
|
3933
4520
|
"flags": {
|
|
4521
|
+
"project-id": {
|
|
4522
|
+
"char": "p",
|
|
4523
|
+
"description": "Project ID to delete dataset alias from (overrides CLI configuration)",
|
|
4524
|
+
"helpGroup": "OVERRIDE",
|
|
4525
|
+
"name": "project-id",
|
|
4526
|
+
"hasDynamicHelp": false,
|
|
4527
|
+
"helpValue": "<id>",
|
|
4528
|
+
"multiple": false,
|
|
4529
|
+
"type": "option"
|
|
4530
|
+
},
|
|
3934
4531
|
"force": {
|
|
3935
4532
|
"description": "Skip confirmation prompt and delete immediately",
|
|
3936
4533
|
"name": "force",
|
|
@@ -3993,6 +4590,16 @@
|
|
|
3993
4590
|
}
|
|
3994
4591
|
],
|
|
3995
4592
|
"flags": {
|
|
4593
|
+
"project-id": {
|
|
4594
|
+
"char": "p",
|
|
4595
|
+
"description": "Project ID to link dataset alias in (overrides CLI configuration)",
|
|
4596
|
+
"helpGroup": "OVERRIDE",
|
|
4597
|
+
"name": "project-id",
|
|
4598
|
+
"hasDynamicHelp": false,
|
|
4599
|
+
"helpValue": "<id>",
|
|
4600
|
+
"multiple": false,
|
|
4601
|
+
"type": "option"
|
|
4602
|
+
},
|
|
3996
4603
|
"force": {
|
|
3997
4604
|
"description": "Skip confirmation prompt when relinking existing alias",
|
|
3998
4605
|
"name": "force",
|
|
@@ -4046,6 +4653,16 @@
|
|
|
4046
4653
|
}
|
|
4047
4654
|
],
|
|
4048
4655
|
"flags": {
|
|
4656
|
+
"project-id": {
|
|
4657
|
+
"char": "p",
|
|
4658
|
+
"description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
|
|
4659
|
+
"helpGroup": "OVERRIDE",
|
|
4660
|
+
"name": "project-id",
|
|
4661
|
+
"hasDynamicHelp": false,
|
|
4662
|
+
"helpValue": "<id>",
|
|
4663
|
+
"multiple": false,
|
|
4664
|
+
"type": "option"
|
|
4665
|
+
},
|
|
4049
4666
|
"force": {
|
|
4050
4667
|
"description": "Skip confirmation prompt and unlink immediately",
|
|
4051
4668
|
"name": "force",
|
|
@@ -4070,6 +4687,160 @@
|
|
|
4070
4687
|
"unlink.js"
|
|
4071
4688
|
]
|
|
4072
4689
|
},
|
|
4690
|
+
"dataset:embeddings:disable": {
|
|
4691
|
+
"aliases": [],
|
|
4692
|
+
"args": {
|
|
4693
|
+
"dataset": {
|
|
4694
|
+
"description": "Dataset name to disable embeddings for",
|
|
4695
|
+
"name": "dataset",
|
|
4696
|
+
"required": false
|
|
4697
|
+
}
|
|
4698
|
+
},
|
|
4699
|
+
"description": "Disable embeddings for a dataset",
|
|
4700
|
+
"examples": [
|
|
4701
|
+
{
|
|
4702
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4703
|
+
"description": "Disable embeddings for the production dataset"
|
|
4704
|
+
}
|
|
4705
|
+
],
|
|
4706
|
+
"flags": {
|
|
4707
|
+
"project-id": {
|
|
4708
|
+
"char": "p",
|
|
4709
|
+
"description": "Project ID to disable embeddings for (overrides CLI configuration)",
|
|
4710
|
+
"helpGroup": "OVERRIDE",
|
|
4711
|
+
"name": "project-id",
|
|
4712
|
+
"hasDynamicHelp": false,
|
|
4713
|
+
"helpValue": "<id>",
|
|
4714
|
+
"multiple": false,
|
|
4715
|
+
"type": "option"
|
|
4716
|
+
}
|
|
4717
|
+
},
|
|
4718
|
+
"hasDynamicHelp": false,
|
|
4719
|
+
"hiddenAliases": [],
|
|
4720
|
+
"id": "dataset:embeddings:disable",
|
|
4721
|
+
"pluginAlias": "@sanity/cli",
|
|
4722
|
+
"pluginName": "@sanity/cli",
|
|
4723
|
+
"pluginType": "core",
|
|
4724
|
+
"strict": true,
|
|
4725
|
+
"isESM": true,
|
|
4726
|
+
"relativePath": [
|
|
4727
|
+
"dist",
|
|
4728
|
+
"commands",
|
|
4729
|
+
"dataset",
|
|
4730
|
+
"embeddings",
|
|
4731
|
+
"disable.js"
|
|
4732
|
+
]
|
|
4733
|
+
},
|
|
4734
|
+
"dataset:embeddings:enable": {
|
|
4735
|
+
"aliases": [],
|
|
4736
|
+
"args": {
|
|
4737
|
+
"dataset": {
|
|
4738
|
+
"description": "Dataset name to enable embeddings for",
|
|
4739
|
+
"name": "dataset",
|
|
4740
|
+
"required": false
|
|
4741
|
+
}
|
|
4742
|
+
},
|
|
4743
|
+
"description": "Enable embeddings for a dataset",
|
|
4744
|
+
"examples": [
|
|
4745
|
+
{
|
|
4746
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4747
|
+
"description": "Enable embeddings for the production dataset"
|
|
4748
|
+
},
|
|
4749
|
+
{
|
|
4750
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
4751
|
+
"description": "Enable embeddings with a specific projection"
|
|
4752
|
+
},
|
|
4753
|
+
{
|
|
4754
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
4755
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
4756
|
+
}
|
|
4757
|
+
],
|
|
4758
|
+
"flags": {
|
|
4759
|
+
"project-id": {
|
|
4760
|
+
"char": "p",
|
|
4761
|
+
"description": "Project ID to enable embeddings for (overrides CLI configuration)",
|
|
4762
|
+
"helpGroup": "OVERRIDE",
|
|
4763
|
+
"name": "project-id",
|
|
4764
|
+
"hasDynamicHelp": false,
|
|
4765
|
+
"helpValue": "<id>",
|
|
4766
|
+
"multiple": false,
|
|
4767
|
+
"type": "option"
|
|
4768
|
+
},
|
|
4769
|
+
"projection": {
|
|
4770
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
4771
|
+
"name": "projection",
|
|
4772
|
+
"required": false,
|
|
4773
|
+
"hasDynamicHelp": false,
|
|
4774
|
+
"multiple": false,
|
|
4775
|
+
"type": "option"
|
|
4776
|
+
},
|
|
4777
|
+
"wait": {
|
|
4778
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
4779
|
+
"name": "wait",
|
|
4780
|
+
"allowNo": false,
|
|
4781
|
+
"type": "boolean"
|
|
4782
|
+
}
|
|
4783
|
+
},
|
|
4784
|
+
"hasDynamicHelp": false,
|
|
4785
|
+
"hiddenAliases": [],
|
|
4786
|
+
"id": "dataset:embeddings:enable",
|
|
4787
|
+
"pluginAlias": "@sanity/cli",
|
|
4788
|
+
"pluginName": "@sanity/cli",
|
|
4789
|
+
"pluginType": "core",
|
|
4790
|
+
"strict": true,
|
|
4791
|
+
"isESM": true,
|
|
4792
|
+
"relativePath": [
|
|
4793
|
+
"dist",
|
|
4794
|
+
"commands",
|
|
4795
|
+
"dataset",
|
|
4796
|
+
"embeddings",
|
|
4797
|
+
"enable.js"
|
|
4798
|
+
]
|
|
4799
|
+
},
|
|
4800
|
+
"dataset:embeddings:status": {
|
|
4801
|
+
"aliases": [],
|
|
4802
|
+
"args": {
|
|
4803
|
+
"dataset": {
|
|
4804
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
4805
|
+
"name": "dataset",
|
|
4806
|
+
"required": false
|
|
4807
|
+
}
|
|
4808
|
+
},
|
|
4809
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
4810
|
+
"examples": [
|
|
4811
|
+
{
|
|
4812
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4813
|
+
"description": "Show embeddings status for the production dataset"
|
|
4814
|
+
}
|
|
4815
|
+
],
|
|
4816
|
+
"flags": {
|
|
4817
|
+
"project-id": {
|
|
4818
|
+
"char": "p",
|
|
4819
|
+
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
4820
|
+
"helpGroup": "OVERRIDE",
|
|
4821
|
+
"name": "project-id",
|
|
4822
|
+
"hasDynamicHelp": false,
|
|
4823
|
+
"helpValue": "<id>",
|
|
4824
|
+
"multiple": false,
|
|
4825
|
+
"type": "option"
|
|
4826
|
+
}
|
|
4827
|
+
},
|
|
4828
|
+
"hasDynamicHelp": false,
|
|
4829
|
+
"hiddenAliases": [],
|
|
4830
|
+
"id": "dataset:embeddings:status",
|
|
4831
|
+
"pluginAlias": "@sanity/cli",
|
|
4832
|
+
"pluginName": "@sanity/cli",
|
|
4833
|
+
"pluginType": "core",
|
|
4834
|
+
"strict": true,
|
|
4835
|
+
"isESM": true,
|
|
4836
|
+
"relativePath": [
|
|
4837
|
+
"dist",
|
|
4838
|
+
"commands",
|
|
4839
|
+
"dataset",
|
|
4840
|
+
"embeddings",
|
|
4841
|
+
"status.js"
|
|
4842
|
+
]
|
|
4843
|
+
},
|
|
4073
4844
|
"dataset:visibility:get": {
|
|
4074
4845
|
"aliases": [],
|
|
4075
4846
|
"args": {
|
|
@@ -4086,7 +4857,18 @@
|
|
|
4086
4857
|
"description": "Check the visibility of a dataset"
|
|
4087
4858
|
}
|
|
4088
4859
|
],
|
|
4089
|
-
"flags": {
|
|
4860
|
+
"flags": {
|
|
4861
|
+
"project-id": {
|
|
4862
|
+
"char": "p",
|
|
4863
|
+
"description": "Project ID to get dataset visibility for (overrides CLI configuration)",
|
|
4864
|
+
"helpGroup": "OVERRIDE",
|
|
4865
|
+
"name": "project-id",
|
|
4866
|
+
"hasDynamicHelp": false,
|
|
4867
|
+
"helpValue": "<id>",
|
|
4868
|
+
"multiple": false,
|
|
4869
|
+
"type": "option"
|
|
4870
|
+
}
|
|
4871
|
+
},
|
|
4090
4872
|
"hasDynamicHelp": false,
|
|
4091
4873
|
"hiddenAliases": [],
|
|
4092
4874
|
"id": "dataset:visibility:get",
|
|
@@ -4132,7 +4914,18 @@
|
|
|
4132
4914
|
"description": "Make a dataset public"
|
|
4133
4915
|
}
|
|
4134
4916
|
],
|
|
4135
|
-
"flags": {
|
|
4917
|
+
"flags": {
|
|
4918
|
+
"project-id": {
|
|
4919
|
+
"char": "p",
|
|
4920
|
+
"description": "Project ID to set dataset visibility for (overrides CLI configuration)",
|
|
4921
|
+
"helpGroup": "OVERRIDE",
|
|
4922
|
+
"name": "project-id",
|
|
4923
|
+
"hasDynamicHelp": false,
|
|
4924
|
+
"helpValue": "<id>",
|
|
4925
|
+
"multiple": false,
|
|
4926
|
+
"type": "option"
|
|
4927
|
+
}
|
|
4928
|
+
},
|
|
4136
4929
|
"hasDynamicHelp": false,
|
|
4137
4930
|
"hiddenAliases": [],
|
|
4138
4931
|
"id": "dataset:visibility:set",
|
|
@@ -4150,5 +4943,5 @@
|
|
|
4150
4943
|
]
|
|
4151
4944
|
}
|
|
4152
4945
|
},
|
|
4153
|
-
"version": "6.
|
|
4946
|
+
"version": "6.1.0"
|
|
4154
4947
|
}
|