Skip to main content

CLI Reference

jnc provides a comprehensive set of commands for managing workspaces, dependencies, environments, and tasks.

Global Options

These options are available on every command:
OptionDescription
-h, --helpDisplay help information
-v, --verboseIncrease logging verbosity (-v warnings, -vv info, -vvv debug, -vvvv trace)
-q, --quietDecrease logging verbosity (quiet mode)
--color <auto|always|never>Control colored output (default: auto)
--no-progressHide all progress bars

Commands

Workspace Management

CommandAliasDescription
jnc initCreate a new workspace
jnc installiInstall an environment, updating the lockfile if needed
jnc reinstallRe-install an environment with optional package filtering
jnc lockSolve the environment and update the lock file without installing
jnc importImport an environment from a conda environment.yml file
jnc infoShow workspace and system information
jnc cleanRemove workspace environments and caches

Dependencies

CommandAliasDescription
jnc addaAdd dependencies to the workspace
jnc removermRemove dependencies from the workspace
jnc updateUpdate dependencies in the lock file
jnc upgradeUpgrade dependencies with loosened version constraints
jnc listlsList packages installed in the environment
jnc treetShow a dependency tree
jnc searchSearch for packages in configured channels

Tasks and Execution

CommandAliasDescription
jnc runrRun a task or command in the environment
jnc execxRun a command in a temporary environment
jnc taskManage workspace tasks (add, remove, list, alias)

Shell

CommandAliasDescription
jnc shellsStart an interactive shell in the environment
jnc shell-hookPrint the environment activation script

Global Tools

CommandAliasDescription
jnc globalgManage globally installed tools in isolated environments

Workspace Configuration

CommandDescription
jnc workspaceManage workspace settings (platforms, channels, environments, features)
jnc configView or edit jnc configuration
jnc authManage conda channel authentication

Build and Publish

CommandDescription
jnc buildBuild a conda package from the workspace
jnc uploadUpload a package to a channel

Utilities

CommandDescription
jnc completionGenerate shell completion scripts
jnc probeDetect hardware capabilities (e.g., NVIDIA Jetson)

Update Options

Several commands support options that control how the lock file and environment are updated:
OptionDescription
--frozenUse the lockfile as-is, do not update it even if the manifest has changed
--lockedRequire the lockfile to be up-to-date with the manifest, abort if not
--no-installOnly modify the lock file, do not install the environment
--as-isShorthand for --frozen --no-install (available on run, shell, shell-hook)