DataMind Oda usually runs as the desktop app, and it can also run from a command line. A command-line run starts one profile, and flags on the same line adjust how that run behaves. This page is the reference for how Oda reads that line: the flags, what wins when a flag and the settings file disagree, and what the help and error output do.
A command-line run starts one profile, and the profile name decides which setup the run uses. Name the profile on the command line when Oda starts.
web, headless, acp, sdk and sdk-minimal; Oda profiles and launchers describes what each serves.invalid profile name "<name>"; a name that does not exist yet stops the start (profile "<name>" does not exist), and the message names the plugin command that creates the profile.A flag wins over the matching value in the settings file: --port 8080 serves on port 8080 even when the settings name another port.
-- needs the doubled form, -- --.--help prints and exits. It prints the help for the app and exits with code 0, without starting anything.error: --port must be a number, got "<value>".Oda can show what a profile will run, without starting it.
--dump-config prints the settings as Oda composes them from their layers, with each source named in comments: # == <label>, or # == <label>, patched by <layers> when a later layer changed the row. A patch that names an entry the setup does not have is skipped with a warning and the dump still prints; a configuration that cannot be read or parsed stops the dump instead.schema, partial, absent, unsupported or error. It never prints configuration values or the sources of expressions.Name the profile for the run on the command line. A command-line run starts one profile, and the shipped templates are web, headless, acp, sdk and sdk-minimal; Oda profiles and launchers describes what each serves.
Under the Oda home folder, one folder per profile name. Oda's home folder and settings files covers how the folder is chosen and shown.
Put the shipped template on the line when the new profile starts. The shipped templates are web, headless, acp, sdk and sdk-minimal.
A flag beats the matching value in the settings file: --port 8080 serves on port 8080 even when the settings name another port. The rule holds when the settings value is written as an expression, and flags are resolved once, when Oda starts.
Yes. Flags are resolved once, when Oda starts, and a later settings reload never resets them. Hot reload covers what a reload does change.
Write it doubled: -- --. A literal -- needs that form.
A flag value was refused. The app prints its error and exits with a code other than 0; error: --port must be a number, got "<value>" is one such message. Correct the value, or drop the flag, and start again.
--help start anything?No. --help prints the help for the app and exits with code 0, without starting anything. Help, version and error output are handled by the launcher, before the app's own work begins.