Global Options
Global options are the flags accepted by every OmicsBox Engine tool, in addition to that tool's own inputs and parameters. They control where results go, how output is formatted and how the run behaves. You can place most of them before or after the tool name. The exceptions are --detach, --local-folder and --validate-only, which must come after the tool name. The Engine refuses them before it, with exit code 2.
omicsbox --output-format JSON split-fastx --i-input-files-single-end seqs.fasta …
omicsbox split-fastx --i-input-files-single-end seqs.fasta … --output-format JSON --local-folder ./out
Each tool's own inputs and parameters are documented on that tool's manual page and by omicsbox describe <tool>. The options below are shared by all tools and are not repeated on each tool's page.
Options
| Option | Default | Description |
|---|---|---|
--local-folder <path> |
none | Download outputs to this folder on your machine. |
--cloud-folder <furi> |
none | Write outputs to this cloud location, for example s3://bucket/prefix/. |
--output-format <format> |
TEXT |
TEXT or JSON. JSON prints progress as newline-delimited JSON on standard error and a run manifest on standard output. |
--config <file> |
none | Read a tool's input and parameter values from a YAML file. See Configuration files. Command-line flags override the file. |
--detach |
off | Submit a cloud job and return immediately, printing its run ID. Ignored by tools that run on your machine. |
--validate-only |
off | Check the command line, subscription, option values and inputs, then exit without uploading, submitting or writing anything. See Check a command before running it. |
--keep-inputs-in-cloud |
off | Keep uploaded inputs in the cloud after the run, for chaining pipeline steps. |
--strict |
off | Treat parameter validation warnings as errors and stop the run. By default, warnings are printed and the run continues. |
--mute |
off | Hide the live cloud log messages that are otherwise shown while a job runs. |
--verbose, -v |
off | Show additional diagnostic messages during execution. |
--help, -h |
none | Show usage for the command. |
--version, -V |
none | Show the Engine version. |
Precedence
When the same setting can come from more than one place, the Engine uses this order, highest priority first:
- a command-line flag;
- an environment variable;
- the configuration file,
~/.omicsboxEngine/config.yaml; - the built-in default.
Environment variables
| Variable | Effect |
|---|---|
OMICSBOX_API_KEY |
Personal Access Token. Takes priority over the token saved by omicsbox auth. |
OMICSBOX_LOCAL_FOLDER |
Default for --local-folder. |
OMICSBOX_CLOUD_FOLDER |
Default for --cloud-folder. |
OMICSBOX_OUTPUT_FORMAT |
Default output format, TEXT or JSON. |
OMICSBOX_KEEP_INPUTS_IN_CLOUD |
Default for --keep-inputs-in-cloud, true or false. |
OMICSBOX_CONFIG |
Path to the configuration file, instead of ~/.omicsboxEngine/config.yaml. |
OMICSBOX_CATALOG |
Path to the tool catalog cache, instead of ~/.omicsboxEngine/catalog.json. |
Setting OMICSBOX_API_KEY, for example from a secret, is the recommended way to supply the token in continuous integration (CI) systems and containers. See Servers and automated pipelines.
Persistent configuration
~/.omicsboxEngine/config.yaml stores defaults for the output options, so that you do not repeat them on every command. Manage it with the config command:
omicsbox config set local_folder ~/omicsbox-outputs
omicsbox config set cloud_folder s3://my-bucket/omicsbox/
omicsbox config set output_format JSON
omicsbox config list
Recognized keys:
| Key | Effect |
|---|---|
local_folder |
Default local output folder, as --local-folder. |
cloud_folder |
Default cloud output location, as --cloud-folder. |
output_format |
Default output format, TEXT or JSON, as --output-format. |
output_location |
Where to keep outputs: LOCAL, CLOUD or BOTH. By default, this is inferred from the folders you set. |
Credentials do not belong in the configuration file
config set rejects any key that looks like a credential, such as one containing token, api_key, skey, password or secret. Sign in with omicsbox auth, or set the OMICSBOX_API_KEY environment variable instead.
The configuration file ~/.omicsboxEngine/config.yaml is different from a tool's --config file. The first sets defaults for every command. The second supplies one tool's inputs and parameters for a single run.