@sanity/cli 3.100.0-next.0-836a73ef0e-202507111128 → 4.0.0-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/lib/_chunks-cjs/cli.js +1 -3
- package/lib/_chunks-cjs/cli.js.map +1 -1
- package/package.json +11 -11
package/lib/_chunks-cjs/cli.js
CHANGED
@@ -8094,7 +8094,6 @@ Arguments
|
|
8094
8094
|
Options
|
8095
8095
|
--data <data> Data to send to the function
|
8096
8096
|
--file <file> Read data from file and send to the function
|
8097
|
-
--document-id <id> Document to fetch and send to function
|
8098
8097
|
--timeout <timeout> Execution timeout value in seconds
|
8099
8098
|
--api <version> Sanity API Version to use
|
8100
8099
|
--dataset <dataset> The Sanity dataset to use
|
@@ -8119,7 +8118,7 @@ Examples
|
|
8119
8118
|
name: "test",
|
8120
8119
|
group: "functions",
|
8121
8120
|
helpText: helpText$a,
|
8122
|
-
signature: "<name> [--data <json>] [--file <filename>] [--
|
8121
|
+
signature: "<name> [--data <json>] [--file <filename>] [--timeout <seconds>] [--api <version>] [--dataset <name>] [--project-id] <id>] [--with-user-token]",
|
8123
8122
|
description: "Invoke a local Sanity Function",
|
8124
8123
|
async action(args, context) {
|
8125
8124
|
const { apiClient, output, chalk: chalk2 } = context, [name] = args.argsWithoutOptions, flags = { ...defaultFlags$1, ...args.extOptions }, client2 = apiClient({
|
@@ -8149,7 +8148,6 @@ Examples
|
|
8149
8148
|
flags: {
|
8150
8149
|
data: flags.data,
|
8151
8150
|
file: flags.file,
|
8152
|
-
"document-id": flags["document-id"],
|
8153
8151
|
timeout: flags.timeout,
|
8154
8152
|
api: flags.api,
|
8155
8153
|
dataset: flags.dataset || actualDataset,
|