{
  "id": "apify-cli",
  "name": "Apify CLI",
  "homepage": "https://github.com/apify/apify-cli",
  "description": "Apify CLI is the command-line tool for creating, developing, and deploying Apify Actors, and for managing the Apify cloud platform from your terminal.",
  "executables": [
    "apify",
    "apify-cli"
  ],
  "dotfiles": {
    "paths": [],
    "secret": [
      "~/.apify/"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Apify CLI",
    "description": "Run an Actor on the Apify cloud or locally. Building, pushing, storages and tasks are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "call"
        ],
        "label": "Run an Actor remotely",
        "source": [
          {
            "id": "ref",
            "kind": "manual",
            "url": "https://docs.apify.com/cli/docs/reference",
            "revision": "2026-10",
            "evidence": "apify actors call / apify call\n  $ apify actors call [actorId] [-b <value>]\n                      [-i <value> | -f <value>] [--json] [-m <value>]\n                      [-o] [-s] [-t <value>]\n  actorId  Name or ID of the Actor to run (e.g. \"my-actor\",\n           \"apify/hello-world\" or \"E2jjCZBezvAZnX8Rb\").\n  -b, --build=<value>       Tag or number of the build to\n                            run (e.g. \"latest\" or \"1.2.34\").\n  -i, --input=<value>       Optional inline JSON object\n  -f, --input-file=<value>  Optional path to a file with\n                            JSON input to be given to the Actor.\n      --json                Format the command output as JSON.\n  -m, --memory=<value>      Amount of memory allocated for\n                            the Actor run, in megabytes.\n  -o, --output-dataset      Prints out the entire default\n                            dataset on successful run of the Actor.\n  -s, --silent              Prevents printing the logs of\n                            the Actor run to the console.\n  -t, --timeout=<value>     Timeout for the Actor run in\n                            seconds. Zero value means there is no timeout.\n"
          }
        ],
        "field": [
          {
            "id": "actor_id",
            "label": "Actor",
            "description": "Name or ID, e.g. apify/hello-world. Leave empty to use .actor/actor.json.",
            "type": "string",
            "position": 0,
            "sources": [
              "ref"
            ]
          },
          {
            "id": "build",
            "label": "Build tag or number",
            "type": "string",
            "option": [
              "--build",
              "-b"
            ],
            "suggestions": [
              {
                "value": "latest",
                "label": "latest"
              }
            ],
            "sources": [
              "ref"
            ]
          },
          {
            "id": "input",
            "label": "Inline JSON input",
            "type": "string",
            "option": [
              "--input",
              "-i"
            ],
            "sources": [
              "ref"
            ]
          },
          {
            "id": "input_file",
            "label": "Input JSON file",
            "type": "path",
            "option": [
              "--input-file",
              "-f"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "ref"
            ]
          },
          {
            "id": "memory",
            "label": "Memory (MB)",
            "type": "integer",
            "option": [
              "--memory",
              "-m"
            ],
            "sources": [
              "ref"
            ]
          },
          {
            "id": "timeout",
            "label": "Timeout (seconds)",
            "description": "Zero means no timeout.",
            "type": "integer",
            "option": [
              "--timeout",
              "-t"
            ],
            "sources": [
              "ref"
            ]
          },
          {
            "id": "output_dataset",
            "label": "Print the dataset",
            "type": "boolean",
            "option": [
              "--output-dataset",
              "-o"
            ],
            "sources": [
              "ref"
            ]
          },
          {
            "id": "silent",
            "label": "Silent",
            "type": "boolean",
            "option": [
              "--silent",
              "-s"
            ],
            "sources": [
              "ref"
            ]
          },
          {
            "id": "json",
            "label": "JSON output",
            "type": "boolean",
            "option": [
              "--json"
            ],
            "sources": [
              "ref"
            ]
          }
        ],
        "task": [
          {
            "id": "call",
            "label": "Call an Actor and print results",
            "fields": [
              "actor_id",
              "output_dataset"
            ],
            "required": [
              "actor_id"
            ],
            "set": {
              "output_dataset": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "actor_id",
              "input",
              "input_file",
              "output_dataset"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "build",
              "memory",
              "timeout",
              "silent",
              "json"
            ]
          }
        ]
      },
      {
        "path": [
          "run"
        ],
        "label": "Run the Actor locally",
        "source": [
          {
            "id": "ref",
            "kind": "manual",
            "url": "https://docs.apify.com/cli/docs/reference",
            "revision": "2026-10",
            "evidence": "apify run\n  Executes Actor locally with simulated Apify environment variables.\n  $ apify run [--allow-missing-secrets] [--entrypoint <value>]\n              [-i <value> | --input-file <value>] [-p | --resurrect]\n      --allow-missing-secrets  Allow the command to\n                               continue even when secret values are not found in the\n                               local secrets storage.\n      --entrypoint=<value>     Optional entrypoint for\n                               running with injected environment variables.\n"
          }
        ],
        "field": [
          {
            "id": "allow_missing_secrets",
            "label": "Allow missing secrets",
            "type": "boolean",
            "option": [
              "--allow-missing-secrets"
            ],
            "sources": [
              "ref"
            ]
          },
          {
            "id": "entrypoint",
            "label": "Entrypoint",
            "description": "Python module name or file; Node.js npm script name or JS file.",
            "type": "string",
            "option": [
              "--entrypoint"
            ],
            "sources": [
              "ref"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run locally",
            "fields": [
              "allow_missing_secrets",
              "entrypoint"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "allow_missing_secrets",
              "entrypoint"
            ]
          }
        ]
      }
    ]
  }
}
