Skip to main content

jnc reinstall

Re-installs an environment, forcing a fresh installation of packages. If specific packages are named, only those packages are reinstalled. Otherwise, the entire environment is reinstalled from scratch. If the lock file is not up-to-date with the manifest, it will be updated first. By default, only the default environment is reinstalled. Use --environment to target a specific environment, or --all to reinstall every environment in the workspace.

Usage

jnc reinstall [OPTIONS] [PACKAGE]...

Arguments

ArgumentDescription
PACKAGEOne or more package names to reinstall. If omitted, the entire environment is reinstalled.

Options

OptionDescription
-e, --environment <ENV>The environment(s) to reinstall. Can be specified multiple times. Defaults to default.
-a, --allReinstall all environments. Conflicts with --environment.
--frozenUse the lockfile as-is, do not update it even if the manifest has changed.
--lockedRequire the lockfile to be up-to-date with the manifest, abort if not.

Global Options

OptionDescription
-m, --manifest-path <PATH>Path to pixi.toml, pyproject.toml, or the workspace directory.

Examples

Reinstall the entire default environment

jnc reinstall

Reinstall specific packages

jnc reinstall numpy scipy

Reinstall a specific environment

jnc reinstall --environment test

Reinstall all environments

jnc reinstall --all

Reinstall without updating the lock file

jnc reinstall --frozen