|
| 1 | +# 🚀 fazrepo Installation & Setup Guide |
| 2 | + |
| 3 | +## Current Status & Quick Fix |
| 4 | + |
| 5 | +You encountered the error: |
| 6 | +``` |
| 7 | +❌ Failed to get latest release information |
| 8 | +``` |
| 9 | + |
| 10 | +This is expected because **no GitHub releases exist yet**. Here's how to fix it: |
| 11 | + |
| 12 | +## ✅ Immediate Solution (Development Install) |
| 13 | + |
| 14 | +Use the development installer that builds from source: |
| 15 | + |
| 16 | +```bash |
| 17 | +curl -fsSL https://raw.githubusercontent.com/avadakedavra-wp/fazrepo/main/install-dev.sh | bash |
| 18 | +``` |
| 19 | + |
| 20 | +This script will: |
| 21 | +- Clone the repository |
| 22 | +- Build from source using Cargo |
| 23 | +- Install the binary to `/usr/local/bin` |
| 24 | + |
| 25 | +## 📋 Complete Setup Process |
| 26 | + |
| 27 | +### 1. First Time Setup |
| 28 | + |
| 29 | +```bash |
| 30 | +# Run the setup script to prepare everything |
| 31 | +./setup.sh |
| 32 | +``` |
| 33 | + |
| 34 | +### 2. Create GitHub Repository |
| 35 | + |
| 36 | +1. Go to https://github.com/new |
| 37 | +2. Create repository named `fazrepo` |
| 38 | +3. Make it public |
| 39 | +4. Don't initialize with README (you already have one) |
| 40 | + |
| 41 | +### 3. Push Your Code |
| 42 | + |
| 43 | +```bash |
| 44 | +# Set the correct remote (replace with your actual repo URL) |
| 45 | +git remote set-url origin https://github.com/avadakedavra-wp/fazrepo.git |
| 46 | + |
| 47 | +# Push to GitHub |
| 48 | +git push -u origin main |
| 49 | +``` |
| 50 | + |
| 51 | +### 4. Create Your First Release |
| 52 | + |
| 53 | +```bash |
| 54 | +# This will create v0.1.0 release |
| 55 | +./release.sh 0.1.0 |
| 56 | + |
| 57 | +# Push the tag |
| 58 | +git push origin v0.1.0 |
| 59 | +``` |
| 60 | + |
| 61 | +### 5. Verify Everything Works |
| 62 | + |
| 63 | +After creating the release, test both install methods: |
| 64 | + |
| 65 | +```bash |
| 66 | +# Development install (works now) |
| 67 | +curl -fsSL https://raw.githubusercontent.com/avadakedavra-wp/fazrepo/main/install-dev.sh | bash |
| 68 | + |
| 69 | +# Release install (works after step 4) |
| 70 | +curl -fsSL https://raw.githubusercontent.com/avadakedavra-wp/fazrepo/main/install.sh | bash |
| 71 | +``` |
| 72 | + |
| 73 | +## 🛠️ Troubleshooting |
| 74 | + |
| 75 | +### Error: "Failed to get latest release information" |
| 76 | +**Cause**: No GitHub releases exist yet |
| 77 | +**Solution**: Use development installer or create first release |
| 78 | + |
| 79 | +### Error: "Failed to clone repository" |
| 80 | +**Cause**: Repository doesn't exist or is private |
| 81 | +**Solution**: Create public GitHub repository and push code |
| 82 | + |
| 83 | +### Error: "Rust/Cargo not found" |
| 84 | +**Cause**: Rust toolchain not installed |
| 85 | +**Solution**: Install Rust from https://rustup.rs/ |
| 86 | + |
| 87 | +### Error: "Permission denied" |
| 88 | +**Cause**: No write access to `/usr/local/bin` |
| 89 | +**Solution**: Script will automatically use `sudo` |
| 90 | + |
| 91 | +## 📦 Alternative Installation Methods |
| 92 | + |
| 93 | +### Local Build & Install |
| 94 | +```bash |
| 95 | +# Clone and build locally |
| 96 | +git clone https://github.com/avadakedavra-wp/fazrepo.git |
| 97 | +cd fazrepo |
| 98 | +cargo build --release |
| 99 | +sudo cp target/release/fazrepo /usr/local/bin/ |
| 100 | +``` |
| 101 | + |
| 102 | +### Using Cargo (after first release) |
| 103 | +```bash |
| 104 | +cargo install --git https://github.com/avadakedavra-wp/fazrepo |
| 105 | +``` |
| 106 | + |
| 107 | +### Manual Binary Download (after release) |
| 108 | +```bash |
| 109 | +# Download binary directly from GitHub releases |
| 110 | +wget https://github.com/avadakedavra-wp/fazrepo/releases/download/v0.1.0/fazrepo-x86_64-unknown-linux-gnu |
| 111 | +chmod +x fazrepo-x86_64-unknown-linux-gnu |
| 112 | +sudo mv fazrepo-x86_64-unknown-linux-gnu /usr/local/bin/fazrepo |
| 113 | +``` |
| 114 | + |
| 115 | +## 🎯 Quick Test |
| 116 | + |
| 117 | +After installation, verify fazrepo works: |
| 118 | + |
| 119 | +```bash |
| 120 | +fazrepo --version |
| 121 | +fazrepo check |
| 122 | +fazrepo list |
| 123 | +``` |
| 124 | + |
| 125 | +Expected output: |
| 126 | +``` |
| 127 | +🔍 Checking package manager versions... |
| 128 | +
|
| 129 | +✅ npm 10.9.0 (/path/to/npm) |
| 130 | +❌ yarn not installed |
| 131 | +✅ pnpm 9.13.2 (/path/to/pnpm) |
| 132 | +✅ bun 1.1.38 (/path/to/bun) |
| 133 | +``` |
| 134 | + |
| 135 | +## 🚀 Next Steps |
| 136 | + |
| 137 | +1. **Set up Homebrew tap** (optional): |
| 138 | + - Create repo: `avadakedavra-wp/homebrew-fazrepo` |
| 139 | + - Copy `homebrew-fazrepo/Formula/` directory there |
| 140 | + - Update SHA256 hash in formula after first release |
| 141 | + |
| 142 | +2. **Automate releases**: |
| 143 | + - GitHub Actions will handle this automatically |
| 144 | + - Just push tags: `git push origin v0.1.1` |
| 145 | + |
| 146 | +3. **Share your CLI**: |
| 147 | + - Add to your README or portfolio |
| 148 | + - Submit to package manager directories |
| 149 | + - Share on social media |
| 150 | + |
| 151 | +Your fazrepo CLI is production-ready! 🎉 |
0 commit comments