jnc shell-hook
Prints the shell activation script for a workspace environment. You can source this script to activate the environment in your current shell without starting a new shell session. This is useful for integrating environment activation into CI pipelines, Makefiles, Docker builds, or custom shell scripts.Usage
Options
| Option | Description |
|---|---|
-s, --shell <SHELL> | The target shell for the activation script. Options: bash, zsh, fish, xonsh. Defaults to the current shell. |
-e, --environment <ENV> | The environment to generate the activation script for. Defaults to default. |
--json | Emit the environment variables as a JSON object instead of a shell script. Conflicts with --shell. |
Update Options
| Option | Description |
|---|---|
--frozen | Use the lockfile as-is, do not update it. |
--locked | Require the lockfile to be up-to-date, abort if not. |
--no-install | Do not install the environment before generating the hook. |
--as-is | Shorthand for --frozen --no-install. |
Global Options
| Option | Description |
|---|---|
-m, --manifest-path <PATH> | Path to pixi.toml, pyproject.toml, or the workspace directory. |