yarn config get — Yarn CLI reference
Print a configuration value
Docs/Reference/CLI/config/get
yarn config get
Print a configuration value
yarn config get <NAME>
This command prints a single configuration setting as resolved for the current project.
Secrets such as tokens are redacted from the output by default. Use --no-redacted only when you need the untransformed value.
Format the output as a JSON value
Redact sensitive values
Examples#
Print a simple configuration setting
yarn config get cacheFolder
Print a complex configuration setting as JSON
yarn config get packageExtensions --json
Print a nested field from the configuration
yarn config get 'npmScopes["my-company"].npmRegistryServer'
Print a token from the configuration
yarn config get npmAuthToken --no-redacted