Configuration

List of command launcher configurations

List of configurations

Config NameTypeDescription
ci_enabledboolwhether the CI mode is enabled or not
command_repository_base_urlstringthe base url of the remote repository, it must contain a /index.json endpoint to list the available pacakges
command_update_enabledboolwhether auto update managed commands or not
dropin_folderstringthe absolute path of the dropin folder
enable_user_consentboolwhether enable the user consent. Be caution, when set to false, all resources are allowed to pass to the managed commands.
experimental_command_enabledboolwhether enable experimental command or not
internal_command_enabledboolwhether enable internal command or not
local_command_repository_dirnameboolthe absolute path of the local repository folder.
log_enabledboolwhether log is enabled or not
log_levelstringthe log level of command launcher. Note, the managed command could also request access to this config
metric_graphite_hoststringgraphite url for metrics
package_lock_filestringonly available for CI mode (ci_enabled = true). Lock the package version for CI purpose
remote_config_check_cycleintinterval in hours to check the remote config
remote_config_check_timetimenext remote config check time. This configuration is set automatically by command launcher, you shouldn’t change it manually.
self_update_base_urlstringbase url to get command launcher binaries
self_update_enabledboolwhether auto update command launcher itself
self_update_latest_version_urlstringurl to get the latest command launcher version information
self_update_timeoutdurationtimeout duration for self update
usage_metrics_enabledboolwhether enable metrics
user_consent_lifedurationthe life of user consent
system_packagestringthe system package name
system_package_public_keystringthe public key to verify the system package signature
system_package_public_key_filestringthe public key file to verify the system package signature
verify_package_checksumboolwhether to verify the package checksum during package installation
verify_package_signatureboolwhether to verify the package signature during package installation (will be available in 1.8)
extra_remotesmapextra remote registry configurations, see extra remote configuration (available 1.8+)
enable_package_setup_hookboolcall setup hook after a new version of package is installed (available 1.9+)
group_help_by_registryboolgroup help by registry, default true (available 1.13+)

extra remote configuration

Each extra remote must have a unique name, it is used to identify the command as part of the command full name. The example configuration looks like the following:

{
    "extra_remotes": {
        "remote1": {
            "remote_base_url": "",
            "sync_policy": "always",
            "repository_dir": ""
        }
    }
}
Config NameTypeDescription
remote_base_urlstringthe base url of the remote repository, it must contain a /index.json endpoint to list all available packages
sync_policystringhow often the repository is synched from its remote, always, hourly, daily, weekly, or monthly
repository_dirstringthe absolute path of the local repository folder to keep the downloaded local packages

You don’t need to manage these extra remote configurations by your self. Use the built-in remote command instead

Change configuration

It is recommended to use the built-in config command to change the configurations. For duration type configurations, you can use h, m, and s to present hour, minute, and seconds. For example:

cola config user_consent_life 24h

set the user consent life to 24 hours.