Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DevDonzo/warden/llms.txt
Use this file to discover all available pages before exploring further.
warden config helps you manage the .wardenrc.json file that Warden reads at startup. Use it to generate a default configuration for a new project, inspect the resolved configuration in effect for the current directory, or validate an existing file for schema errors before committing it to version control.
Synopsis
With no flags,
warden config prints a usage hint: Use --show, --create, or --validate. At least one action flag is required for the command to do anything.Flags
Write a default
.wardenrc.json to the current directory (or to the path specified by --path). Warden will not overwrite an existing file — if the target path already exists, the command exits with an error. Delete or rename the existing file first if you want to regenerate it.Read and print the resolved configuration that Warden would use for the current directory. Useful for verifying that environment-specific overrides and the correct file are being picked up.
Parse the configuration file and run schema validation against it. Prints a success message if the file is valid, or lists every validation error if it is not. Exits with code
1 on validation failure.Override the path to the configuration file. Applies to
--create, --show, and --validate. When omitted, Warden looks for .wardenrc.json in the current working directory.Examples
Default configuration structure
Runningwarden config --create generates a .wardenrc.json with safe defaults that you can then customise for your project:
Related commands
warden setup— interactive wizard that creates and populates the configuration file for youwarden validate— validate the entire environment, not just the config filewarden scan— reads.wardenrc.jsonat runtime; command-line flags take precedence over file values