{
  "$schema": "http://json-schema.org/schema",
  "$id": "NxCloudflareSecret",
  "title": "Manage Cloudflare Worker secrets",
  "description": "Runs `wrangler secret <command>` for a Worker. Secret values are never passed as arguments.",
  "type": "object",
  "properties": {
    "command": {
      "description": "The secret subcommand. Supplied by the target's configuration.",
      "type": "string",
      "enum": ["put", "bulk", "list", "delete"],
      "x-priority": "internal"
    },
    "name": {
      "description": "The secret KEY. Required for `put`/`delete`.",
      "type": "string"
    },
    "file": {
      "description": "Path to a JSON file of secrets. Required for `bulk`.",
      "type": "string"
    },
    "env": {
      "description": "Cloudflare environment (`--env`).",
      "type": "string"
    },
    "versioned": {
      "description": "Run `wrangler versions secret <command>` (stages the change on a new version for gradual deployment) instead of `wrangler secret <command>`. Set by the version-secret target's configuration.",
      "type": "boolean",
      "default": false,
      "x-priority": "internal"
    }
  },
  "required": ["command"]
}
