CLI¶
Usage¶
juvix [Global options] ((-v|--version) | (-h|--help) | COMPILER_CMD | UTILITY_CMD)
Informative options¶
-v,--version
Print the version and exit--numeric-version
Show only the version number-h,--help
Show this help text
Global Command flags¶
--no-colors
Disable globally ANSI formatting--vscode
Enable VSCode compatible output--show-name-ids
Show the unique number of each identifier when pretty printing--no-termination
Disable termination checking--no-positivity
Disable positivity checking for inductive types--no-coverage
Disable coverage checking for patterns--no-stdlib
Do not use the standard library--internal-build-dir BUILD_DIR
Directory for compiler internal output--stdin
Read from Stdin--offline
Disable access to network resources--log-level LOG_LEVEL
Determines how much log the compiler produces.error < warn < info < progress < verbose < debug--dev-show-thread-ids
[DEV] Show the thread id when compiling a module-N,--threads THREADS
Number of physical threads to run (default: auto)
Main Commands¶
html
Generate HTML output from a Juvix filetypecheck
Typecheck a Juvix filecompile
Compile a Juvix fileeval
Evaluate a Juvix file
Utility Commands¶
doctor
Perform checks on your Juvix development environmentinit
Interactively initialize a Juvix project in the current directoryrepl
Run the Juvix REPLformat
Format a Juvix file or Juvix projectclean
Delete build artifacts
Dev Commands¶
juvix dev COMMAND
compile
Compile a Juvix file to an internal languageparse
Parse a Juvix filescope
Parse and scope a Juvix filehighlight
Highlight a Juvix filecore
Subcommands related to JuvixCoreasm
Subcommands related to JuvixAsmroot
Show the root path for a Juvix projecttermination
Subcommands related to termination checkinginternal
Subcommands related to Internalcasm
Subcommands related to Cairo Assemblyanoma
Subcommands related to Anomanockma
Subcommands related to Nockmaruntime
Subcommands related to the Juvix runtimerepl
Run the Juvix dev REPL
CLI Auto-completion Scripts¶
The Juvix CLI can generate auto-completion scripts. Follow the instructions below for your shell.
Note
NB: You may need to restart your shell after installing the completion script.
Bash¶
Add the following line to your bash init script (for example
~/.bashrc
).
eval "$(juvix --bash-completion-script juvix)"
Fish¶
Run the following command in your shell:
juvix --fish-completion-script juvix
> ~/.config/fish/completions/juvix.fish
ZSH¶
Run the following command in your shell:
juvix --zsh-completion-script juvix > $DIR_IN_FPATH/_juvix
where $DIR_IN_FPATH
is a directory that is present on the ZSH FPATH
variable (which
you can inspect by running echo $FPATH
in the shell).