Skip to content

Commands & Flags

Terminal window
flowctl --instance <url> --sys-id <id> [auth] [flags]
FlagNotes
--format <fmt>full (default), text, tree, yaml
--valuesShow configured input values per step
--inputsShow action type input schemas (extra API calls)
--output jsonJSON-wrapped output for scripting
--no-colorDisable ANSI colors (also respects NO_COLOR)
--debugPrint API calls to stderr
Terminal window
flowctl --instance <url> --export <sys_id> [--with-uuid]
FlagNotes
--with-uuidInclude identity metadata for the update workflow
Terminal window
flowctl --validate <file.yaml>

Offline. No ServiceNow connection needed.

Terminal window
flowctl --instance <url> --create <file.yaml> [auth] [--dry-run]
FlagNotes
--dry-runPrint planned API calls without executing
Terminal window
flowctl --instance <url> --update <file.yaml> [auth] [--dry-run]

The YAML file must contain sys_id and _metadata from a --with-uuid export.

Terminal window
flowctl --editor <addr>

Starts the local YAML editor (validate, diagram, create/update) without the full server. Community edition.

Terminal window
flowctl --init [--init-type <type>] [--init-name <name>]
FlagNotes
--init-typeflow (default) or subflow
--init-nameFlow name for the generated template
Terminal window
flowctl --serve <addr> [--dev] [--public]
FlagNotes
--devSkip embedded assets, use local dev server
--publicPublic website mode (marketing pages + editor, no authenticated flows list)

Pick one method. OAuth2 takes precedence when both are provided.

Terminal window
flowctl --instance <url> --sys-id <id> \
--client-id <id> --client-secret <secret>

Or via environment variables:

Terminal window
export SN_CLIENT_ID=<client_id>
export SN_CLIENT_SECRET=<client_secret>
Terminal window
flowctl --instance <url> --sys-id <id> \
--user <username> --pass <password>

Or password via environment:

Terminal window
export SN_PASSWORD=<password>
MethodPathNotes
GET/api/v1/flowsList flows on the connected instance
GET/api/v1/flows/{sys_id}Full flow details
GET/api/v1/flows/{sys_id}/yamlExport as YAML
POST/api/v1/flowsCreate from YAML body
PUT/api/v1/flows/{sys_id}Update from YAML body
POST/api/v1/flows/validateValidate YAML (offline)
POST/api/v1/flows/diagramGenerate flow diagram from YAML
GET/api/v1/samplesList sample YAML files
POST/api/v1/auth/testTest SN connection
GET/healthzHealth check

Interactive API docs at /api/docs (Swagger UI). OpenAPI spec at /api/docs/spec.

Add ?with_uuid=true to the YAML export endpoint to include identity metadata.

Terminal window
flowctl activate <key> # Activate a Pro/Team license on this machine
flowctl deactivate # Remove license from this machine
flowctl license # Show current license status
Terminal window
flowctl update # Check for updates and install if available

Downloads are verified with ed25519 signatures when available.

VariableDescription
SN_CLIENT_IDOAuth2 Client ID (alternative to --client-id)
SN_CLIENT_SECRETOAuth2 Client Secret (alternative to --client-secret)
SN_PASSWORDBasic Auth password (alternative to --pass)
VariableDescription
FLOWCTL_LICENSELicense key (alternative to ~/.flowctl/license.key)
VariableDescription
NO_COLORDisable colored output when set to any value