/egc:setup-pmfrom egc
Configures the preferred package manager (npm/pnpm/yarn/bun) for a project or globally, with detection from environment variables, config files, lock files, and package.json.
Ships in egc. Installing the plugin adds it to Claude Code.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
Configure your preferred package manager for this project or globally.
# Detect current package manager
node scripts/setup-package-manager.js --detect
# Set global preference
node scripts/setup-package-manager.js --global pnpm
# Set project preference
node scripts/setup-package-manager.js --project bun
# List available package managers
node scripts/setup-package-manager.js --list
When determining which package manager to use, the following order is checked:
EGC_PACKAGE_MANAGER (the old GEMINI_PACKAGE_MANAGER still counts).egc/package-manager.json (an old .gemini/package-manager.json is still read)packageManager fieldpackage-manager.json in the EGC directory of the active tool (or in the directory EGC_DIR names when it is set)// <EGC directory>/package-manager.json
{
"packageManager": "pnpm"
}
// .egc/package-manager.json
{
"packageManager": "bun"
}
{
"packageManager": "[email protected]"
}
Set EGC_PACKAGE_MANAGER to override all other detection methods (the old GEMINI_PACKAGE_MANAGER still works):
# Windows (PowerShell)
$env:EGC_PACKAGE_MANAGER = "pnpm"
# macOS/Linux
export EGC_PACKAGE_MANAGER=pnpm
To see current package manager detection results, run:
node scripts/setup-package-manager.js --detect
7-day visitors to each command page
npx claudepluginhub fmarzochi/egc --plugin egc77 commands in this plugin
/asideAside CommandAnswer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering./autonomous-lesson-learningAutonomous Lesson Learning CommandStart an autonomous loop that recalls stored lessons before each iteration and saves or reinforces lessons on failures and wins./auto-updateAuto UpdatePull the latest EGC repo changes and reinstall the current managed targets./build-fixBuild and FixDetect the project build system and incrementally fix build/type errors with minimal safe changes./checkpointCheckpoint CommandCreate, verify, or list workflow checkpoints after running verification checks./code-reviewCode ReviewCode review: local uncommitted changes or GitHub PR (pass PR number/URL for PR mode)Other plugins' commands for the same job