@sanity/cli 3.98.2-next.0-3c1a30d1f5-202507101528 → 3.98.2-next.0-b9e7fcd9c0-202507101810

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.
@@ -8094,6 +8094,7 @@ 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
8097
8098
  --timeout <timeout> Execution timeout value in seconds
8098
8099
  --api <version> Sanity API Version to use
8099
8100
  --dataset <dataset> The Sanity dataset to use
@@ -8118,7 +8119,7 @@ Examples
8118
8119
  name: "test",
8119
8120
  group: "functions",
8120
8121
  helpText: helpText$a,
8121
- signature: "<name> [--data <json>] [--file <filename>] [--timeout <seconds>] [--api <version>] [--dataset <name>] [--project-id] <id>] [--with-user-token]",
8122
+ signature: "<name> [--data <json>] [--file <filename>] [--document-id <id>] [--timeout <seconds>] [--api <version>] [--dataset <name>] [--project-id] <id>] [--with-user-token]",
8122
8123
  description: "Invoke a local Sanity Function",
8123
8124
  async action(args, context) {
8124
8125
  const { apiClient, output, chalk: chalk2 } = context, [name] = args.argsWithoutOptions, flags = { ...defaultFlags$1, ...args.extOptions }, client2 = apiClient({
@@ -8148,6 +8149,7 @@ Examples
8148
8149
  flags: {
8149
8150
  data: flags.data,
8150
8151
  file: flags.file,
8152
+ "document-id": flags["document-id"],
8151
8153
  timeout: flags.timeout,
8152
8154
  api: flags.api,
8153
8155
  dataset: flags.dataset || actualDataset,