Config
Usage
snyk config <SUBCOMMAND> [<OPTIONS>]
Description
The snyk config command manages your local Snyk CLI config file, a JSON file located at $XDG_CONFIG_HOME or ~/.config followed by configstore/snyk.json
Example: ~/.config/configstore/snyk.json
This command does not manage the .snyk file that is part of your project. See the snyk policy and snyk ignore commands.
Debug
Use the -d option to output the debug logs.
Subcommands
get <KEY>
get <KEY>Print a config value.
set <KEY>=<VALUE>
set <KEY>=<VALUE>Create a new config value.
unset <KEY>
unset <KEY>Remove a config value.
clear
clearRemove all config values.
environment
environmentChange the endpoint to use. Run config environment --help or see the snyk config environment command
Supported <KEY> values
<KEY> valuesapi
apiAPI token to use when calling the Snyk API.
endpoint
endpointDefine the API endpoint to use.
disable-analytics
disable-analyticsTurn off analytics reporting.
org
orgSpecify the <ORG_ID> to run Snyk commands tied to a specific Snyk Organization.
oci-registry-url
oci-registry-urlConfigure the OCI registry used in IaC scanning with custom rules.
oci-registry-username
oci-registry-usernameConfigure the username for an OCI registry used in IaC scanning with custom rules.
oci-registry-password
oci-registry-passwordConfigure the password for an OCI registry used in IaC scanning with custom rules.
Last updated
Was this helpful?

