Skip to content

Run

Run a Nubo file by passing the file path to the nubo command.

Terminal window
nubo main.nubo
Terminal window
nubo <file> [flags]
Terminal window
nubo src/main.nubo

Before running the file, Nubo checks whether the file exists.

If the file does not exist, it prints:

File does not exist

When runtime events are enabled in the Nubo configuration, the CLI creates the default event provider before running the file.

runtime:
events:
enabled: true

If the executed file returns a value, Nubo prints it.

return "done"

Output:

done
Terminal window
nubo main.nubo --dev
nubo main.nubo --loglevel debug
nubo main.nubo --nocolor