Cli commands

From windmill-labs/windmill · View interactive version

Cli commands is an AI agent skill from the GitHub repository windmill-labs/windmill. MUST use when using the CLI, including debugging job failures and inspecting run history via `wmill job`.

How to use this skill

Skill file

Windmill CLI Commands

The Windmill CLI (wmill) provides commands for managing scripts, flows, apps, and other resources.

Global Options

Commands

app

app related commands

Options:

Subcommands:

audit

View audit logs (requires admin)

Subcommands:

config

Show all available wmill.yaml configuration options

Options:

Subcommands:

datatable

datatable related commands

Subcommands:

dependencies

workspace dependencies related commands

Alias: deps

Subcommands:

dev

Watch local file changes and live-reload the dev page for preview. Does NOT deploy to the remote workspace — use wmill sync push for that.

Options:

digest

Compute the content digest of local scripts and flows, as the digest and root_digest claims of job OIDC tokens carry it. Run from the root of a sync checkout, pulled after the deployment's dependency jobs completed: they write the lockfiles the digest covers. A flow also lists the digest of each inline step, as <flow path>/<step id>.

Arguments: <paths...:string>

Options:

docs

Search Windmill documentation.

Arguments: <query:string>

Options:

ducklake

ducklake related commands

Subcommands:

flow

flow related commands

Options:

Subcommands:

folder

folder related commands

Options:

Subcommands:

generate-metadata

Regenerate stale local locks and script schemas and refresh wmill-lock.yaml content hashes (scripts, flows, apps). Writes local files only, not a deploy. Run it after edits that add or remove imports or change a script's arguments, so the lock, the auto-generated UI schema, and wmill-lock.yaml stay in sync.

Arguments: [folder:string]

Options:

Subcommands:

gitsync-settings

Manage git-sync settings between local wmill.yaml and Windmill backend

Subcommands:

group

Manage workspace groups

Options:

Subcommands:

hub

Hub related commands. EXPERIMENTAL. INTERNAL USE ONLY.

Subcommands:

init

Bootstrap a windmill project with a wmill.yaml file

Options:

instance

sync local with a remote instance or the opposite (push or pull)

Subcommands:

job

Manage jobs (list, inspect, cancel)

Subcommands:

jobs

Manage jobs (import/export)

Subcommands:

lint

Validate Windmill flow, schedule, and trigger YAML files in a directory (including AI agent tool names and flow groups/notes), and report script metadata that has no deployable content file

Arguments: [directory:string]

Options:

object-storage

Object storage (S3) related commands. Operates on the workspace's default object storage; use --storage to target a configured secondary storage.

Alias: s3

Subcommands:

pipeline

inspect asset-driven pipelines (scripts marked // pipeline, wired by // on <spec> annotations)

Subcommands:

protection-rules

Sync workspace protection rules between protection-rules.yaml and Windmill. The file is keyed by workspace name; keys must match wmill.yaml 'workspaces'.

Subcommands:

queues

List all queues with their metrics

Arguments: [workspace:string] the optional workspace to filter by (default to all workspaces)

Options:

refresh

Refresh wmill-managed project files (AGENTS.wmill.md, skills, tsconfig.wmill.json)

Subcommands:

resource

resource related commands

Options:

Subcommands:

resource-type

resource type related commands

Options:

Subcommands:

review

Review a pull request on a git sync repository with the workspace's AI, the way deployment requests are reviewed. Reads the changes and the base branch's review instructions from git; the instance, workspace and token come from the flags, never from the checkout's wmill.yaml.

Options:

schedule

schedule related commands

Options:

Subcommands:

script

script related commands

Options:

Subcommands:

sync

sync local with a remote workspaces or the opposite (push or pull)

Subcommands:

token

Manage API tokens

Options:

Subcommands:

trash

List, inspect and restore items deleted in the last three days (requires admin)

Options:

Subcommands:

trigger

trigger related commands

Options:

Subcommands:

user

user related commands

Subcommands:

variable

variable related commands

Options:

Subcommands:

version

Show version information

worker-groups

display worker groups, pull and push worker groups configs

Subcommands:

workers

List all workers grouped by worker groups

Options:

workspace

workspace related commands

Alias: profile

Subcommands:

The parent is resolved from your current git branch, not from the active profile: run this from a git repo checked out on the branch mapped to the parent workspace in wmill.yaml's workspaces: section (a fork branch of it resolves to the same parent). wmill workspace switch does not change which workspace is forked.

Arguments (omit both to be prompted interactively):

[workspace_name] Friendly display name for the fork, shown in the UI. May contain spaces, so quote it in the shell (e.g. "My Fork"). Max 50 chars. Defaults to "<parent workspace name>'s fork".

[workspace_id] Id for the fork. Must be a slug (no spaces or special characters) and is automatically prefixed with wm-fork-, so pass just the bare slug (e.g. my-fork becomes wm-fork-my-fork). This id also determines the fork's git branch name. Defaults to a slug derived from the name — or, when you are converting an existing branch into the fork branch, from that branch.

Object Storage CLI

wmill object-storage (alias wmill s3) exposes the workspace's object storage (S3-compatible: AWS S3, MinIO, GCS, R2, Azure Blob) over the per-workspace /job_helpers/* endpoints.

Key concepts (not obvious from per-command --help)

Choosing a subcommand

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.