Windmill CLI

1.688.0 · active · verified Wed Apr 22

The Windmill CLI (`wmill`) is a command-line interface tool designed for direct interaction with Windmill instances, an open-source platform for building and running workflows and internal tools. It provides comprehensive capabilities for managing Windmill workspaces, including adding and switching between them, and syncing resources like scripts and flows. Developers can use `wmill` to run scripts and flows, passing inputs via JSON or files, and stream execution logs directly in the terminal. The CLI supports pushing and pulling entire workspaces or individual resources, with an upcoming default shift to YAML for synchronization. As of version 1.688.0, the package demonstrates a rapid release cadence, with frequent updates incorporating new features and bug fixes, often multiple times per week, indicating active development and continuous improvement. It also offers user management features and shell autocompletion for various shells like Bash, Fish, and Zsh.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to install the Windmill CLI globally, configure a workspace, execute a Windmill script with data inputs, and pull workspace resources locally.

npm install -g windmill-cli

# Add a new workspace configuration (follow interactive prompts)
wmill workspace add

# Example: Running a simple script (replace 'u/your_user/hello_world' with an actual script path)
# Ensure 'hello_world' exists in your Windmill instance.
wmill script run u/your_user/hello_world --data '{"name": "Registry Expert"}'

# Alternatively, pass data from a file:
echo '{"greeting": "Hello from Registry!"}' > script-inputs.json
wmill script run u/your_user/another_script --data @script-inputs.json

# Synchronize and pull all workspace resources to your local directory in YAML format
wmill sync pull --yaml

view raw JSON →