CLI Reference
NIM LLM Command-Line Interface
NIM for LLMs is invoked as a container entrypoint. The first positional argument selects the action to perform; any remaining arguments are passed through to the underlying backend (vLLM).
Synopsis
When no action is specified, nim-serve is used by default.
Actions
nim-serve
Start the NIM inference server. This is the default action.
Remaining arguments are forwarded to vLLM. Supports the
--dry-run flag to preview the resolved configuration
without launching.
nim-serve-ray
Start the NIM server with Ray for multi-node
tensor-parallel inference. Requires --head (leader)
or --head-address (worker).
list-model-profiles
List all available model profiles for the current hardware.
download-to-cache
Download the selected model profile to the local cache
without starting the server. Accepts --all to
download all profiles, or -p <profile> for a
specific one.
download-model
Download the selected model profile and materialize a workspace (without
starting the server). --workspace-path selects the target directory;
when omitted a fresh temp directory is used, the same way nim-serve
allocates its workspace. Used by the Dynamo frontend pod, which allocates the
directory and passes the same path to dynamo.frontend --model-path for MDC
metadata resolution. When NIM_IGNORE_WEIGHTS is set, only non-weight
metadata files are materialized.
create-model-store
Materialize a cached model profile into a model store
directory. Requires -p <profile> and -m <path>.
show-build-info
Print build metadata (git SHAs, versions).
mirror
Mirror cached model profiles to an S3-compatible bucket or GCS bucket.