/apify-actor-toolkit:actor-deployfrom apify-actor-toolkit
Verifies a clean build, runs tests and type checks, then deploys an Actor to the Apify cloud via apify push.
Ships in apify-actor-toolkit. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Perform a clean-state build verification and deploy the Actor to Apify cloud with apify push.
Verify Apify CLI is authenticated:
apify whoami 2>&1 || echo "Not logged in — run: apify login"
Remove all build artifacts and reinstall from scratch to ensure reproducibility:
rm -rf node_modules dist
npm ci
npm run build
ls dist/
The dist/ directory MUST contain compiled .js files. If empty, the Actor will fail on Apify cloud.
npm test
All tests must pass before deploying.
npx tsc --noEmit
Check that required files exist:
ls .actor/actor.json .actor/input_schema.json .actor/Dockerfile
apify push
Actor Deploy Results:
Clean Install: ✅
Build: ✅ (dist/ has N files)
Tests: ✅ (N/N passed)
Type Check: ✅
Actor Config: ✅
Deploy: ✅ Pushed to Apify cloud
Actor URL: https://console.apify.com/actors/<actor-id>
| Step Failed | Action |
|---|---|
| Clean install | Check package.json and package-lock.json are in sync |
| Build | Check tsconfig.json: importHelpers: false, incremental: false |
| Tests | Fix failing tests before deploying |
| Type check | Fix TypeScript errors |
| Deploy | Check apify login, verify .actor/actor.json is valid |
rm -rf node_modules dist && npm ci) before deploying — incremental builds can mask issuesapify/actor-node:22 — ensure your code works with Node 22.actorignore excludes test files, docs, and dev-only files7-day visitors to each command page
3 commands in this plugin
npx claudepluginhub organized-ai/plugin-marketplace --plugin apify-actor-toolkit