CLI¶
Usage¶
juvix [Global options] ((-v|--version) | (-h|--help) | COMPILER_CMD | UTILITY_CMD)
Informative options¶
-v,--versionPrint the version and exit--numeric-versionShow only the version number-h,--helpShow this help text
Global Command flags¶
--no-colorsDisable globally ANSI formatting--vscodeEnable VSCode compatible output--show-name-idsShow the unique number of each identifier when pretty printing--no-terminationDisable termination checking--no-positivityDisable positivity checking for inductive types--no-coverageDisable coverage checking for patterns--no-stdlibDo not use the standard library--internal-build-dir BUILD_DIRDirectory for compiler internal output--stdinRead from Stdin--offlineDisable access to network resources--log-level LOG_LEVELDetermines 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 THREADSNumber of physical threads to run (default: auto)
Main Commands¶
htmlGenerate HTML output from a Juvix filetypecheckTypecheck a Juvix filecompileCompile a Juvix fileevalEvaluate a Juvix file
Utility Commands¶
doctorPerform checks on your Juvix development environmentinitInteractively initialize a Juvix project in the current directoryreplRun the Juvix REPLformatFormat a Juvix file or Juvix projectcleanDelete build artifacts
Dev Commands¶
juvix dev COMMAND
compileCompile a Juvix file to an internal languageparseParse a Juvix filescopeParse and scope a Juvix filehighlightHighlight a Juvix filecoreSubcommands related to JuvixCoreasmSubcommands related to JuvixAsmrootShow the root path for a Juvix projectterminationSubcommands related to termination checkinginternalSubcommands related to InternalcasmSubcommands related to Cairo AssemblyanomaSubcommands related to AnomanockmaSubcommands related to NockmaruntimeSubcommands related to the Juvix runtimereplRun 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).