pixi update#
About#
The update command checks if there are newer versions of the dependencies and updates the pixi.lock file and environments accordingly
Usage#
Arguments#
-
<PACKAGES>- The packages to update, space separated. If no packages are provided, all packages will be updated
May be provided more than once.
Options#
-
--no-install- Don't install the (solve) environments needed for pypi-dependencies solving
-
--dry-run (-n)- Don't actually write the lockfile or update any environment
-
--environment (-e) <ENVIRONMENTS>- The environments to update. If none is specified, all environments are updated
May be provided more than once.
-
--platform (-p) <PLATFORMS>- The platforms to update. If none is specified, all platforms are updated
May be provided more than once.
-
--json- Output the changes in JSON format
Config Options#
-
--tls-no-verify- Do not verify the TLS certificate of the server
-
--auth-file <AUTH_FILE>- Path to the file containing the authentication token
-
--pypi-keyring-provider <PYPI_KEYRING_PROVIDER>- Specifies whether to use the keyring to look up credentials for PyPI
options:disabled,subprocess
-
--concurrent-solves <CONCURRENT_SOLVES>- Max concurrent solves, default is the number of CPUs
-
--concurrent-downloads <CONCURRENT_DOWNLOADS>- Max concurrent network requests, default is
50
Global Options#
-
--manifest-path <MANIFEST_PATH>- The path to
pixi.toml,pyproject.toml, or the workspace directory
Description#
The update command checks if there are newer versions of the dependencies and updates the pixi.lock file and environments accordingly.
It will only update the lock file if the dependencies in the manifest file are still compatible with the new versions.
Examples#
pixi update numpy # (1)!
pixi update numpy pandas # (2)!
pixi update --manifest-path ~/myworkspace/pixi.toml numpy # (3)!
pixi update --environment lint python # (4)!
pixi update -e lint -e schema -e docs pre-commit # (5)!
pixi update --platform osx-arm64 mlx # (6)!
pixi update -p linux-64 -p osx-64 numpy # (7)!
pixi update --dry-run numpy # (8)!
pixi update --no-install boto3 # (9)!
- This will update the
numpypackage to the latest version that fits the requirement. - This will update the
numpyandpandaspackages to the latest version that fits the requirement. - This will update the
numpypackage to the latest version in the manifest file at the given path. - This will update the
pythonpackage in thelintenvironment. - This will update the
pre-commitpackage in thelint,schema, anddocsenvironments. - This will update the
mlxpackage in theosx-arm64platform. - This will update the
numpypackage in thelinux-64andosx-64platforms. - This will show the packages that would be updated without actually updating them in the lockfile
- This will update the
boto3package in the manifest and lockfile, without installing it in an environment.