Skip to content

Commands

Every nem command, grouped as in nem --help. Every command also accepts --color, --narration, --quiet, and --verbose; see nem.

Environment

CommandDescription
nem execRun a command in the composed environment
nem lockRegenerate the lockfile from nem.toml and install
nem statusShow declared packages and composed environment variables
nem syncInstall locked packages missing on this machine
nem unuseRemove declared packages
nem updateUpdate declared packages to their latest versions
nem useDeclare and install packages
nem whichShow where a command resolves in the composed environment

Discovery

CommandDescription
nem infoShow a package's details and available versions
nem searchSearch catalogs for packages

Catalogs

CommandDescription
nem catalogManage catalogs

Shell integration

CommandDescription
nem activateActivate nem for the current shell
nem deactivateDeactivate nem for the current shell
nem envPrint the shell script that applies the composed environment

Maintenance

CommandDescription
nem cleanReclaim disk space in NEM_HOME
nem selfManage this nem installation

Catalog consumption

CommandDescription
nem catalog addAdd a catalog
nem catalog disableDisable configured catalogs
nem catalog enableEnable configured catalogs
nem catalog listList configured catalogs
nem catalog removeRemove a catalog
nem catalog reorderReorder catalog precedence
nem catalog updateUpdate oci catalogs from their remote

Catalog maintenance

CommandDescription
nem catalog buildBuild a catalog's build-from-source packages on the host platform
nem catalog bumpAdd newer upstream versions to package manifests
nem catalog diffCompare a base catalog's package manifests against a target catalog
nem catalog excludeExclude package versions, with a reason shown to users
nem catalog fillDownload a catalog's upstream artifacts and publish them as archives
nem catalog fmtRewrite package manifests to canonical form
nem catalog lintValidate package manifests in a catalog
nem catalog mirrorReplicate a catalog and its archives to another registry
nem catalog outdatedReport packages whose upstream has a newer version
nem catalog publishPublish a catalog to an OCI registry
nem catalog testInstall packages and run their declared test steps
nem catalog unexcludeLift the exclusion of package versions

nem completion

CommandDescription
nem completion bashGenerate the autocompletion script for bash
nem completion fishGenerate the autocompletion script for fish
nem completion powershellGenerate the autocompletion script for powershell
nem completion zshGenerate the autocompletion script for zsh

nem self

CommandDescription
nem self updateUpdate nem to the latest build on its channel

Other commands

CommandDescription
nem completionGenerate the autocompletion script for the specified shell
nem versionPrint the version of nem