Global vs project scope
nem works with two scopes:
- Project (default) — the nearest
nem.verin 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 projectA project environment is layered on top of the global one. Run nem refresh
after changing either file to re-sync the current shell.