Skip to content

Global Command-line Options ​

These options apply to every subcommand and may appear before or after it. Most also have an OSDK_* environment variable; the complete list is in Environment Variables.

text
osdk [GLOBAL OPTIONS] <COMMAND> [COMMAND OPTIONS]
OptionEnvironmentEffect
-v, --verboseOSDK_LOG separately sets a tracing filterRepeat for info, debug, then trace output
-q, --quiet—Hide download/install progress; it does not hide normal results or approve deletion
-j N, --jobs NOSDK_JOBSMaximum concurrent downloads/installations; CLI 0 does not override config, and execution uses at least 1
--model-jobs NOSDK_MODEL_JOBSHow many models model sync downloads at once (default 2); independent of, and multiplied by, --jobs, which parallelizes files within one model
-y, --yesOSDK_YESApprove uninstall, cache clean, and real GC
--source ID—Put source ID first while retaining fallbacks; tool requests must use the canonical backend ID (for example, node, not nodejs)
--refresh-sources—Force re-probing for install, use, upgrade, and exec; model sync refreshes only with no explicit endpoint/pin, auto selection, and online mode; no effect on lock, outdated, or list-remote
--source-mode MODEOSDK_SOURCE_MODEauto (default) validates a mirror set in the environment and ranks it together with the built-in mirrors; env uses only that mirror and fails when it is missing or unusable
--offlineOSDK_OFFLINEProhibit network access and use cached metadata/artifacts only
--require-checksumsOSDK_REQUIRE_CHECKSUMSReject an artifact without a normal checksum or trusted attestation digest
--attestations POLICYOSDK_ATTESTATIONSoff, if-available, or required
--prerelease POLICYOSDK_PRERELEASEnever, if-explicit, or allow
--lang LANGOSDK_LANGen or zh; affects help and argument errors too
-h, --help—Show help
-V, --version—Show the version

CLI boolean flags enable a behavior for that invocation; the same flag cannot turn a configured true back to false. For example, disable signature verification with OSDK_VERIFY_SIGNATURES=false or configuration.

CLI confirmation and selection prompts require an interactive terminal. A nonempty CI value disables these prompts, except false (case-insensitive) and 0. Pass --yes to approve confirmations or accept recommended choices.

--download-cache-max-size BYTES|2GiB|unlimited (OSDK_DOWNLOAD_CACHE_MAX_SIZE) overrides retained download-copy capacity for this invocation. 0 removes copies after success and never limits downloadable file size. See Caches and Cleanup.

Released under the MIT License