Managing Configuration
lip has two kinds of configuration: the user configuration, with settings that affect how lip interacts with remote services, and the workspace configuration, with settings of one workspace. Add --workspace to a lip config command to use the configuration of the workspace in the current directory.
Viewing Configuration
To see all current configuration settings:
sh
lip config list
lip config list --workspaceTo get the value of a specific key:
sh
lip config get <KEY>Example:
sh
lip config get github_proxySetting Configuration
To set a configuration value:
sh
lip config set <KEY> <VALUE>Common Settings
github_proxy(user): A URL to use as a proxy for GitHub requests, or an empty string to connect to GitHub directly.language(user):en,zh-Hansorzh-Hant, the language of the interactive interface. Without it, the interface follows the language of your system.restart(workspace):neveroron-failure, whetherlip runrestarts the server of the workspace when it exits with a non-zero exit code.
Examples:
sh
lip config set github_proxy https://mirror.ghproxy.com/
lip config set github_proxy ""
lip config set language zh-Hans
lip config set restart on-failure --workspaceDeleting Configuration
To remove a setting and revert to its default (if any):
sh
lip config delete <KEY>