Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Overview

The wcl CLI provides tools for working with WCL documents — parsing, validating, evaluating, formatting, querying, and converting configuration files.

Installation

cargo install wcl

Usage

wcl <subcommand> [options] [args]

Subcommands

SubcommandDescription
validateParse and validate a WCL document through all pipeline phases
evalEvaluate a document and print the resolved output
fmtFormat a WCL document
queryExecute a query expression against a document
inspectInspect the AST, HIR, scopes, or dependency graph
convertConvert between WCL and other formats (JSON, YAML, TOML)
setSet an attribute value by path
addAdd a new block to a document
removeRemove a block or attribute by path
lspStart the WCL language server

Help

wcl --help
wcl <subcommand> --help

Global Flags

FlagDescription
--help, -hPrint help information
--version, -VPrint version information

Exit Codes

CodeMeaning
0Success
1Validation or evaluation error
2Usage / argument error