npm init | Initialize package.json interactively |
npm init -y | Initialize with defaults |
npm install | Install all dependencies |
npm ci | Clean install from lock file |
npm install <pkg> | Install package |
npm install <pkg>@<version> | Install specific version |
npm install <pkg> --save-dev | Install as dev dependency |
npm install <pkg> -g | Install globally |
npm uninstall <pkg> | Uninstall package |
npm update | Update all packages |
npm update <pkg> | Update specific package |
npm outdated | Check outdated packages |
npm list | List installed packages |
npm list -g --depth=0 | List global packages |
npm run <script> | Run script from package.json |
npm start | Run start script |
npm test | Run test script |
npm run build | Run build script |
npm info <pkg> | Show package info |
npm search <keyword> | Search packages |
npm view <pkg> versions | View all versions |
npm cache clean --force | Clear npm cache |
npm config list | Show npm config |
npm config set <key> <value> | Set config value |
npm config get registry | Get registry URL |
yarn init | Initialize package.json |
yarn init -y | Initialize with defaults |
yarn | Install all dependencies |
yarn install --frozen-lockfile | Install from lock file |
yarn add <pkg> | Add package |
yarn add <pkg>@<version> | Add specific version |
yarn add <pkg> --dev | Add as dev dependency |
yarn global add <pkg> | Add globally |
yarn remove <pkg> | Remove package |
yarn upgrade | Upgrade all packages |
yarn upgrade <pkg> | Upgrade specific package |
yarn upgrade-interactive | Interactive upgrade |
yarn outdated | Check outdated packages |
yarn list | List installed packages |
yarn <script> | Run script |
yarn start | Run start script |
yarn test | Run test script |
yarn build | Run build script |
yarn info <pkg> | Show package info |
yarn why <pkg> | Show why package is installed |
yarn workspaces info | Show workspaces info |
yarn workspace <name> <cmd> | Run command in workspace |
yarn workspaces run <cmd> | Run in all workspaces |
pnpm init | Initialize package.json |
pnpm install | Install all dependencies |
pnpm install --frozen-lockfile | Install from lock file |
pnpm add <pkg> | Add package |
pnpm add <pkg>@<version> | Add specific version |
pnpm add -D <pkg> | Add as dev dependency |
pnpm add -g <pkg> | Add globally |
pnpm remove <pkg> | Remove package |
pnpm update | Update all packages |
pnpm update <pkg> | Update specific package |
pnpm outdated | Check outdated packages |
pnpm list | List installed packages |
pnpm <script> | Run script |
pnpm run <script> | Run script explicitly |
pnpm start | Run start script |
pnpm test | Run test script |
pnpm store status | Show store status |
pnpm store prune | Prune unreferenced packages |
pnpm -r <cmd> | Run in all packages |
pnpm --filter <pkg> <cmd> | Run in filtered packages |
pnpm --filter "pkg-*" <cmd> | Filter by pattern |
pip install <pkg> | Install package |
pip install <pkg>==<version> | Install specific version |
pip install <pkg>>=1.0,<2.0 | Install version range |
pip install -r requirements.txt | Install from requirements |
pip install -e . | Install in editable mode |
pip uninstall <pkg> | Uninstall package |
pip install --upgrade <pkg> | Upgrade package |
pip install --upgrade pip | Upgrade pip itself |
pip list | List installed packages |
pip list --outdated | List outdated packages |
pip show <pkg> | Show package info |
pip search <keyword> | Search packages (deprecated) |
pip check | Check dependencies |
pip freeze | Output installed packages |
pip freeze > requirements.txt | Save to requirements |
pip download <pkg> | Download package only |
pip wheel <pkg> | Build wheel package |
python -m venv venv | Create virtual environment |
source venv/bin/activate | Activate (Linux/Mac) |
venv\Scripts\activate | Activate (Windows) |
deactivate | Deactivate environment |
brew install <pkg> | Install package |
brew install --cask <app> | Install GUI application |
brew uninstall <pkg> | Uninstall package |
brew upgrade | Upgrade all packages |
brew upgrade <pkg> | Upgrade specific package |
brew reinstall <pkg> | Reinstall package |
brew list | List installed packages |
brew list --cask | List installed casks |
brew search <keyword> | Search packages |
brew info <pkg> | Show package info |
brew outdated | List outdated packages |
brew deps <pkg> | Show dependencies |
brew uses <pkg> | Show dependents |
brew update | Update Homebrew |
brew cleanup | Remove old versions |
brew cleanup -s | Cleanup including cache |
brew doctor | Check for issues |
brew autoremove | Remove unused dependencies |
brew services list | List services |
brew services start <pkg> | Start service |
brew services stop <pkg> | Stop service |
brew services restart <pkg> | Restart service |
brew tap | List tapped repositories |
brew tap <user/repo> | Add repository |
brew untap <user/repo> | Remove repository |