Skip to main content

Global tool installation for conda — install CLI tools into isolated environments and make them available on PATH via trampolines

Project description

conda-global

Tests Docs Codecov PyPI License Python

Global tool installation for conda — install CLI tools into isolated environments and make them available on PATH via trampolines.

Overview

conda-global lets you install command-line tools (like gh, ruff, bat) into isolated conda environments and expose them on your PATH without polluting any project environment. It works like pipx for Python tools or pixi global for the pixi ecosystem, but for the entire conda package ecosystem.

Quick start

Install ruff, use it, list tools, show dependency tree, and uninstall

# Install a tool
conda global install gh

# Use it from anywhere
gh --version

# List installed tools
conda global list

# Update all tools
conda global update

# Remove a tool
conda global uninstall -e gh

How it works

Each tool gets its own isolated conda environment. A small Rust trampoline binary (provided by the conda-trampoline package) acts as a launcher — it reads a JSON config, sets up the environment, and launches the real binary with zero activation overhead.

All data lives under ~/.cg/ (%USERPROFILE%\.cg on Windows). See the docs for details.

Installation

conda install -c conda-forge conda-global

Or with pixi:

pixi global install conda-global

Then add the bin directory to your PATH:

conda global ensurepath

Commands

Command Description
conda global install <pkg> Install a tool into an isolated environment
conda global uninstall -e <env> Remove a tool and its environment
conda global add <pkg> -e <env> Add a dependency to an existing tool env
conda global remove <pkg> -e <env> Remove a dependency from a tool env
conda global list List installed tools
conda global update [-e <env>] Update one or all tools
conda global sync Reconcile filesystem with manifest
conda global expose <name>=<bin> -e <env> Expose a binary on PATH
conda global hide <name> -e <env> Remove a binary from PATH
conda global run <pkg> [-- <args>] Run a tool without installing
conda global tree -e <env> Show dependency tree
conda global pin -e <env> Prevent upgrades
conda global unpin -e <env> Allow upgrades
conda global ensurepath Add bin directory to PATH
conda global edit Edit global.toml

A standalone cg alias is also available (cg install ruff, etc.).

License

BSD-3-Clause

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conda_global-0.1.0.tar.gz (7.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conda_global-0.1.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file conda_global-0.1.0.tar.gz.

File metadata

  • Download URL: conda_global-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for conda_global-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6747febc417798bfafbf91cf5affe7ae881e6783d7f9844dec4dc74ec95a9ed9
MD5 57296412ee05bd3ab766f5f6dcf66d66
BLAKE2b-256 4b7f09092b3c1bf6fb8e27d6543101908814433a6483c213629747f28cbd5381

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_global-0.1.0.tar.gz:

Publisher: release.yml on jezdez/conda-global

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file conda_global-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: conda_global-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for conda_global-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f1a802457dd81adc65da70728db052cdc3f20c63f1b549542ce7f7ed82dae1d
MD5 31287a4fcf5c9bb065306ba3e2c1814b
BLAKE2b-256 a2daaca1de1be4956e84306f2c36426bc3f7aaceeaca72e89914e74aae2bcfee

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_global-0.1.0-py3-none-any.whl:

Publisher: release.yml on jezdez/conda-global

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page