ks file
ks file
Manages secret files
Synopsis
Manages secret files.
Without arguments, lists secret files:
$ ks file
Files tracked as secret files:
* config/wp-config.php
M config/front.config.js
* Required; A Available; M Modified
Required files will stop ks source
and ks ci send
Available files exist in the cache, but not in the keystone.yaml file.
Modified files have different content from the cache.
For a machine parsable output, use the -q
flag:
$ ks file -q
* config/wp-config.php
M config/front.config.js
You can also filter output:
# Show only locally modified files
$ ks file -qf modified
M config/front.config.js
# Show only available files
$ ks file -qf available
A other-available.file
ks file [flags]
Options
-f, --filter string Files to display (default "all")
-h, --help help for file
Options inherited from parent commands
-c, --config string config file (default is $HOME/.config/keystone/keystone.yaml)
--debug debug output
--env string environment to use instead of the current one
-q, --quiet make the output machine readable
-s, --skip skip prompts and use default
SEE ALSO
- ks - A safe system for developers to store, share and use secrets.
- ks file add - Adds a file to secrets
- ks file optional - Marks a file as optional
- ks file require - Marks a file as required
- ks file reset - Resets locally modified files with their cached contents
- ks file rm - Removes a file from secrets
- ks file set - Updates a file’s content for the current environment