To list all configuration values, run:
The output will be similar to the following:
The configuration values are stored in Bit's global config.json
file. Get the path to the config file by running:
Note that some values like the user's email, are inherited from git. However, setting them with Bit, will override them.
Run the following command with the key of the value you want to get. For example, to get the user.email
value, run:
To set a value, specify the key and the value you want to set. For example, to set the user.email
value, run:
To delete a a key from the configuration, run the following with the key to remove:
You can also set configuration values be setting their corresponding environment variable.
The environment variables all start with BIT_CONFIG_
and do not include the .
in the key name. For example:
Config key | Environment variable |
---|---|
user.email | BIT_CONFIG_USER_EMAIL |
analytics_id | BIT_CONFIG_ANALYTICS_ID |
error_reporting | BIT_CONFIG_ERROR_REPORTING |
The user's email. This will be used for the component version history log.
The user.email
value is inherited from the user's git user.email
property, when running bit init
, but can be overridden by running bit config set user.email NEW_EMAIL_ADDRESS
.
Defines the path the ssh key files that will be used to log into Bit cloud. If not set, it will default to ~/.ssh/id_rsa
.
See the Network Configuration page.
These values need to be changed only if a private server or private registry is used. Otherwise, it will be defaulted to Bit cloud server.
The domain of the default bit cloud component hub. Optional and defaulted to bit cloud hub hub.bit.dev
.
The service against which the user will be authenticated. Optional and will be defaulted to https://bit.dev/bit-login
Bit npm registry url. Optional and defaulted to https://node.bit.dev
.
Will determine if anonymous usage data is sent to Bit.
By default, analytics data is sent as anonymous data. Set the value to false
to send unmasked data.
Send anonymous errors data to Bit. Defaulted to false.
Log errors that are output. Values are: error (least verbose), warn, info, http, verbose, debug, silly (most verbose). The default level is debug.
Path to the location of the Git executable.