docs/reference/cli/pixi/publish.md
Build a conda package and publish it to a channel.
--8<-- "docs/reference/cli/pixi/publish_extender:description"
pixi publish [OPTIONS]
--target-platform (-t) <TARGET_PLATFORM></a>
: The target platform to build for (defaults to the current platform)default: current_platform
--build-platform <BUILD_PLATFORM></a>
: The build platform to use for building (defaults to the current platform)default: current_platform
--build-string-prefix <BUILD_STRING_PREFIX></a>
: An optional prefix prepended to the auto-generated build string--build-number <BUILD_NUMBER></a>
: An optional override for the package's build number--build-dir (-b) <BUILD_DIR></a>
: The directory to use for incremental builds artifacts--clean (-c)</a>
: Whether to clean the build directory before building--path <PATH></a>
: The path to a directory containing a package manifest, or to a specific manifest file--target-channel <TARGET_CHANNEL></a>
: The target channel to publish packages to. Accepts a URL (prefix.dev, anaconda.org, cloudsmith://, s3://, quetz://, artifactory://) or a local filesystem path / file:// URL for an indexed local channelaliases: to
--target-dir <TARGET_DIR></a>
: The local filesystem path to copy the built package(s) into (no channel indexing)--force</a>
: Force overwrite existing packages--skip-existing <SKIP_EXISTING></a>
: Skip uploading packages that already exist at the target. This is enabled by default. Use --no-skip-existing to disabledefault: true
options: true, false
--generate-attestation</a>
: Generate sigstore attestation (prefix.dev only)--variant <KEY=VALUES></a>
: Override a build variant key with one or more valuesMay be provided more than once.
--variant-config (-m) <FILE></a>
: Path to an additional variant configuration YAML fileMay be provided more than once.
--package-format <PACKAGE_FORMAT></a>
: Archive format and optional compression level, e.g. conda, tar-bz2, conda:max, conda:15, tar-bz2:9. Numeric ranges match rattler-build: -7..=22 for .conda, 1..=9 for .tar.bz2--no-config</a>
: Don't read system or user-level configuration files. Project-local <project>/.pixi/config.toml is still loadedenv: PIXI_NO_CONFIG
default: false
--config-file <PATH></a>
: Load configuration from this file instead of searching system and user-level paths. Project-local <project>/.pixi/config.toml is still merged on topenv: PIXI_CONFIG_FILE
--auth-file <AUTH_FILE></a>
: Path to the file containing the authentication token--concurrent-downloads <CONCURRENT_DOWNLOADS></a>
: Max concurrent network requests, default is 50--concurrent-solves <CONCURRENT_SOLVES></a>
: Max concurrent solves, default is the number of CPUs--pinning-strategy <PINNING_STRATEGY></a>
: Set pinning strategyoptions: semver, minor, major, latest-up, exact-version, no-pin
--pypi-keyring-provider <PYPI_KEYRING_PROVIDER></a>
: Specifies whether to use the keyring to look up credentials for PyPIoptions: disabled, subprocess
--run-post-link-scripts</a>
: Run post-link scripts (insecure)--no-symbolic-links</a>
: Disallow symbolic links during package installationenv: PIXI_NO_SYMBOLIC_LINKS
--no-hard-links</a>
: Disallow hard links during package installationenv: PIXI_NO_HARD_LINKS
--no-ref-links</a>
: Disallow ref links (copy-on-write) during package installationenv: PIXI_NO_REF_LINKS
--tls-no-verify</a>
: Do not verify the TLS certificate of the server--tls-root-certs <TLS_ROOT_CERTS></a>
: Which TLS root certificates to use: 'webpki' (bundled Mozilla roots) or 'system' (system store)env: PIXI_TLS_ROOT_CERTS
--use-environment-activation-cache</a>
: Use environment activation cache (experimental)Build a conda package and publish it to a channel.
Builds the package from your workspace and either uploads it to a channel
(--target-channel) or copies the artifact into a local directory
(--target-dir).
Supported destinations for --target-channel (alias --to):
https://prefix.dev/<channel-name>https://anaconda.org/<owner>/<label>cloudsmith://<owner>/<repository>s3://bucket-namequetz://server/<channel>artifactory://server/<channel>file:///path/to/channel or a bare pathUse --target-dir <PATH> instead to copy the built package(s) into a
directory without creating a channel structure.
--8<-- "docs/reference/cli/pixi/publish_extender:example"