Skip to content

install.sh options

This page lists every option of install.sh, the --set keys it accepts, the environment variables it reads, and the options of setup.sh, the web installer and uninstall.sh. Defaults are the values used on a new installation; on a re-run, an option that is not given keeps the value already in .env.

Community Enterprise

./install.sh --help prints the same list (in Turkish). "Question" refers to the numbered interactive questions in Terminal installer (install.sh).

General

Option Argument Default Effect Question
--yes, -y off Ask no question; use options, environment variables and defaults all
--web Start the web installer instead of the terminal installer (needs Node.js 20+; same as npm run setup). All other install.sh options on the same command line are ignored: the wizard starts with its defaults. To pass wizard options such as --port or --local-only, use npm run setup -- … instead.
--language tr or en the server's locale on a new installation (tr… → tr, otherwise en); unchanged on a re-run Product default language (QUBESIGHT_DEFAULT_LANGUAGE): sign-in page and interface for users who have not chosen a language, notification language until one is saved, the note of the seeded ingest allowlist. Since 2.0.109.
--no-start off Only write .env and secrets/; start nothing
--timeout seconds 900 Maximum wait for the services to become healthy
--build automatic Always build the images from source, even when every image is already on the server
--no-build automatic Never build images; images tagged with QUBESIGHT_VERSION must already be present. Without --build or --no-build, the script builds only when an image of this configuration is missing; when one is missing and Docker Hub cannot be reached, it stops and points to the offline bundle.
--force-build off Build from source even on an installation updated through patches (normally skipped there)
--data-dir absolute path, or . installation directory Data directory for the growing data (ClickHouse, Redpanda, local MinIO, archive drop directory, Vector buffer, PostgreSQL, backups, language model, restore MySQL). Letters, digits, ., _, - and /; not /; at most 200 characters. . means the installation directory. Only on the first installation; a different value on an installation with data stops the script. Stored as QUBESIGHT_DATA_DIR. See Data disk. 0
--recreate off On an installation updated through patches, apply .env and configuration changes to running services (normally they are not recreated)
-h, --help Print the help

Network and access

Option Argument Default Effect Question
--public-host host name or IP detected IPv4 Address log shippers use to reach the server; Kafka advertises it. Letters, digits, ., -, _, : 2
--vip ADDRESS[/PREFIX] none Virtual IP for log intake. Must be in the server's subnet, free on the network, not the server's own address; prefix 8 to 30 (default: the interface's). Requires BIND_PUBLIC=0.0.0.0. 3
--no-vip Remove the single-server virtual IP (a cluster-managed virtual IP is not touched) 3
--ingest-allow CIDR[,CIDR…] or off the server's subnet Allowlist of syslog and SNMP sources; events from other addresses are dropped and counted. off: accept every address. Read only on the first start; afterwards managed in Data Sources → Access allowlist (Syslog/SNMP).
--admin-user name admin First administrator user name. Starts with a letter or _; letters, digits, _, ., -
--cluster-enroll off At the end of the installation, add the product's cluster SSH key to the root account and register this server as a cluster node candidate. Without it a single server gets no product SSH key; when you form a cluster later, register the server once with its root password in Add cluster node and then use Join cluster. Also QUBESIGHT_CLUSTER_ENROLL=1.
--cluster-ssh-user account root Account that receives the product's cluster SSH key at the end of the installation (implies --cluster-enroll). A non-root account needs password-less sudo. Starts with a lowercase letter or _; lowercase letters, digits, _, -. Also QUBESIGHT_CLUSTER_SSH_USER.

HTTPS

Option Argument Default Effect
--with-tls on Serve the web interface and API over HTTPS (plain HTTP redirects to HTTPS)
--no-tls Plain HTTP; only when your own TLS terminator is in front (set GATEWAY_TRUSTED_PROXIES). Use with --recreate on a running installation.
--tls-cert PEM file self-signed Your certificate chain, imported by the gateway on its first start only (while its certificate store is empty). Must be given with --tls-key; not with --no-tls.
--tls-key PEM file The private key for --tls-cert, without a passphrase

Components

Option Default Effect Question
--with-restore / --no-restore on Guardium archive restore MySQL (profile restore)
--with-updater / --no-updater on Update service for signed patches (profile updater; the only service with Docker socket access). Off: updates are applied by hand with ./install.sh.
--with-minio / --no-minio off MinIO as ClickHouse's own S3 tier (profile minio). Local cold storage enables the MinIO service regardless.
--with-assistant / --no-assistant on if Docker has at least 11 GiB and 4 CPUs (new installation); unchanged on a re-run Embedded language model (profile assistant). The model (about 2.5 GB) is downloaded and verified, or taken from the offline bundle's models/ directory when present; a download failure does not fail the installation. 1
--assistant-model model file Take the model gemma-3-4b-it-Q4_K_M.gguf from this file (verified with SHA-256, not downloaded). Does not enable the profile by itself. Set automatically when the offline bundle contains the model.
--with-auth / --no-auth Deprecated and ignored

The profile choice is stored as COMPOSE_PROFILES in .env and kept on later runs.

Data retention (hot and cold)

All of these are written to .env and read by the control plane only on its first start; afterwards manage them in Platform → Data and Backup → Retention.

Option Argument Default Effect Question
--hot-mode days or disk disk Hot-data limit: last N days, or as much as fits until the ClickHouse disk reaches the percentage 4
--hot-days 7 to 3650 365 Days of activity logs kept in ClickHouse (days mode). Since 2.0.109, given without --hot-mode it selects days mode. 5b
--hot-disk-percent 50 to 95 85 Disk usage limit (disk mode). Since 2.0.109, given without --hot-mode it selects disk mode; --hot-days and --hot-disk-percent together need --hot-mode. 5a
--cold-mode local, vault, external, off local Cold storage: MinIO in this stack (Community); a MinIO vault installed on another server (Enterprise: the installer sets it up, managing or changing it later needs the licence); an existing external Object Lock S3/MinIO (Enterprise); none 6
--cold-years 1 to 30 5 Object Lock retention of cold files (years) 7
--cold-bucket name qubesight-worm Locked bucket, created by the control plane. 3 to 63 lowercase letters, digits, ., - 9
--cold-lock-mode COMPLIANCE or GOVERNANCE COMPLIANCE Object Lock mode. GOVERNANCE is for evaluation only.
--cold-endpoint HOST:PORT External store address (external only). No underscore. A https:// prefix implies --cold-secure. 9
--cold-secure [true\|false] false with --cold-auth keys, true with --cold-auth iam; true when given without a value Connect to the external store over HTTPS (external only) 9
--cold-access-key key External store access key, 3 to 128 characters (external only) 9
--cold-secret-key key External store secret key, 8 to 128 characters (external only). Prefer QUBESIGHT_COLD_S3_SECRET_KEY: command lines are visible with ps. 9
--cold-auth keys or iam keys External store access with keys, or with the cloud identity (AWS instance role through IMDSv2; no keys stored). With iam, --cold-endpoint is required on a new external setup and access keys are refused.
--cold-region region us-east-1 Region of the external store, in the form us-east-1 (external only)
--vault-host IP or name Vault server (vault only) 8
--vault-host-key SHA256:… Confirmed SSH host key fingerprint of the vault server. If the server's key differs, the password is not sent. 8
--vault-ssh-user account root SSH user on the vault server 8
--vault-ssh-port port 22 SSH port of the vault server 8
--vault-port port 9400 S3 port of the vault

The external-store options are accepted only with --cold-mode external, and the vault options only with --cold-mode vault. --cold-mode external with keys needs --cold-endpoint, --cold-access-key and the secret key; --cold-mode vault needs --vault-host and --vault-host-key.

The hot and cold values are written to .env only together with a cold-storage choice. On an existing installation that has no cold-storage setting, --hot-days, --cold-years and --cold-bucket are ignored with a warning unless --cold-mode is also given.

Hot-data default

The installer's hot-data choice (--hot-mode, --hot-days, --hot-disk-percent, or the web installer's hot-data step) is stored by the control plane on its first start, while no retention setting has been saved yet; after that you change it in Platform → Data and Backup → Retention. Without an installer value the control plane uses days mode, 365 days. An existing installation keeps its saved setting when it is upgraded; see Upgrading from 2.0.106.

Backup

Option Argument Default Effect Question
--backup-location minio, sftp, none minio when cold storage is on Where configuration and ClickHouse backups and the off-server log copies go. minio needs cold storage on. 11
--backup-lock-days 1 to 3650 30 Object Lock days of each configuration backup in the locked store (minio only) 12
--backup-sftp-host IP or name SFTP server 12
--backup-sftp-port port 22 SFTP port 12
--backup-sftp-user user SFTP user 12
--backup-sftp-path absolute path /srv/qubesight-yedek (interactive default) Backup directory; not /, no trailing /, no . or .. segments 12
--backup-sftp-host-key SHA256:… Confirmed host key fingerprint 12
--backup-sftp-key-file file Unencrypted private key instead of a password 12
--skip-backup-passphrase off Do not ask for the backup passphrase; set it later in Platform → Data and Backup → Backup settings 13

The SFTP options are accepted only with --backup-location sftp. With --yes, host, user, path and either QUBESIGHT_BACKUP_SFTP_PASSWORD or a key file are required.

Expected load

Option Argument Default Effect Question
--expected-tps 1 to 1,000,000 undefined Target events per second. Written to .env; the recommended environment is printed and resource limits are set (capped to the cores Docker sees). 15
--ingest-path syslog or kafka syslog How events arrive (only with --expected-tps) 16
--sql-profile simple or heavy simple SQL type (only with --expected-tps) 17
--no-apply-sizing apply Save the target and print the recommendation, but do not change resource limits in .env 18

Restore and disaster recovery

Option Argument Default Effect Question
--restore-from minio or sftp Restore a lost system from the latest backup at its backup location 14
--restore-endpoint HOST:PORT Locked store address
--restore-bucket name Locked store bucket
--restore-secure off Use HTTPS to the locked store
--restore-sftp-host IP or name SFTP server
--restore-sftp-port port 22 SFTP port
--restore-sftp-user user SFTP user
--restore-sftp-path path Backup folder
--restore-sftp-host-key SHA256:… SFTP server's host key fingerprint
--restore-hot-days 7 to 3650 the restored hot-day setting Days loaded into ClickHouse from the locked store
--trust-backup-ssh-key SHA256:… Expected fingerprint of the cluster product SSH key in the backup; added to root only if it matches, otherwise the installation stops. Only with --restore-from. Also QUBESIGHT_TRUST_BACKUP_SSH_KEY. 20
--recovery-bundle file Older DR procedure: write the primary's keys (GUARDIUM_SECRET_KEY, QUBESIGHT_MFA_KEY, BACKUP_ENCRYPTION_KEY) from a recovery bundle to .env before the services start. The passphrase comes from QUBESIGHT_RECOVERY_PASSPHRASE or is asked on the terminal. 19

The --restore-* options are accepted only with --restore-from. See Restore from a backup and Set up a disaster-recovery site.

Kafka

Option Effect
--enable-kafka-auth Move an older installation without Kafka authentication to SASL/SCRAM with ACLs: generates passwords, creates the users qs-admin, qs-worker, qs-ingest, qs-filebeat, topics and ACLs, enables SASL and recreates the clients. Topics and data are kept; ingestion pauses for a few seconds (Vector buffers). External Filebeat clients then need the user and password. New installations do this automatically.

Options used by the web installer

These can also be used by hand.

Option Argument Effect
--set KEY=VALUE Write an allowed .env key (repeatable; see below). Overrides the existing value.
--progress Also print machine-readable progress lines (##QS …). Same as QS_PROGRESS=1.
--defer-gateway Do not start the gateway (the only service that holds the web interface port on the host), because another process (the wizard) holds that port. The port is not checked for conflicts.
--start-gateway Only start and verify the gateway; the last step of a deferred installation

--set keys

Key Allowed values Effect
UI_PORT, API_PORT, SYSLOG_PORT, KAFKA_PORT, SNMP_TRAP_PORT, CLICKHOUSE_HTTP_PORT, CLICKHOUSE_NATIVE_PORT, MINIO_S3_PORT, MINIO_CONSOLE_PORT, PANDAPROXY_PORT, REDPANDA_ADMIN_PORT 1 to 65535 Host ports (defaults 3000, 8085, 5140, 9092, 162, 8123, 9002, 9000, 9001, 8082, 9644)
BIND_PUBLIC IPv4 address Listen address of the user and log-source ports (default 0.0.0.0)
BIND_ADMIN IPv4 address Listen address of the management and data ports (default 127.0.0.1)
COMPOSE_PROJECT_NAME lowercase letters, digits, _, -; starts with a letter or digit Compose project name (default qubesight)
TZ time zone name, for example Europe/Berlin Time zone of the services and the product's default display time zone. Without it, a new installation gets the server's time zone (since 2.0.109).
QUBESIGHT_DEFAULT_LANGUAGE tr or en Same as --language
GATEWAY_TLS on or off HTTPS on the gateway
GATEWAY_TLS_EXTRA_HOSTS comma-separated names or IPs (letters, digits, ., -, _, :, *) Extra names for the self-signed certificate
QUBESIGHT_MARKETPLACE empty, aws, azure Cloud marketplace installation (written by the marketplace first boot)
QUBESIGHT_AWS_PRODUCT_SKU, QUBESIGHT_AWS_ENTITLEMENT, QUBESIGHT_AWS_REGION, QUBESIGHT_AWS_INSTANCE_ID letters, digits, ., _, :, /, - AWS License Manager entitlement check (written by the AWS first boot)
QUBESIGHT_INGEST_PROVIDER empty, keepalived, aws-nlb Cluster log-intake address provider; aws-nlb uses an internal Network Load Balancer instead of a virtual IP
QUBESIGHT_INGEST_ADDRESS DNS name or IPv4 The Network Load Balancer's address
QUBESIGHT_INGEST_KAFKA_PORTS IP=port,IP=port Kafka forwarding ports per broker behind the load balancer
BOOTSTRAP_ADMIN_MUST_CHANGE empty, true, false true: the first administrator must change the password at the first sign-in
BOOTSTRAP_ADMIN_CREDENTIALS_IN empty, aws-secrets-manager, azure-key-vault Where the initial credentials were stored (shown as a hint on the sign-in page until the password is changed)

Environment variables read by install.sh

Variable Purpose
QUBESIGHT_ADMIN_PASSWORD First administrator password (new installation only; at least 12 characters, no spaces, quotes, $, #, \)
QUBESIGHT_BACKUP_PASSPHRASE Backup passphrase; with --restore-from, the passphrase of the backup
QUBESIGHT_COLD_S3_SECRET_KEY External cold-store secret key
QUBESIGHT_VAULT_SSH_PASSWORD Vault server SSH password, used once
QUBESIGHT_BACKUP_SFTP_PASSWORD SFTP backup password
QUBESIGHT_RECOVERY_PASSPHRASE Recovery bundle passphrase
QS_RESTORE_S3_ACCESS_KEY, QS_RESTORE_S3_SECRET_KEY Locked-store keys for a restore
QS_RESTORE_SFTP_PASSWORD SFTP password for a restore
QUBESIGHT_TRUST_BACKUP_SSH_KEY Same as --trust-backup-ssh-key
QUBESIGHT_CLUSTER_ENROLL 1 is the same as --cluster-enroll
QUBESIGHT_CLUSTER_SSH_USER Same as --cluster-ssh-user
QUBESIGHT_BUNDLE_DIR Directory of the unpacked offline bundle (containing images/ or models/) when it is neither the release directory nor its parent directory. The script stops if the directory has neither.
QUBESIGHT_ASSISTANT_MODEL_URL Download the model from an internal mirror (still verified with the same SHA-256)
QS_ASSISTANT_AUTO 0: do not enable the embedded model automatically on an unattended new installation
QS_ASSISTANT_DL_ATTEMPTS Number of model download attempts (default 3)
QS_ASSISTANT_DL_RETRY_SLEEP Seconds to wait between model download attempts (default 15)
QUBESIGHT_PODMAN_KEEP_CNI 1: do not switch Podman from CNI to netavark
QS_PROGRESS 1: same as --progress
QS_CONFIRM_FD Set by the web installer only (3): with --progress, install.sh asks the restore question about the backup's product SSH key on the wizard's progress screen and reads the answer from file descriptor 3. Do not set it yourself.
MINIO_IMAGE, MINIO_MC_IMAGE Not environment variables but .env keys read by install.sh and Compose: the MinIO server image and the image used for bucket preparation. Default for both qubesight/minio:RELEASE.2025-10-15T17-29-55Z-qs1. Set them in .env to use your own image when the default cannot be loaded. On a re-run, install.sh replaces the retired names minio/minio:RELEASE.2024-03-30T09-41-56Z, minio/mc and minio/mc:latest with the default when they are not present locally, and moves qubesight/minio:RELEASE.2024-03-30T09-41-56Z to the patched default after copying minio_data/.minio.sys once.

Secrets are never written to the command line; those that must persist are written to .env (mode 0600) or stored encrypted in PostgreSQL.

setup.sh options

Option Effect
--yes, -y Apply prerequisite fixes without asking
--check-only Only check and report; change nothing, do not start the wizard
-h, --help Print the help
any other option Passed to the web installer

Web installer options (npm run setup -- …)

Option Default Effect
--port N 3000 (then 3001 to 3010 if busy) Listen port; 0 lets the system choose
--host ADDRESS 127.0.0.1 with a desktop browser, 0.0.0.0 over SSH or headless Listen address
--local-only off Always 127.0.0.1
--allow-host NAME Additional accepted host name (repeatable)
--no-open off Do not open a browser
--http off Plain HTTP; only with --local-only
--lang tr\|en from the locale Language
--repo DIR this release Release directory
--skip-engine-check off Skip the start-up Docker check
-h, --help Help

uninstall.sh options

Option Effect
--yes, -y Do not ask for confirmation
--keep-data Keep named volumes and data directories, including the installation data in a separate data directory
--keep-config Keep .env, secrets/ and the virtual IP password file
--images Also remove the QubeSight images
-h, --help Help

See Uninstall.