cli-tools
Original:🇺🇸 English
Translated
CLI tool management and auto-installation. Use when commands fail with 'command not found', installing tools, or checking project environments.
3installs
Added on
NPX Install
npx skill4agent add dirnbauer/webconsulting-skills cli-toolsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →CLI Tools Skill
Manage CLI tool installation, environment auditing, and updates.
Capabilities
- Reactive: Auto-install missing tools on "command not found"
- Proactive: Audit project dependencies and tool versions
- Maintenance: Batch update all managed tools
Triggers
Reactive (auto-install):
bash: <tool>: command not found
zsh: command not found: <tool>Proactive (audit): "check environment", "what's missing", "update tools"
Binary to Tool Mapping
Common binary names that differ from package names:
| Binary | Package (Homebrew) | Package (apt) |
|---|---|---|
| | |
| | |
| | |
| | N/A |
| | |
| | |
| | |
| | |
| | |
| | N/A |
| | |
| | N/A |
Installation Commands
macOS (Homebrew)
bash
# Install single tool
brew install <package>
# Install multiple tools
brew install ripgrep fd bat eza fzf jq gh
# Update all tools
brew update && brew upgradeLinux (apt)
bash
# Install single tool
sudo apt install <package>
# Install multiple tools
sudo apt install ripgrep fd-find bat fzf jq
# Update all tools
sudo apt update && sudo apt upgradePHP Tools (Composer)
bash
# Global PHP tools
composer global require phpstan/phpstan
composer global require friendsofphp/php-cs-fixer
composer global require rector/rector
# Project-specific
composer require --dev phpstan/phpstan
composer require --dev friendsofphp/php-cs-fixerNode.js Tools (npm)
bash
# Global Node tools
npm install -g prettier eslint typescript
# Project-specific
npm install --save-dev prettier eslint typescriptProject Type Detection
PHP Project
Indicators: , ,
composer.jsonvendor/*.phpRequired tools:
- - PHP interpreter
php - - Dependency manager
composer - - Static analysis
phpstan - - Code style
php-cs-fixer
TYPO3 Project
Indicators: with ,
composer.jsontypo3/cms-corepublic/typo3/Required tools:
- All PHP tools
- - Local development
ddev - - TYPO3 CLI
typo3
Node.js Project
Indicators: ,
package.jsonnode_modules/Required tools:
- - Node.js runtime
node - /
npm/pnpm- Package manageryarn
Go Project
Indicators: ,
go.mod*.goRequired tools:
- - Go compiler
go - - Linter
golangci-lint
Environment Audit
Check if required tools are installed:
bash
# Check single tool
command -v <tool> &> /dev/null && echo "Found" || echo "Missing"
# Check version
<tool> --version
# PHP project audit
php --version
composer --version
command -v phpstan &> /dev/null || echo "Missing: phpstan"
command -v php-cs-fixer &> /dev/null || echo "Missing: php-cs-fixer"
# TYPO3 project audit
php --version
composer --version
ddev --versionTool Catalog
Core CLI Tools
- - HTTP client
curl - - File downloader
wget - - JSON processor
jq - - YAML processor
yq - - Directory visualizer
tree - - Process viewer
htop - - Terminal multiplexer
tmux
Development Tools
- - Version control
git - - GitHub CLI
gh - - GitLab CLI
glab - - Containerization
docker - - Local development
ddev
Search & Navigation
- (
ripgrep) - Fast greprg - - Fast find
fd - - Fuzzy finder
fzf - - Cat with syntax highlighting
bat - - Modern ls replacement
eza - - Git diff viewer
delta
PHP Tools
- - PHP interpreter
php - - Dependency manager
composer - - Static analysis
phpstan - - Automated refactoring
rector - - Code style fixer
php-cs-fixer - - Testing framework
phpunit - - Mutation testing
infection
Node.js Tools
- - JavaScript runtime
node - /
npm- Package managerspnpm - - Code formatter
prettier - - JavaScript linter
eslint - - TypeScript compiler
typescript
Security Tools
- - Vulnerability scanner
trivy - - Container scanner
grype - - Container signing
cosign
Auto-Install Workflow
When a command fails with "command not found":
- Extract tool name from error message
- Lookup package name in binary-to-tool mapping
- Detect OS (macOS/Linux)
- Install using appropriate package manager
- Retry original command
Example:
bash
# Error: zsh: command not found: rg
# Resolution:
brew install ripgrep # macOS
# or
sudo apt install ripgrep # Linux
# Retry
rg "pattern" .Batch Update
Update all managed tools:
bash
# macOS
brew update && brew upgrade
# Linux
sudo apt update && sudo apt upgrade
# PHP global tools
composer global update
# Node global tools
npm update -gCredits & Attribution
Thanks to Netresearch DTT GmbH for their contributions to the TYPO3 community.