
Product
Socket Zero Introduces Automated Remediation PRs
Put vulnerability remediation on autopilot with automated security patches and intelligent dependency upgrades across your GitHub repositories.
github.com/0xshariq/go_package_installer_cli
Advanced tools
A cross-platform, interactive CLI to scaffold modern web application templates with support for multiple frameworks, languages, and development tools. Create production-ready projects in seconds!
For users who prefer a single binary without Node.js installation, we provide a Go wrapper that bundles the CLI:
# Linux (x64)
wget https://github.com/0xshariq/go_package_installer_cli/releases/latest/download/package-installer-cli-linux-amd64.tar.gz
tar -xzf package-installer-cli-linux-amd64.tar.gz
sudo mv package-installer-cli /usr/local/bin/
# macOS (Intel)
wget https://github.com/0xshariq/go_package_installer_cli/releases/latest/download/package-installer-cli-darwin-amd64.tar.gz
tar -xzf package-installer-cli-darwin-amd64.tar.gz
sudo mv package-installer-cli /usr/local/bin/
# macOS (Apple Silicon)
wget https://github.com/0xshariq/go_package_installer_cli/releases/latest/download/package-installer-cli-darwin-arm64.tar.gz
tar -xzf package-installer-cli-darwin-arm64.tar.gz
sudo mv package-installer-cli /usr/local/bin/
# Windows (PowerShell)
Invoke-WebRequest -Uri "https://github.com/0xshariq/go_package_installer_cli/releases/latest/download/package-installer-cli-windows-amd64.zip" -OutFile "package-installer-cli.zip"
Expand-Archive -Path "package-installer-cli.zip" -DestinationPath "."
# Add to PATH manually or move to a directory in PATH
# If you have Go installed
go install github.com/0xshariq/go_package_installer_cli@latest
# Prerequisites: Go 1.21+ and Node.js 18+
git clone https://github.com/0xshariq/go_package_installer_cli.git
cd go_package_installer_cli
# Install Node.js dependencies and build TypeScript
pnpm install
pnpm run build
# Build Go wrapper for current platform
make build
# Build for all platforms
make build-all
# Create release packages
make package
# Or use the build script
chmod +x build.sh
./build.sh
dist/ directory# Linux (x64)
wget https://github.com/0xshariq/go_package_installer_cli/releases/latest/download/package-installer-cli-linux-amd64.tar.gz
tar -xzf package-installer-cli-linux-amd64.tar.gz
sudo mv package-installer-cli /usr/local/bin/
# macOS (Intel)
wget https://github.com/0xshariq/go_package_installer_cli/releases/latest/download/package-installer-cli-darwin-amd64.tar.gz
tar -xzf package-installer-cli-darwin-amd64.tar.gz
sudo mv package-installer-cli /usr/local/bin/
# macOS (Apple Silicon)
wget https://github.com/0xshariq/go_package_installer_cli/releases/latest/download/package-installer-cli-darwin-arm64.tar.gz
tar -xzf package-installer-cli-darwin-arm64.tar.gz
sudo mv package-installer-cli /usr/local/bin/
# Windows (PowerShell)
Invoke-WebRequest -Uri "https://github.com/0xshariq/go_package_installer_cli/releases/latest/download/package-installer-cli-windows-amd64.zip" -OutFile "package-installer-cli.zip"
Expand-Archive -Path "package-installer-cli.zip" -DestinationPath "."
# Add to PATH manually or move to a directory in PATH
# If you have Go installed
go install github.com/0xshariq/go_package_installer_cli@latest
# Create new project interactively
pi create
# Analyze project with enhanced dashboard
pi analyze
# Update project dependencies only
pi update
# Upgrade CLI to latest version
pi upgrade-cli
| Document | Description |
|---|---|
| 📋 Commands | Complete command reference with examples |
| ⚡ Features | Detailed feature documentation and usage |
| 🎨 Templates | Available templates and customization options |
| 🚀 Deployment | Deployment options and platform integration |
| Command | Description | Usage |
|---|---|---|
pi create | Create new project from templates | pi create [name] |
pi analyze | Enhanced project analytics dashboard | pi analyze [--detailed] |
pi update | Update project dependencies | pi update [--latest] |
pi upgrade-cli | Upgrade CLI to latest version | pi upgrade-cli |
pi add | Add features to existing projects | pi add [feature] |
pi doctor | Diagnose and fix project issues | pi doctor |
pi clean | Clean development artifacts | pi clean [--all] |
For complete command documentation, see Commands
| Language/Framework | Templates | Package Managers |
|---|---|---|
| JavaScript/TypeScript | React, Next.js, Express, Angular, Vue | npm, yarn, pnpm |
| Python | Django, Flask, FastAPI | pip, poetry |
| Rust | Basic, Advanced, Web | cargo |
| Go | CLI, Web, API | go mod |
| Ruby | Rails, Sinatra | bundler |
| PHP | Laravel, Symfony | composer |
For detailed template information, see Templates
# Clear cache and reinstall (npm version)
npm cache clean --force
npm install -g @0xshariq/package-installer-cli
# Use npx if global installation fails
npx @0xshariq/package-installer-cli create my-app
# Check CLI status
pi doctor
# or (Go binary)
package-installer-cli doctor
| Metric | npm Version | Go Binary | npx |
|---|---|---|---|
| First Run | ~2s | ~2.1s | ~5s |
| Subsequent Runs | ~1.8s | ~1.9s | ~4.5s |
| Installation Size | ~50MB | ~12MB + Node.js | N/A |
| Cold Start | Fast | Fast | Slow |
| Memory Usage | ~80MB | ~85MB | ~120MB |
Performance may vary based on system configuration and Node.js version
Q: What is the Package Installer CLI? A: A Go wrapper around a TypeScript CLI that provides single-file distribution for creating modern web application templates.
Q: Can I use this without Node.js? A: No, Node.js is required as the core CLI is written in TypeScript.
Q: Why is Node.js still required for the Go binary? A: The Go binary is a wrapper around the TypeScript CLI. This approach allows us to maintain one codebase while providing Go distribution benefits.
Q: How do I update the Go binary version?
A: Download the latest release from GitHub or run go install github.com/0xshariq/go_package_installer_cli@latest
Q: Can I build custom templates? A: Yes, the CLI supports custom template system. See templates for details.
Q: "node: command not found" error A: Install Node.js from https://nodejs.org/ and ensure it's in your PATH.
Q: "dist/index.js not found" error A: The dist/ directory must be alongside the Go binary. Re-extract the downloaded package.
go_package_installer_cli/
├── main.go # Go wrapper entry point
├── go.mod # Go module definition
├── Makefile # Build automation
├── build.sh # Cross-platform build script
├── dist/ # Compiled TypeScript CLI
│ ├── index.js # Main CLI entry point
│ ├── commands/ # CLI command implementations
│ └── utils/ # Utility functions
├── templates/ # Project templates
│ ├── reactjs/ # React templates
│ ├── nextjs/ # Next.js templates
│ ├── go/ # Go templates
│ └── ... # Other frameworks
├── features/ # Feature integrations
│ ├── ai/ # AI providers
│ ├── auth/ # Authentication
│ ├── database/ # Database integrations
│ └── ... # Other features
└── docs/ # Documentation
# Install dependencies and build TypeScript
npm install && npm run build
# Build Go wrapper for current platform
make build
# Build for all platforms
make build-all
# Test the binary
make test
# Run the TypeScript version directly
npm start
| Component | Version | Status |
|---|---|---|
| Core CLI | 3.2.0 | ✅ Stable |
| Go Wrapper | 1.0.0 | ✅ Stable |
| Templates | 50+ | ✅ Active |
| Features | 30+ | ✅ Growing |
We welcome contributions! Here's how you can help:
See our Contributing Guide for detailed information.
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding! 🚀 Create something amazing with Package Installer CLI.
FAQs
Unknown package

Product
Put vulnerability remediation on autopilot with automated security patches and intelligent dependency upgrades across your GitHub repositories.

Product
Socket Zero automates vulnerability remediation with upgrades and targeted patches, including fixes for 100% of known, patchable RubyGems CVEs.

Product
Explore Socket’s redesigned Alerts UI, multi-branch repository monitoring, and new tools for resolving findings, searching scans, and filtering security alerts.