Apps
Listing apps
The wmill app list command is used to list all apps in the remote workspace.
wmill app
Pushing an app
Pushing an app to a Windmill instance is done using the wmill app push command.
wmill app push <file_path>
Arguments
| Argument | Description |
|---|---|
file_path | The path to the app file to push. |
Examples
- Push the app located at
./my_app.json.
wmill app push ./my_app.json
App access mode
A tracked app file states who can open the app: app.yaml for low-code apps, raw_app.yaml for full-code apps.
It can also declare sandbox isolation.
It is a tri-state:
public: true # anonymous: anyone with the URL, no login
guests: true # guest: an identity required, Windmill account not
# neither # publisher: workspace members with read access only
A pull followed by a push round-trips the mode, so an app open to guests stays open to guests through git sync.
Opening an app to guests or to the public can additionally be restricted to workspace admins and bypass users by a protection ruleset, which applies to the CLI as it does to the UI.
App sandbox isolation and frontend API access
A tracked app file can declare sandbox isolation and, in raw_app.yaml only, the frontend API scopes viewers are asked to approve:
sandbox: true
frontend_api: [jobs:run, users:read]
The scopes are jobs:run, jobs:read, users:read, resources:read, variables:read, flow_conversations:read and flow_conversations:write, and frontend_api requires sandbox: true.
With a sandbox key, the file wins on push: sandbox: false turns isolation off, and a missing frontend_api means no scopes.
Without one, an existing app keeps the isolation and scopes it is deployed with, so deleting sandbox: true does not unsandbox an app.
A pull writes both keys when they are on.
Full-code app commands
The CLI provides additional commands for full-code apps:
Create a new full-code app
wmill app new
Interactive wizard to scaffold a full-code app with React, Svelte or Vue.
Start the dev server
From the app directory:
wmill app dev
Starts a local development server with hot reload and WebSocket backend. Options: --port, --host, --entry, --no-open.
Bundle an app without deploying it
wmill app bundle [app_folder] --out <dir>
Runs the same build wmill app push runs, but writes bundle.js and bundle.css to a directory instead of deploying. The folder defaults to the current directory and the output to <app_folder>/dist. Use --no-minify to skip minification.
This is also the build behind the source-deploy API endpoints, so an app deployed from sources through the API is compiled exactly as the CLI and the editor compile it.
Lint an app
wmill app lint [app_folder]
Checks that raw_app.yaml is valid, that the app has backend runnables and that the frontend builds, and exits with code 1 on any error.
Warnings, such as a SQL viewer filter that is not a context field, are printed without failing the command.
Generate lock files
Generate .lock files for backend runnables with dependencies using the wmill generate-metadata command:
wmill generate-metadata
To only update app lockfiles, use:
wmill generate-metadata --skip-scripts --skip-flows
Options: --yes, --dry-run, --default-ts.
Prior to the unified command, this was done with wmill app generate-locks. This command is now deprecated but still works.
Generate agent documentation
From the app directory:
wmill app generate-agents
Generates AGENTS.md and DATATABLES.md for AI coding agent context.
Remote path format
<u|g|f>/<username|group|folder>/...