Configure the local Secrets Manager CLI environment
config
commandDescription: Configure the CLI debug output
Parameters:
Sub-command to run
format: ksm config <sub-command>
Sub-Commands:
Sub-Command
Description
color
Turn on or off color display
cache
Turn on or off the record cache
record-type-dir
Set the directory that hold custom record type schemas.
editor
Set an editor for visual adding new records.
show
Display current CLI settings
ksm config color <--enable | --disable>
--enable
Turn on color display
--disable
Turn off color display
$ ksm config color --disable
$ ksm config show
Config Item Value
---------------------- --------------
Color Enabled False
The record cache creates a copy of your records and will be used if the CLI cannot access the Secrets Manager server. A copy of records are stored encrypted on local storage.
ksm config cache <--enable | --disable>
--enable
Turn on record caching
--disable
Turn off record caching
$ ksm config cache --enable
$ ksm config show
Config Item Value
---------------------- -----------
Cache Enabled True
Set the record type schema directory containing custom record type schema files.
ksm config record-type-dir [-d DIRECTORY PATH] [--clear]
Options:
--directory, -d
Directory path
--clear
Remove the directory path
$ ksm config record-type-dir -d /path/to/directory
$ ksm config show
Config Item Value
---------------------- -----------
Record Type Directory /path/to/directory
Set the editor to use when visually adding records.
ksm config editor [--app APPLICATION] [--blocking] [--process-name PROCESS NAME]
Options:
--application, --app
The editor application to launch.
--clear
Remove the directory path
These optionals can be used when setting the --application
.
--blocking
Enable to prevent the CLI from prematurely processing your record data.
--process-name
Used in blocking to find the real process name in the task list.
ksm config editor --app Code --blocking --proces-name code.exe
$ ksm config show
Config Item Value
---------------------- -----------
Editor Code (code.exe)
Editor Blocking True
ksm config show
$ ksm config show
Config Item Value
---------------------- -----------
Active Profile all_records
Cache Enabled False
Color Enabled False
Record Type Directory -NOT SET-
Editor vim (NA)
Editor Blocking False