CLI command reference
Syntax and flags generated from the output of wings help.
Applies to
CLI
macOSLinuxWindows
This page is generated from wings help in v1.4.30. Run wings help to check the commands in your installed version. For step-by-step instructions, see The Wings CLI and the guides.
wings help
wings
Usage:
wings version Show version and build information
wings login Log in via AGI Lab OAuth
wings logout Revoke server session and remove stored credentials
wings update [--check] Update this CLI and installed skills from the latest release
wings usage [--days 30] Show compute quota and usage
wings run [flags] [handler-id]
Run JavaScript code or a saved handler
wings run show <handler-id> <run-id>
Show a run's status, error, HTTP status, and result
wings save <run-id> --name "..."
Save a run as a handler
wings connection add <name> --preset slack|cloudflare|freee_oauth|google_oauth
Add an OAuth preset connection
google_oauth without --client-credentials uses AGI Wings's client and needs --scopes from its approved list
Pass --client-credentials <json> to use your own Google OAuth client and any scopes
wings connection add <name> --preset discord|google_sa|webull|x_oauth1
Add a preset connection
For webull, pass --app-key [--region us|hk|jp] and copy app secret
For x_oauth1, copy JSON with api_key, api_key_secret, access_token, access_token_secret
wings connection add <name> --host <hostname> --auth none|bearer|header:<name>
Allow an exact host; none needs no credential or clipboard
Other auth modes read the credential from clipboard
Pass --replace to overwrite an existing non-hosted connection with the same name
wings connection list List connections with their status and account
wings connection reauth <name> [--scopes <scopes>] Authorize a google_oauth connection again
Keeps its name, ID, Handler bindings and OAuth client; asks for the current scopes unless --scopes is given
wings connection rename <old-name> <new-name> Rename a connection
wings connection remove <name> [--yes] Disconnect
wings db create <name> Create a database
wings db list List databases
wings db query <name> "SQL" [--params '[...]'] Query a database
wings db exec <name> "SQL" [--params '[...]'] Execute DDL/DML
wings db delete <name> [--yes] Delete a database
wings handler deploy [flags] Create or update a saved handler
wings handler list List deployed handlers
wings handler logs <id> [--limit N] List recent runs with errors
wings handler secret set <id> <name> [--stdin] Set a handler secret from clipboard or stdin
wings handler secret list <id> List handler secrets
wings handler secret rm <id> <name> [--yes] Remove a handler secret
wings handler rm <id> [--yes] Remove a handler
wings trigger add <handler-id> --schedule "..." [--args '{}' --tz Asia/Tokyo]
wings trigger add-api <handler-id> --slug <api-slug> [--auth bearer|public] [--method GET|POST|PUT|PATCH|DELETE] [--allow-origin <origin>] [--no-open]
wings trigger add-web <handler-id> --slug <app-slug> [--public [--index]] [--yes] [--title <text>] [--description <text>] [--og-image <file>] [--favicon <file>]
wings trigger appearance <handler-id> <trigger-id> [--title <text>] [--description <text>] [--og-image <file>] [--favicon <file>] [--clear-og-image] [--clear-favicon] [--json]
wings trigger access <handler-id> <trigger-id> (--public [--index|--no-index] | --private) [--yes] [--json]
wings trigger list <handler-id>
wings trigger show <handler-id> <trigger-id>
wings trigger url <handler-id> <trigger-id>
wings trigger share <handler-id> <trigger-id> --email <address> [--json]
wings trigger unshare <handler-id> <trigger-id> --email <address> [--json]
wings trigger shares <handler-id> <trigger-id> [--json]
wings trigger enable <handler-id> <trigger-id>
wings trigger disable <handler-id> <trigger-id>
wings trigger rotate-secret <handler-id> <trigger-id> [--no-open]
wings trigger rm <handler-id> <trigger-id> [--yes]
wings page deploy [path|-] --name <page-name> [--title <text>] [--share <email>[,<email>...]] [--no-share] [--public [--index]] [--yes] [--json]
Deploy one HTML page from stdin or a file and share it or make it public
The same --name publishes a new version at the same URL
wings skill install [--target all|claude-code|codex|gemini] [--force] [--yes]
wings skill uninstall [--target all|claude-code|codex|gemini] [--yes]
wings skill status
Handler Deploy Flags:
--name "..." Handler name (required when creating)
--update <handler-id> Update a handler in place
--code "..." Inline JavaScript source
--file path Read JavaScript source from file
--db <name> Bind a database as env.db
--connection <code-name>=<name> Bind a connection by stable ID (repeatable)
--schedule "..." Optional schedule shortcut (creates trigger too)
--args '{}' Optional trigger args (JSON, with --schedule)
--tz "Asia/Tokyo" Trigger timezone (with --schedule; default: this computer's timezone)
Page Deploy Flags:
--name <page-name> Page name in its URL: 3-57 lowercase letters, digits, single hyphens (required)
--title "..." Public preview title (120 characters; empty clears; never read from the HTML)
--share <email>[,<email>...] Share with these addresses (repeatable); exits 1 if any share fails
--no-share Deploy with nobody to share the page with; stops if it is already shared
It does not keep the page private: only you can share it, and anyone
you share it with later, even during the deploy, can open it
--private Deprecated alias of --no-share
--public Let anyone with the URL open the page without signing in (asks to confirm)
Later deploys without --public keep the page public
--index With --public, allow search engines to list the page (asks to confirm)
--yes Confirm --public and --index without asking; needed with --json, when the
HTML comes from stdin, or when stdin is not a terminal
--json Print the result as JSON
path | - Read the HTML from a file; without a path or with -, read stdin
The HTML must be UTF-8 and at most 256 KiB; it is served as given, except
that a custom favicon's link is inserted and a visit from another Web App
first shows a confirmation page unless the page is public
Run flags:
--code "..." Inline JavaScript source
--file path Read JavaScript source from file
--input path Stream a local file up to 1 GiB via env.input()
--db <name> Bind a database as env.db for ad-hoc code
--connection <code-name>=<name> Bind a connection by stable ID (repeatable)
--event '{}' Event object JSON
Schedule formats:
every:5m | every:2h | every:1d@09:00
weekly:mon,wed,fri@09:00
monthly:1@09:00
at:2026-05-01T09:00+09:00
cron:0 9 * * 1-5
Documentation: https://agi-labo.com/tools/wings/docs
English: https://agi-labo.com/en/tools/wings/docs