canasta config set

From Canasta Wiki

canasta > config > set

canasta config set

Change configuration values

Synopsis

Change one or more configuration values in the instance .env file. Handles side effects automatically (e.g. updating wikis.yaml when changing HTTPS_PORT).

canasta config set [flags]

Examples

canasta config set MW_SITE_SERVER=https://example.com

Flags

Flag Shorthand Description Default Required Orchestrator
--force -f Allow setting unrecognized keys Both
--id -i Canasta instance ID * Both
--no-restart Save settings without restarting the instance Both
--secret Write to the gitignored config/secrets.env instead of .env (opaque app secrets; on K8s these feed a per-instance Secret consumed by sidecars via secretKeyRef). Bypasses .env validation and side effects. Both
--settings KEY=VALUE pairs to set Both
--web With --secret, also expose the key(s) to the web and jobrunner pods via secretKeyRef (for a secret the MediaWiki process itself needs). Recorded in config/secrets-web (key names only). Both

* Defaults to the Canasta instance matching the current directory, if any.

Global flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both