Skip to content

nem.ver format

A nem.ver file declares the packages and environment variables for an environment. nem reads the nearest one in the current directory or an ancestor; the global file lives at ~/.nem/nem.ver.

You normally manage it through commands (nem use, nem set-env, nem tidy) rather than editing it by hand.

require (
	kubectl v1.34.1
)

require (
	helm v3.16.0 // indirect
)

env (
	KUBECONFIG=./kube/config
)

require blocks

One package per line, written as name version. Packages you add directly go in the first require block. Their dependencies are pulled in as indirect packages — written to a second require block and marked // indirect. nem tidy removes indirect entries that no direct package needs anymore.

env block

One variable per line, written as KEY=value. Managed with nem set-env and nem unset-env, and applied to your shell while the environment is active.

Lines beginning with // are comments.