Skip to main content

jnc update

Checks if there are newer versions of dependencies and updates the pixi.lock file and environments accordingly. Only updates packages to versions still compatible with the version constraints defined in the manifest. If no packages are specified, all packages are updated. You can scope updates to specific environments and platforms.

Usage

jnc update [OPTIONS] [PACKAGES]...

Arguments

ArgumentDescription
[PACKAGES]...The packages to update, space-separated. If none are provided, all packages are updated.

Options

OptionShortDescription
--environment <ENV>-eThe environments to update. Can be specified multiple times. If none are given, all environments are updated.
--platform <PLATFORM>-pThe platforms to update. Can be specified multiple times. If none are given, all platforms are updated.
--dry-run-nShow what would be updated without writing changes to the lock file or environment.
--jsonOutput the changes in JSON format.
--no-installUpdate the lock file without installing the environment.

Global Options

OptionShortDescription
--manifest-path <PATH>-mPath to pixi.toml or the workspace directory.

Examples

Update all packages:
jnc update
Update specific packages:
jnc update python numpy
Update only in a specific environment:
jnc update --environment test
Preview changes without applying them:
jnc update --dry-run
Update for a specific platform:
jnc update --platform linux-aarch64
Output changes as JSON:
jnc update --json