CLI Docs


Package an existing conda environment into an archive file.

usage: conda-pack [--name ENV] [--prefix PATH] [--output PATH]
                  [--arcroot PATH] [--dest-prefix PATH]
                  [--format {infer,zip,tar.gz,tgz,tar.bz2,tbz2,tar}]
                  [--compress-level LEVEL] [--n-threads N] [--zip-symlinks]
                  [--no-zip-64] [--exclude PATTERN] [--include PATTERN]
                  [--force] [--quiet] [--help] [--version]
--name <env>, -n <env>

Name of existing environment. Default is current environment.

--prefix <path>, -p <path>

Full path to environment prefix.

--output <path>, -o <path>

The path of the output file. Defaults to the environment name with a .tar.gz suffix (e.g. my_env.tar.gz).

--arcroot <path>

The relative path in the archive to the conda environment. Defaults to ‘’.

--dest-prefix <path>, -d <path>

If present, prefixes will be rewritten to this path before packaging. In this case the conda-unpack script will not be generated.

--format {infer,zip,tar.gz,tgz,tar.bz2,tbz2,tar}

The archival format to use. By default this is inferred by the output file extension.

--compress-level <level>

The compression level to use, from 0 to 9. Higher numbers decrease output file size at the expense of compression time. Ignored for format='zip'. Default is 4.

--n-threads <n>, -j <n>

The number of threads to use. Set to -1 to use the number of cpus on this machine. If a file format doesn’t support threaded packaging, this option will be ignored. Default is 1.

Symbolic links aren’t supported by the Zip standard, but are supported by many common Zip implementations. If set, store symbolic links in the archive, instead of the file referred to by the link. This can avoid storing multiple copies of the same files. Note that the resulting archive may silently fail on decompression if the ``unzip`` implementation doesn’t support symlinks. Ignored if format isn’t zip.


Disable ZIP64 extensions.


Exclude files matching this pattern


Re-add excluded files matching this pattern

--force, -f

Overwrite any existing archive at the output path.

--quiet, -q

Do not report progress

--help, -h

Show this help message then exit


Show version then exit