Reference For: developers, administrators

CLI reference

The kyvernon command-line client: connection, output, exit codes, global options, completion and every command.

Connection

--server (or KYVERNON_SERVER) names the controller. The bearer token comes from --token / KYVERNON_TOKEN, from --token-file / KYVERNON_TOKEN_FILE (a file with the token on its first line, for example an API token created with auth api-tokens create), or from the credentials file written by kyvernon login --save (default $XDG_CONFIG_HOME/kyvernon/credentials.json, %APPDATA%\kyvernon\credentials.json on Windows; written mode 0600 in a 0700 directory on Unix). The saved token is bound to the server it was saved for: with another --server the CLI refuses (exit 3) instead of sending it there; log in to that server or pass a token explicitly. Passwords are read from KYVERNON_PASSWORD or from stdin, never from the command line.

Output

--json prints the raw response; otherwise lists render as a table and objects as key: value lines. Long-running operations return the task; --wait polls it until it ends.

Exit codes

Exit codeMeaning
0success
1failure
2usage or connection error
3not authenticated or not permitted
4not found

Global options

ArgumentDescriptionRequired
--serverController URL, e.g. https://controller.example.com:8443
environment variable KYVERNON_SERVER
--tokenBearer token (or KYVERNON_TOKEN)
environment variable KYVERNON_TOKEN
--token-fileFile holding the bearer token (one line; or KYVERNON_TOKEN_FILE)
environment variable KYVERNON_TOKEN_FILE
--credentialsCredentials file (default: platform config dir / kyvernon / credentials.json)
environment variable KYVERNON_CREDENTIALS
--insecureSkip TLS certificate verification (bootstrap certificates only)
--jsonPrint raw JSON
--output, -oOutput format: table (default) or json (-o json is --json)
values table, json
--timeoutRequest timeout in seconds
default 30

Shell completion

kyvernon completion bash|zsh|fish|powershell|elvish prints a completion script: source <(kyvernon completion bash) or kyvernon completion powershell | Out-String | Invoke-Expression.

Commands

CommandDescription
kyvernon loginLog in with a password (read from KYVERNON_PASSWORD or stdin) and print the token
kyvernon logoutRevoke the current session
kyvernon whoamiShow the current identity
kyvernon aboutService information
kyvernon depotOffline depot: verify, install, sign (no controller needed)
kyvernon completionPrint a shell completion script (source <(kyvernon completion bash))
kyvernon systemLiveness, readiness and the controller's Prometheus metrics
kyvernon authOwn session: browser-login settings, API tokens, TOTP, password
kyvernon selfOwn account on the identity endpoints (password, MFA enrolment)
kyvernon usersUser administration
kyvernon rolesRoles
kyvernon permissionsPermissions (principal, role, entity)
kyvernon privilegesPrivilege catalogue and checks
kyvernon sessionsActive sessions
kyvernon auditAudit log
kyvernon inventoryInventory
kyvernon vmVirtual machine operations
kyvernon hostHost operations
kyvernon clusterCluster operations
kyvernon networkHost-bridge networks / standard port groups
kyvernon datastoreDatastore files
kyvernon tasksTasks
kyvernon eventsEvents
kyvernon alarmsAlarms
kyvernon scheduled-tasksScheduled power tasks
kyvernon webhooksWebhook subscriptions
kyvernon ip-poolsPublic IP pools on host-bridge networks and their allocations
kyvernon firewallDistributed firewall: groups, services, policies, rules, rollout, counters, logs
kyvernon addressesPublic addresses and reverse DNS of one VM
kyvernon trafficMonthly traffic, limits and extra packages
kyvernon metricsPerformance counters and samples of hosts, VMs and datastores
kyvernon usageUsage ledger (vCPU, memory, storage and network per VM, tenant and period)
kyvernon backupBackup sessions, changed-block areas and restores
kyvernon contentContent libraries, items and update sessions
kyvernon ovfOVF descriptor parse, import-spec, and create-descriptor
kyvernon nfcNative NFC leases (ImportVApp / ExportVm file transfer)
kyvernon customizationGuest customization specifications
kyvernon licenceLicence entitlements (free tier and installed files, L-121)
kyvernon tenantsSelf-service tenants: quota, lifecycle, users, usage
kyvernon serversSelf-service servers of a tenant
kyvernon plansVM plans (operator)
kyvernon catalogueThe self-service image catalogue (operator)

Version 0.1.