PAK.sh Command Reference

Master 300+ commands to automate your package management workflow

🚀 Quick Start - Essential Commands

Getting Started
$ curl -sSL https://pak.sh/install | bash # Install PAK.sh
$ pak init # Initialize in current directory
$ pak deploy my-package --version 1.2.3 # Deploy to all platforms
$ pak track my-package # Track package statistics

Core Commands

Essential commands for system management and configuration

System Commands

System Management
$ pak version # Show PAK version
PAK.sh v2.0.0 - Universal Package Automation Kit
$ pak status # Show system status
✓ All systems operational
$ pak config set api.timeout 30 # Set configuration

Module Management

pak module list essential

List all available modules and their status

$ pak module list
✓ core (loaded)
✓ deploy (loaded)
✓ track (loaded)
○ ml (available)
pak module load <module>

Load a specific module for additional functionality

$ pak module load ml
✓ Machine Learning module loaded
🚀

Deployment Commands

Deploy packages to 30+ platforms with intelligent automation

💡 Pro Tip

Use --dry-run flag to simulate deployment without actually publishing

Basic Deployment

Deployment Examples
$ pak deploy my-package # Deploy to all configured platforms
📦 Deploying to npm, pypi, cargo... ✓ npm: published v1.2.3 ✓ pypi: published v1.2.3 ✓ cargo: published v1.2.3
$ pak deploy my-package --platform npm # Deploy to specific platform
$ pak deploy my-package --version 2.0.0 --force # Force deploy specific version

Advanced Deployment

pak deploy rollback <package> new

Rollback to previous deployment version

$ pak deploy rollback my-package
⚠️ Rolling back my-package from v1.2.3 to v1.2.2...
✓ Rollback completed successfully
pak deploy verify <package>

Verify deployment across all platforms

$ pak deploy verify my-package
✓ npm: v1.2.3 (available)
✓ pypi: v1.2.3 (available)
✓ cargo: v1.2.3 (available)
📊

Tracking & Analytics

Monitor package performance and analyze trends across platforms

Statistics Tracking

Package Analytics
$ pak track my-package # Track all platforms
📊 Tracking statistics for my-package... npm: 45,231 downloads (↑ 23%) pypi: 12,543 downloads (↑ 15%) cargo: 8,921 downloads (↑ 31%)
$ pak stats my-package --trends # Show trend analysis
📈 7-day trend: +18% growth 🎯 Predicted next week: ~52,000 downloads

Data Export

pak export <package> --format html popular

Export analytics data in various formats

$ pak export my-package --format html
✓ Report generated: my-package-report-2024-01-15.html
🔐

Security Commands

Comprehensive security scanning and vulnerability management

Security Scanning

Security Audit
$ pak scan my-package # Full security scan
🔍 Running security scan... ✓ No vulnerabilities found ✓ All licenses compatible ⚠️ 1 outdated dependency
$ pak security fix my-package # Auto-fix issues
🔧 Fixing security issues... ✓ Updated lodash to v4.17.21
🤖

Automation Commands

Automate your workflow with CI/CD integration and smart pipelines

Pipeline Management

pak pipeline create production beta

Create automated deployment pipeline

$ pak pipeline create production
✓ Pipeline 'production' created
→ Triggers: push to main branch
→ Steps: test → build → scan → deploy
pak git hooks install

Install Git hooks for automated checks

$ pak git hooks install
✓ Pre-commit hook installed
✓ Pre-push hook installed
📈

Monitoring Commands

Real-time monitoring and alerting for your packages

Live Monitoring
$ pak monitor my-package --start # Start monitoring
📡 Monitoring started (PID: 12345) → Checking every 5 minutes → Alerts enabled
$ pak alerts create downtime "availability < 99%" email
✓ Alert 'downtime' created
👨‍💻

Developer Experience

Tools and wizards to enhance your development workflow

Interactive Wizard
$ pak devex wizard # Start interactive setup
🧙 PAK.sh Package Creation Wizard ? Package name: awesome-lib ? Description: A truly awesome library ? Platforms: [✓] npm [✓] pypi [✓] cargo ✓ Package created successfully!