Nubo CLI
The nubo command is the main command-line interface for the Nubo language.
You can use it to run Nubo files directly or to execute CLI commands.
nubo <file|command> [flags]You can also run subcommands:
nubo [command]Running nubo without a file or command prints the help text and returns an error because at least one argument is required.
Error: requires at least 1 arg(s), only received 0nubo <file|command> [flags]nubo [command]Run a Nubo File
Section titled “Run a Nubo File”Pass a Nubo file path as the first argument.
nubo main.nuboIf the file does not exist, Nubo prints:
File does not existIf the executed file returns a value, the CLI prints that value.
Global Flags
Section titled “Global Flags”These flags are available on the root command.
| Flag | Description |
|---|---|
-d, --dev | Run the program in debug mode. |
-h, --help | Show help. |
--loglevel string | Language tokenizer and interpreter log level. |
--nocolor | Disable colorized output. |
-v, --version | Print the Nubo version. |
Development Mode
Section titled “Development Mode”Use --dev or -d to run in development/debug mode.
nubo main.nubo --devShort form:
nubo main.nubo -dInternally, this sets the NUBO_DEV environment value for the process.
Disable Color
Section titled “Disable Color”Use --nocolor to disable colorized terminal output.
nubo main.nubo --nocolorLog Level
Section titled “Log Level”Use --loglevel to control tokenizer and interpreter logging.
nubo main.nubo --loglevel debugVersion
Section titled “Version”Use --version or -v to print the Nubo version.
nubo --versionAvailable Commands
Section titled “Available Commands”| Command | Description |
|---|---|
completion | Generate the autocompletion script for the specified shell. |
config | Print the current configuration file path and parsed configuration. |
del | Delete a package from the current project. |
download | Download all dependencies. |
format | Format Nubo files for better readability. |
get | Add a package to the current project from a remote host. |
help | Help about any command. |
init | Initialize a Nubo package. |
plug | Initialize a Nubo plugin. |
prepare | Prepare Nubo files for faster execution. |
serve | Start an HTTP server to serve Nubo files. |
Command Help
Section titled “Command Help”Every command supports --help.
nubo serve --helpGeneral help:
nubo helpYou can also ask for help about a specific command:
nubo help serve