config¶
Manage slurmq configuration.
Subcommands¶
init¶
Interactive configuration wizard.
Creates ~/.config/slurmq/config.toml with your cluster settings.
The wizard prompts for:
- Cluster name
- Account
- QoS list
- Quota limit
- Rolling window days
show¶
Display current configuration.
Shows the merged configuration from all sources (env vars, config file, defaults).
path¶
Show config file location.
Output:
validate¶
Validate configuration file.
Checks for:
- TOML syntax errors
- Invalid threshold values (must be 0-1)
- Missing cluster definitions
- Unknown configuration keys
- Logical errors (e.g., warning > critical threshold)
Example output:
Or with errors:
error: Config validation failed:
- monitoring.warning_threshold (1.5) must be between 0 and 1
- default_cluster "nonexistent" not found in clusters
set¶
Set a configuration value.
Examples:
# Set default cluster
slurmq config set default_cluster stellar
# Set nested value
slurmq config set monitoring.warning_threshold 0.9