Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Apify CLI

$ apify Official Med Risk
Apify · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Apify CLI (apify) scaffolds web-scraping and automation Actor projects (create, init), tests them locally (apify run), deploys to Apify Cloud (apify push), and queries REST endpoints directly (apify api). Headless APIFY_TOKEN authentication works well, though output formatting varies and --json is not uniform across all commands.

FCRS-1.0 Score
75 /100
Good
Medium Confidence
Zero-Friction Install
brew install apify-cli
CLI vs MCP Decision Hybrid (CLI + MCP)

Use apify CLI for Actor scaffolding, local apify run, and apify push; use Apify MCP or apify api when reading remote datasets.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Supports APIFY_TOKEN headless auth and raw JSON via apify api, though lifecycle commands emit human text and lack a global --json or --dry-run flag.

  • APIFY_TOKEN and apify api JSON responses
  • No global --json across run/push/call
Trust & Safety 18 / 25

Local apify run --purge isolates tests from cloud billing, while apify call and push mutate cloud state and incur compute charges without --dry-run.

  • Local apify run isolation
  • apify call triggers billed cloud runs
Setup & Portability 13 / 15

Installable via npm (apify-cli), npx, and Homebrew (apify-cli) across macOS, Linux, and Windows.

  • npm apify-cli and Homebrew formula
Utility & Efficiency 12 / 15

Covers local Actor testing, monorepo push, remote call, and raw REST apify api requests.

  • Includes create, run, push, pull, call, and api
Maintenance & Lineage 8 / 10

Official Apify repository (apify/apify-cli) actively maintained under Apache-2.0.

  • Official apify/apify-cli repository
Docs & Verifiability 6 / 10

Official docs at docs.apify.com/cli and apify help, though subcommand flag docs vary.

  • Official docs at docs.apify.com/cli

Security, Auth & Guardrails

Auth Modes
Env API Key OAuth Browser Config File
Credential Storage

Authenticates via APIFY_TOKEN environment variable or stores credentials locally under ~/.apify/ via apify login.

Side Effects
Read-Only Local Write Remote Write Billing Impact
Cost & Quotas

Apache-2.0 open-source CLI; Apify Cloud includes a free monthly credit tier with usage-based compute billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Apify CLI Agent Rules
- Authenticate with `APIFY_TOKEN` and prefer `apify run --purge` locally before `apify push` or `apify call`.
- Remember `apify call` incurs Apify Cloud compute units; verify Actor input payloads first.

Agent-Ready Command Recipes

Safe Read-Only Queries

Query Apify REST endpoints directly
apify api -X GET /v2/acts

Fetches your account's Apify Actors via the authenticated REST API in JSON.

Discover available Apify API endpoints
apify api --list-endpoints

Lists available REST endpoints supported by apify api without mutating cloud state.

Controlled Writes & Previews

Run an Actor locally with clean storage
apify run --purge

Executes the current Actor project locally after resetting local dataset/KV storage.

Strengths for Agents

  • + Local apify run --purge lets agents verify Actor behavior before cloud deployment.
  • + Includes apify api --list-endpoints for direct authenticated JSON REST queries.

Caveats & Pitfalls

  • ! No global --json or --dry-run flag on create, push, or call.
  • ! apify call executes remote Actors and consumes Apify Cloud compute units.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI