Skip to main content

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

Update Options

Global Options

Examples

Activate in the current bash session

Generate a script for a specific shell

Activate a specific environment

Get environment variables as JSON

Use in a Dockerfile

Use in a Makefile

Use in CI (GitHub Actions)