• mnmkng/repl
  • Modified
  • Users 7
  • Runs 818
  • Created by Author's avatarOndra Urban

Develop scripts and tools blazingly fast with this Apify REPL. You no longer need to build your actor with every code change just to test something out. Create a REPL task and hack away. No builds needed. Latest Apify included.

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

# Set API token

# Prepare Actor input
cat > input.json <<'EOF'
  "code": "console.log('Hello version 1!');"

# Run the Actor
curl "$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'