Skip to main content

jnc import

Imports a file into an environment in an existing workspace. Supports conda environment.yml files and pip requirements.txt files. The imported dependencies, channels, and platforms are added to the workspace manifest. If --format is not specified, each supported format is tried in order until one succeeds.

Usage

jnc import [OPTIONS] <FILE>

Arguments

ArgumentDescription
<FILE>Path to the file to import (e.g., environment.yml or requirements.txt).

Options

OptionShortDescription
--environment <ENV>-eName of the environment to import into. If the environment does not exist, it is created. Defaults to the name from the input file (conda-env format).
--feature <FEATURE>-fName of the feature to create for the imported dependencies. Defaults to the environment name.
--format <FORMAT>Explicitly set the input file format: conda-env or pypi-txt. If not given, formats are tried automatically.
--platform <PLATFORM>-pPlatforms to add for the imported environment. Can be specified multiple times.

Global Options

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

Examples

Import a conda environment file:
jnc import environment.yml
Import into a named environment:
jnc import --environment ml environment.yml
Import a pip requirements file:
jnc import --format pypi-txt --environment web requirements.txt
Import with specific platforms:
jnc import --platform linux-aarch64 environment.yml