divekit config hosts set
Add or update a host configuration
Synopsis
Add a new host or update an existing host configuration.
Use this command to configure GitLab instances or other Git providers. Tokens can be provided directly, read from environment variables, or entered interactively.
Usage
divekit config hosts set [flags]
Examples
# Add a host with interactive token prompt (recommended)
divekit config hosts set --name gitlab --url https://gitlab.com --ask-token
# Add a host with token from command line
divekit config hosts set --name gitlab --url https://gitlab.com --token glpat-xxx
# Update concurrency settings for an existing host
divekit config hosts set --name gitlab --max-workers 5 --enable-concurrency
Flags
--ask-token Prompt for token interactively
--disable-concurrency Disable concurrency for this host
--enable-concurrency Enable concurrency for this host
--max-workers int Override per-host concurrency workers (0 = leave unchanged)
--name string Host alias (e.g. gitlab)
--rate-limit-delay-ms int Delay between requests in milliseconds (0 = leave unchanged)
--token string API token to store securely
--token-key string Override token key (defaults to derived DIVEKIT_API_TOKEN_* env var)
--url string Host URL (e.g. https://gitlab.com)
Inherited Flags
-l, --loglevel string log level (debug, info, warn, error, fatal) (default "info")
--no-index skip project index update
--non-interactive run in non-interactive mode (fails if interactive input is required)
-y, --yes assume yes/default for all prompts (non-interactive with automatic defaults)