CLI Reference
This reference documents the public sftpwarden command surface from the real
Typer application. It is written for operators who are new to SFTPWarden and need
to know what each command does, what each argument accepts, and which commands
change local files, remote hosts, containers, provider data, or Kubernetes
resources.
How To Read Commands
sftpwarden is command-first:
sftpwarden <command> [options]
sftpwarden <group> <subcommand> [arguments] [options]
Most commands work against the active context. Select a different context for
one command with --context <name> or -c <name>. Use --config <path> only
when you want to bypass the context registry and point directly at a
sftpwarden.yaml file.
sftpwarden.yaml is desired state. Editing it manually, or changing it with
sftpwarden config, does not update running infrastructure by itself. Apply
deployment-level config changes with sftpwarden deploy, sftpwarden kube apply, or sftpwarden helm upgrade. User/provider data changes are applied to
the running runtime with sftpwarden refresh, except Kubernetes YAML/CSV
providers, where the provider file is copied into the PVC during deploy/apply or
upgrade.
Common Value Types
Type |
Accepted value |
|---|---|
|
Plain string. Quote values that contain spaces. |
|
Whole number, for example |
|
Usually a flag such as |
|
File or directory path. |
|
Database URL such as |
|
Remote URL in |
Common Flags
Flag |
Value |
What it does |
|---|---|---|
|
|
Runs the command against one registered context without changing the active context. |
|
|
Reads a specific |
|
flag |
Prints machine-readable JSON instead of Rich tables or human text. |
|
flag |
Prints the planned operation without writing files, touching containers, or mutating remote resources. |
|
flag |
Accepts confirmation prompts for scripts and CI. Use it only when the action is intentional. |
|
flag |
Shows command help generated by Typer. |
Shell Completion
Install completion for the current shell:
sftpwarden --install-completion
Print the completion script without installing it:
sftpwarden --show-completion
Command Sections
The command pages below are also available in the left navigation under the Reference section. Each page documents its commands and subcommands with arguments, options, examples, and operational effects.
Init Commands: project creation and provider schema selection.
Core Commands: deploy, validate, compose, plan, refresh, health, backup, and restore.
User Commands: user listing, creation, updates, disable/enable, and removal.
User Key Commands: named key listing, add/remove, lifecycle, rotation, expiry, and import.
Provider Commands: provider export/import/copy and schema migration commands.
Context Commands: context registry, active context, remote metadata, cleanup, and dynamic context fields.
Config Commands:
sftpwarden.yamlinspection and supported config updates.Watcher And Sync Commands: remote local-sync planning, foreground watch, and watcher service installation.
Kubernetes Commands: render, apply, status, logs, doctor, and delete.
Helm Commands: values, template, lint, upgrade, and uninstall.
Runtime Commands: container-side runtime entrypoints used by the deployed image.