Config Commands
sftpwarden config reads and updates configuration. It has two separate scopes:
sftpwarden config PATH [VALUE]edits the active project’ssftpwarden.yaml.sftpwarden config showandsftpwarden config default-provideroperate on global CLI settings under~/.sftpwarden/config.toml.
Changing sftpwarden.yaml records desired state only. Apply deployment-level
changes with sftpwarden deploy, sftpwarden kube apply, or sftpwarden helm upgrade.
sftpwarden config
Command group and dynamic project-config editor.
sftpwarden config --help
Group-level options are also accepted by the dynamic path commands.
Group Options
Flag |
Value |
Default |
What it does |
|---|---|---|---|
|
|
active context |
Selects the project context whose |
|
|
none |
Reads or edits a specific |
|
flag |
false |
Accepts prompts for important config changes, currently including deferred provider schema migration. |
sftpwarden config PATH
Reads or updates one dotted path in sftpwarden.yaml. If VALUE is omitted,
the command prints the current value. If VALUE is supplied, SFTPWarden parses
it with YAML scalar rules, validates the full config model, and writes the file.
sftpwarden config server.port
sftpwarden config server.port 2200
sftpwarden config provider.type csv
sftpwarden config provider.user_schema 2
sftpwarden config auth.allow_password false
sftpwarden config kubernetes.liveness_probe.period_seconds 45
Arguments
Argument |
Required |
Value |
What it means |
|---|---|---|---|
|
Yes |
supported dotted path |
Config path exposed by the CLI, such as |
|
No |
YAML scalar text |
Replacement value. Omit it to read the current value. |
Options
Flag |
Value |
Default |
What it does |
|---|---|---|---|
|
|
active context |
Selects the project context to edit. |
|
|
none |
Edits a specific config file directly. |
|
flag |
false |
Accepts confirmation when changing |
Value Parsing
Numbers become integers, true/false become booleans, and null clears
nullable fields. Existing string fields remain strings even if the value looks
like a number or boolean.
Changing project.name also renames the registered context when the command is
operating through the context registry. Changing provider.user_schema validates
the requested schema and, when SFTPWarden can see that provider data is older,
warns that the next deploy/apply/upgrade will run a forward migration.
Supported Project Paths
The command paths below come from the real PROJECT_CONFIG_PATHS constant and
the SFTPWardenConfig model.
Path |
Accepted value |
|---|---|
|
|
|
text |
|
text |
|
text, usually an address such as |
|
integer |
|
path text used inside the runtime |
|
path text used inside the runtime |
|
path text used inside the runtime |
|
text group name |
|
boolean |
|
integer |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
|
|
|
|
|
|
safe relative path |
|
text owner name |
|
text group name |
|
octal permission text |
|
octal permission text |
|
|
|
integer |
|
integer |
|
boolean |
|
|
|
provider path text |
|
text DSN or |
|
text SQL query or |
|
SQL table name text accepted by the config validator |
|
MongoDB collection name text |
|
supported user schema version, currently |
|
|
|
|
|
integer |
|
integer |
|
integer |
|
integer |
|
text image reference |
|
text container name |
|
text Docker restart policy |
|
text Compose file name/path |
|
|
|
|
|
text namespace |
|
text release name |
|
text kube context or |
|
|
|
text storage class or |
|
Kubernetes storage quantity such as |
|
integer |
|
integer |
|
integer |
|
integer |
|
integer |
|
integer |
|
integer |
|
integer |
|
integer |
|
|
|
boolean |
|
|
|
text host or |
|
text SSH user or |
|
integer |
|
text remote path or |
|
text remote config path or |
|
text key path or |
|
boolean |
|
boolean |
|
boolean |
|
|
|
text Docker watcher image or |
For detailed meaning of each field, see Configuration.
sftpwarden config show
Shows global CLI configuration stored under ~/.sftpwarden/config.toml.
sftpwarden config show
sftpwarden config show --json
Options
Flag |
Value |
Default |
What it does |
|---|---|---|---|
|
flag |
false |
Prints global config data as JSON. Without it, output is YAML-like text. |
Effects
Read-only.
sftpwarden config default-provider
Shows or updates the global default provider used by sftpwarden init when
--provider is omitted.
sftpwarden config default-provider
sftpwarden config default-provider yaml
sftpwarden config default-provider csv
sftpwarden config default-provider sqlite
Arguments
Argument |
Required |
Value |
What it means |
|---|---|---|---|
|
No |
|
New global default provider. Omit it to print the current default. |
Options
No command-specific options.
Effects
When a provider argument is supplied, writes the global CLI config.