General

To list all configuration values, run:

$bit
Copiedcopy

The output will be similar to the following:

analytics_id b6a73abl9kd9qoy analytics_reporting false error_reporting false user.token ap236fa0-2748-2fc6-a0c4-e063c33ewc51

The configuration values are stored in Bit's global config.json file. Get the path to the config file by running:

$bit
Copiedcopy

Note that some values like the user's email, are inherited from git. However, setting them with Bit, will override them.

Modify a configuration value

Run the following command with the key of the value you want to get. For example, to get the user.email value, run:

$bit
Copiedcopy

To set a value, specify the key and the value you want to set. For example, to set the user.email value, run:

$bit
Copiedcopy

To delete a a key from the configuration, run the following with the key to remove:

$bit
Copiedcopy

Environment variables

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 keyEnvironment variable
user.emailBIT_CONFIG_USER_EMAIL
analytics_idBIT_CONFIG_ANALYTICS_ID
error_reportingBIT_CONFIG_ERROR_REPORTING

User configuration

user.email

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.

ssh_key_file

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.

A proxy for outgoing HTTP/HTTPS requests

See the Network Configuration page.

Bit Cloud Configuration

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.

hub_domain

The domain of the default bit cloud component hub. Optional and defaulted to bit cloud hub hub.bit.dev.

hub_domain_login

The service against which the user will be authenticated. Optional and will be defaulted to https://bit.dev/bit-login

registry

Bit npm registry url. Optional and defaulted to https://node.bit.dev.

Reporting Configuration

analytics_reporting

Will determine if anonymous usage data is sent to Bit.

anonymous_reporting

By default, analytics data is sent as anonymous data. Set the value to false to send unmasked data.

error_reporting

Send anonymous errors data to Bit. Defaulted to false.

log_level

Log errors that are output. Values are: error (least verbose), warn, info, http, verbose, debug, silly (most verbose). The default level is debug.

Local Configuration

git_path

Path to the location of the Git executable.