Skip to content

volta fetch

The volta fetch command will allow you to fetch a tool into the local cache, without setting it as a default or making it available, for future offline use. It has the following syntax:

bash
Fetches a tool to the local machine

USAGE:
    volta fetch [FLAGS] <tool[@version]>...

FLAGS:
        --verbose    Enables verbose diagnostics
        --quiet      Prevents unnecessary output
    -h, --help       Prints help information

ARGS:
    <tool[@version]>...    Tools to fetch, like `node`, `yarn@latest` or `your-package@^14.4.3`.

Examples

Fetch Node.js

bash
# Fetch latest LTS version of Node
volta fetch node

# Fetch specific Node version
volta fetch node@16.14.2

Fetch Package Managers

bash
# Fetch latest npm
volta fetch npm

# Fetch specific yarn version
volta fetch yarn@1.22.19

Fetch Global Packages

bash
# Fetch TypeScript
volta fetch typescript

# Fetch specific package version
volta fetch eslint@8.15.0

Use Cases

The volta fetch command is particularly useful in scenarios where:

  • You want to prepare for offline development by pre-downloading tools
  • You plan to use a tool in the future but don't want to set it as the default now
  • You're preparing a development environment for other team members

Unlike volta install, fetch doesn't change any of your current tool settings or make the tool available in your PATH. It simply ensures the tool is downloaded and cached locally.

Released under the BSD 2-Clause License.