Config Manager Temporal CLI
workflow-cli is the Config Manager command-line client for invoking Temporal workflows through the workflow API gateway. It is registered by the platform package as the workflow-cli project script and should be run with uv from the nv-config-manager checkout.
The CLI reads the API-enabled workflows from the installed workflow registry, which includes built-in workflows and installed workflow plugins, and generates one Click command per workflow. It also handles device-name-to-device-ID lookup for workflows that accept device_id.
Run the CLI
From the platform repository:
The examples in this guide use uv run.
Authentication
The CLI auto-detects whether SSO is enabled for the target deployment:
- If
https://<hostname>/auth/discoveryreports SSO is enabled, the CLI uses browser-based OIDC PKCE authentication and sends workflow API requests to the advertised workflow service URL with a bearer token. - If discovery reports SSO is not enabled, the CLI sends unauthenticated requests to the advertised workflow URL.
Cached OIDC tokens are stored in ~/.nv-config-manager/token.json.
If auth discovery is not available, the CLI falls back to the older gateway redirect discovery path. If automatic discovery is not available, pass the issuer and client ID directly:
Target Selection
Every generated workflow command accepts the same target and authentication options.
Use either --hostname directly:
Or target an environment under a shared domain:
Discovery
Use the generated help output as the authoritative command list for the version you are running.
The current CLI includes utility commands such as login, logout, auth-status, list-workflows, and examples. Workflow commands are generated from registered workflow metadata, for example backup, config-diff, diagnostics, deploy, multi-deploy, reprovision, site-cable-validation, validate-hardware, switch-os-upgrade, and the InfiniBand, NVLink, Redfish, Spectrum-X overlay, and password-rotation workflows.
BatchDeployWorkflow and TenantDeployWorkflow are internal child workflows.
They appear in the registered Temporal types but do not have standalone HTTP
endpoints or generated CLI commands. Start multi-deploy or deploy instead.
Device Workflows
For workflows with a device_id input, the CLI also adds --device-name. When provided, the CLI calls the parameter API to resolve the device name to a UUID before invoking the workflow.
BackupInput.trigger is required by the API; use --trigger API for an
ad-hoc CLI backup. Set --terminate-on-failure true if the run should fail after
activity retries instead of waiting for a manual stage-retry signal.
Do not pass both --device-name and --device-id. The CLI requires exactly one for workflows that need a device UUID.
Site and Multi-Device Workflows
For direct list fields, pass comma-separated values explicitly; use "" for an empty list. Omitted list defaults can be serialized as literal strings. Nullable lists such as multi-deploy --status are not converted to arrays; use the UI or API for that filter. Boolean parameters take explicit values such as true or false.
For status filters, use the name values returned by
GET /v1/parameter/status?content_type=dcim.device. The bundled Nautobot
provider matches status names case-sensitively.
To apply a multi-deploy status filter, submit an array through the workflow API:
Verbose Output
Use --verbose to see device-name resolution, the target URL, request parameters, and the response body.
Example output shape:
Troubleshooting
Either --hostname or --environment is required.
Pass -H <base-hostname> or use -e <environment> -d <domain>.
Device lookup fails.
Verify the device exists in Nautobot and that the authenticated user can access the workflow parameter API. Re-run with --verbose to see the device lookup URL and response details.
Gateway redirects to login during a workflow call.
The gateway did not accept the CLI bearer token. Re-run uv run workflow-cli login -H <hostname> --force, then retry. If the issue persists, verify the deployment’s OIDC issuer, JWKS URI, audiences, and client ID.
Local TLS verification fails.
Use -k only for local development or other environments using self-signed certificates.
Every command exits with status 1 before running.
The CLI loads the workflow registry on startup, so this affects --help and the utility commands too. If it prints Error loading workflow registry: <reason>, an installed workflow plugin failed registry validation; fix or uninstall the plugin named in the reason. If it prints Error: workflow <class> uses CLI name '<name>', which is reserved for a built-in command, an API-enabled workflow’s CLI name is login, logout, auth-status, list-workflows, or examples. The CLI name is derived from the workflow class name, so rename the class or override get_workflow_cli_name(), or uninstall the plugin.
For API details, see the Temporal API Reference and Workflow Documentation.