Configuration#

scf can also be configured via a configuration file, which is included in the package.

Defaults#

[cache]
# Path where the cache will be stored
path = "@format {env[HOME]}/.cache/"
# Number of days the entries should be cached by default
expiration_days = 7
# Never expire the cache for the following CVE. You can use Wildcards here.
expiration_exceptions = [ "CVE-19*", "CVE-200*", "CVE-201*", ]

[connection]
# If the certificate should be validated
ssl_verify = true

Initialization#

To be able to change the configuration, you need the call the init command:

scf config init

Note

If you want to reset your configuration to the defaults, run it with the --overwrite option.

Viewing the configuration#

Sometime you just want to know what the current settings are:

scf config dump

Changing the configuration#

You can simply run the following command which will open your favorite editor with the configuration file:

scf config edit

Autocompletion#

To install the autocompletion for your shell, you have to run the following command:

scf --install-autocompletion $SHELL