cli-commands
它能做什么
这个技能说明 Windmill 的 wmill 命令行工具,包括它的选项,以及用于列出、推送和检查资源的命令。适合在终端中使用 Windmill 的开发者。
适用场景
- ✓当你需要在终端中推送、列出或检查脚本、流程或应用时。
- ✓当你想用作业命令调试失败的作业,或查看运行历史时。
- ✓当你需要为 wmill 命令选择工作区或 API 令牌时。
技能链接
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/cli-commands/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请告诉我如何通过命令行把我本地的 Windmill 应用推送到工作区。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能列出 wmill 命令及其选项,因此你的智能体可以挑选正确的命令,并为你运行它。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Windmill CLI Commands
The Windmill CLI (wmill) provides commands for managing scripts, flows, apps, and other resources.
Global Options
--workspace <workspace:string>- Specify the target workspace. This overrides the default workspace.--debug --verbose- Show debug/verbose logs--show-diffs- Show diff informations when syncing (may show sensitive informations)--token <token:string>- Specify an API token. This will override any stored token.--base-url <baseUrl:string>- Specify the base URL of the API. If used, --token and --workspace are required and no local remote/workspace already set will be used.--config-dir <configDir:string>- Specify a custom config directory. Overrides WMILL_CONFIG_DIR environment variable and default ~/.config location.
Commands
app
app related commands
Options:
--json- Output as JSON (for piping to jq)
Subcommands:
app list- list all apps--json- Output as JSON (for piping to jq)
app get <path:string>- get an app's details--json- Output as JSON (for piping to jq)
app push [file_path:string] [remote_path:string]- push a local app. With no args, infers the app from the current directory and the remote path from its location relative to wmill.yaml.app dev [app_folder:string]- Start a development server for building apps with live reload and hot module replacement--port <port:number>- Port to run the dev server on (will find next available port if occupied)--host <host:string>- Host to bind the dev server to--entry <entry:string>- Entry point file (default: index.ts for Svelte, index.tsx otherwise)--no-open- Don't automatically open the browser--recording- Frame the app in a shell with a Record button, to capture a replayable session recording of the app under development
app lint [app_folder:string]- Lint a raw app folder to validate structure and buildability--fix- Attempt to fix common issues (not implemented yet)
app bundle [app_folder:string]- Bundle a raw app folder to js/css without deploying it--out <dir:string>- Directory to write bundle.js and bundle.css into (default: <app_folder>/dist)--no-minify- Skip minification
app new- create a new raw app from a template--summary <summary:string>- App summary (short description). Skips the prompt when provided. Triggers non-interactive mode.--path <path:string>- App path (e.g., f/folder/my_app or u/username/my_app). Skips the prompt when provided. Triggers non-interactive mode.--framework <framework:string>- Framework template: react19 | react18 | svelte5. Skips the prompt when provided. Triggers non-interactive mode.--datatable <datatable:string>- Datatable to wire up. Without this flag in non-interactive mode, no datatable is configured.--schema <schema:string>- Schema to use with --datatable. If it doesn't exist yet, a sql_to_apply/ migration (CREATE SCHEMA IF NOT EXISTS) is written for it.--overwrite- Overwrite the target directory if it already exists, without prompting.--no-open-in-desktop- Do not prompt to open the new app in Claude Desktop.
app generate-agents [app_folder:string]- regenerate AGENTS.md and DATATABLES.md from remote workspaceapp set-permissioned-as <path:string> <email:string>- Set the on_behalf_of_email for an app (requires admin or wm_deployers group)
audit
View audit logs (requires admin)
Subcommands:
audit list- List audit log entriesaudit get <id:string>- Get a specific audit log entry--json- Output as JSON (for piping to jq)
config
Show all available wmill.yaml configuration options
Options:
--json- Output as JSON for programmatic consumption
Subcommands:
config migrate- Migrate wmill.yaml from gitBranches/environments to workspaces format
datatable
datatable related commands
Subcommands:
datatable list- list all datatables in the workspace--json- Output as JSON (for piping to jq)
datatable run <sql:string>- run a SQL query on a datatable-n --name <name:string>- Datatable name (default: main)-s --silent- Output only the final result as JSON. Useful for scripting.
datatable migrate- manage datatable migrationsdatatable migrate new <name:string>- scaffold a new migration (.up.sql / .down.sql files)-d --datatable <datatable:string>- Target datatabl
常见问题
使用它需要懂命令行吗?
不需要太多。你的智能体会挑选正确的命令,并解释它的作用。
它能帮助处理失败的作业吗?
可以。该技能涵盖了用于查看运行历史以便调试的作业命令。
我可以使用其他工作区吗?
可以。工作区选项会覆盖命令的默认工作区。
详情
作者的原始描述
MUST use when using the CLI, including debugging job failures and inspecting run history via `wmill job`.
repo: windmill-labs/windmill
热度
- GitHub 星标
- 18k
- 排名
- #10628
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …