CLI Reference
The paradox CLI provides commands for type checking, code generation, formatting, interactive exploration, and language server support.
Commands
| Command | Description |
|---|---|
|
Transpile to target language |
|
Start Paradox |
|
Paradox Language Server |
|
Clean Paradox workspace |
|
Check a la carte |
|
Parse without checking |
|
Format |
|
Read Print Update Loop |
|
Print available modules |
generate
paradox generate (--haskell | --typescript | --rust | --elixir |
--python | --cpp | --scala | --ocaml | --java |
--nix | --sqlite | --postgresql |
--json TYPE [--out FILEPATH] |
--yaml TYPE [--out FILEPATH] | --spec [--out FILEPATH])
[--path PATH]
| Option | Description |
|---|---|
|
output Haskell |
|
output TypeScript |
|
output Rust |
|
output Elixir |
|
output Python |
|
output C++23 |
|
output Scala 3 |
|
output OCaml |
|
output Java 17+ |
|
output Nix |
|
output SQLite DDL |
|
output PostgreSQL DDL |
|
output JSON for a given constant |
|
output YAML for a given constant |
|
output typed AST as JSON |
|
path to write file (for |
|
where are the source dox files |
check
paradox check [--ast | --render] [--path PATH]
| Option | Description |
|---|---|
|
print checked program AST |
|
print checked program as |
|
where are the source dox files |
format
paradox format [--check | --stdout] [FILES...]
| Option | Description |
|---|---|
|
check if files are formatted (exit 1 if not) |
|
print formatted output to stdout |
|
specific files to format (default: all |
parse
paradox parse [--path PATH]
Parse .dox files without type checking. Useful for verifying syntax.
atlas
paradox atlas
Print all modules available on the PARADOX_ATLAS search path. See PARADOX_ATLAS for configuration.
Common Options
--path PATH-
Specify the directory containing
.doxsource files. Defaults to the current directory. -h, --help-
Show help text for any command.
Examples
# Type-check the current directory
paradox check
# Generate TypeScript from a specific path
paradox generate --typescript --path ./models
# Format all .dox files in place
paradox format
# Check what modules are available
paradox atlas
# Launch the REPL
paradox repl
# Start the language server
paradox lsp