A command-line tool to quickly scaffold Scrapeless actor templates using Golang or Node.js.
- ⚡ Instant project scaffolding
- 🤖 Built-in templates: Golang & Node.js
- 🎯 Interactive CLI like
npm init
- 🔧 Extendable template system
You can quickly install the latest release via our bash install script (Linux/macOS/Windows Git Bash):
bash <(curl -fsSL https://raw.githubusercontent.com/scrapeless-ai/scrapeless-cli/main/install-scrapeless-cli.sh)
This script will:
- Automatically detect your OS and architecture
- Download the latest scrapeless release
- Extract the binary and install it to ~/.local/bin
- Add ~/.local/bin to your PATH if it’s not already set (for Linux/macOS)
- Show instructions on how to add to PATH manually on Windows
go install github.com/scrapeless-ai/scrapeless-cli@latest
Just run:
scrapeless-cli --create
You’ll be guided to:
- Select a template (e.g. start_with_golang, start_with_node)
- Input a project folder name
Useful when you're unsure about flags or want a guided experience.
Fully automate project generation with flags:
scrapeless-cli --tmpl start_with_golang --name my-actor
Creates a folder my-actor using the Golang actor template. Run your actor:
cd my-actor
scrapeless-cli --run
scrapeless-cli --version
Flag | Short | Description |
---|---|---|
--create |
-c |
Launch interactive template selection and naming |
--tmpl |
-t |
Choose a template (start_with_golang , start_with_node ) |
--name |
-n |
Set the project folder name (default: my-actor ) |
--version |
-v |
Print the version number of scrapeless-cli |
--run |
-r |
Quickly launch your actor |
scrapeless-cli --create
# ? Select a template [Use arrows to move, type to filter, ? for more help]
# > start_with_golang
# start_with_node_js
# start_with_ts
# ?Enter the name of the template [? for help] (my-actor)
#
# ? Enter the name of the template my-actor
# Output:
# Template Source: https://github.com/scrapeless-ai/actor-template-go.git
# Template generated in your_work_base\my-actor
cd my-actor
scrapeless-cli --run
# Output:
# Launch my-actor logs...