tooling

nmc CLI

A Go binary that handles the full cache flow — request, extraction, retries, and npm ci fallback. Drop it into any CI runner.

usage

Set four environment variables and run the binary. It reads your manifests, calls the API, extracts node_modules, retries up to five times on failure, and falls back to npm ci automatically.

Shell — Linux amd64
curl -fsSL "https://www.node-modules-cache.com/nmc-cli/nmc-linux-amd64" \
  -o nmc && chmod +x nmc

export NMC_TOKEN="${NMC_ACCESS_TOKEN}"
export NMC_BASE_DIR="/path/to/project"
export NMC_DOCKER_IMAGE="node:22.15.0"
export NMC_ARCHITECTURE="x64"

./nmc

environment variables

NMC_TOKEN

Your API access token. Store it as a CI secret.

NMC_BASE_DIR

Absolute path to your project directory. package.json and package-lock.json must be here.

NMC_DOCKER_IMAGE

Your CI Docker image reference, e.g. node:22.15.0. Used as part of the cache key.

NMC_ARCHITECTURE

x64 or arm64. Must match your runner's CPU architecture.

pinning a version

Append a release tag to any download URL to pin to a specific version. Without a tag, you always get the latest.

example — pin to a specific release
curl -fsSL "https://www.node-modules-cache.com/nmc-cli/nmc-linux-amd64/1.0.0" -o nmc && chmod +x nmc
1.0.0
(>=10)
Node.js >=10 Download
(arm64)
Windows arm64 arm64 Download
(amd64)
Windows amd64 amd64 Download
(arm64)
Linux arm64 arm64 Download
(amd64)
Linux amd64 amd64 Download
03 Apr 2026
0.0.3-rc.1
(>=16)
Node.js >=16 Download
(arm64)
Windows arm64 arm64 Download
(amd64)
Windows amd64 amd64 Download
(arm64)
Linux arm64 arm64 Download
(amd64)
Linux amd64 amd64 Download
27 Oct 2025
0.0.2
(arm64)
Windows arm64 arm64 Download
(amd64)
Windows amd64 amd64 Download
(arm64)
Linux arm64 arm64 Download
(amd64)
Linux amd64 amd64 Download
27 Oct 2025
0.0.1
(arm64)
Windows arm64 arm64 Download
(amd64)
Windows amd64 amd64 Download
(arm64)
Linux arm64 arm64 Download
(amd64)
Linux amd64 amd64 Download
26 Oct 2025