Skip to content
Global vs project scope

Global vs project scope

nem works with two scopes:

  • Project (default) — the nearest nem.ver in the current directory or an ancestor. Tools and variables apply only inside that project tree.
  • Global~/.nem/nem.ver. Tools and variables apply everywhere.

Most environment commands accept --global / -g to target the global file:

nem use --global ripgrep        # available in every directory
nem use kubectl@v1.34.1         # only in this project

A project environment is layered on top of the global one. Run nem refresh after changing either file to re-sync the current shell.