-
Notifications
You must be signed in to change notification settings - Fork 0
feat: One-Click Installer for Heidi CLI #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,314 @@ | ||
| # π Heidi CLI One-Click Installer | ||
|
|
||
| Install Heidi CLI with a single command! The installer will automatically: | ||
| - Clone the latest version from GitHub | ||
| - Install all dependencies | ||
| - Build and install Heidi CLI | ||
| - Verify the installation | ||
| - Clean up temporary files | ||
|
|
||
| ## π **System Requirements** | ||
|
|
||
| ### **Required** | ||
| - **Python 3.10+** - [Download Python](https://python.org) | ||
| - **Git** - [Download Git](https://git-scm.com) | ||
| - **pip** - Usually included with Python | ||
|
|
||
| ### **Optional** | ||
| - **CUDA** - For GPU acceleration (automatic if available) | ||
| - **Admin/root access** - For system-wide installation (optional) | ||
|
|
||
| --- | ||
|
|
||
| ## π₯οΈ **Installation** | ||
|
|
||
| ### **Linux/macOS** | ||
|
|
||
| ```bash | ||
| # Download and run the installer | ||
| curl -fsSL https://raw.githubusercontent.com/heidi-dang/heidi-cli/main/install | bash | ||
|
|
||
| # Or download first, then run | ||
| wget https://raw.githubusercontent.com/heidi-dang/heidi-cli/main/install | ||
| chmod +x install | ||
| ./install | ||
| ``` | ||
|
|
||
| ### **Windows (PowerShell)** | ||
|
|
||
| ```powershell | ||
| # Download and run the installer | ||
| Invoke-WebRequest -Uri "https://raw.githubusercontent.com/heidi-dang/heidi-cli/main/install.ps1" -OutFile "install.ps1" | ||
| Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
| .\install.ps1 | ||
| ``` | ||
|
|
||
| ### **From Local Clone** | ||
|
|
||
| ```bash | ||
| # Clone the repository | ||
| git clone https://github.com/heidi-dang/heidi-cli.git | ||
| cd heidi-cli | ||
|
|
||
| # Run the installer | ||
| ./install # Linux/macOS | ||
| # or | ||
| .\install.ps1 # Windows | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## π― **What the Installer Does** | ||
|
|
||
| ### **β Automatic Steps** | ||
|
|
||
| 1. **π Check Requirements** - Verifies Python, Git, and pip | ||
| 2. **π₯ Clone Repository** - Downloads latest Heidi CLI from main branch | ||
| 3. **ποΈ Setup Environment** - Creates virtual environment | ||
| 4. **π¦ Install Dependencies** - Installs all required packages | ||
| 5. **π¨ Build Heidi CLI** - Compiles and builds the application | ||
| 6. **βοΈ Install Heidi CLI** - Installs system-wide or for current user | ||
| 7. **β Verify Installation** - Tests that everything works | ||
| 8. **π§Ή Clean Up** - Removes temporary files | ||
|
|
||
| ### **π Installation Results** | ||
|
|
||
| After successful installation, you'll have: | ||
| - β **Heidi CLI command** available system-wide | ||
| - β **All dependencies** installed and configured | ||
| - β **API key system** ready to use | ||
| - β **Model hosting** capabilities | ||
| - β **Complete documentation** accessible | ||
|
|
||
| --- | ||
|
|
||
| ## π **Post-Installation** | ||
|
|
||
| ### **Quick Start** | ||
|
|
||
| ```bash | ||
| # Verify installation | ||
| heidi --version | ||
|
|
||
| # Run setup wizard | ||
| heidi setup | ||
|
|
||
| # Generate API key | ||
| heidi api generate --name "My First Key" | ||
|
|
||
| # Start model server | ||
| heidi model serve | ||
|
|
||
| # View help | ||
| heidi --help | ||
| ``` | ||
|
|
||
| ### **Next Steps** | ||
|
|
||
| 1. **π Generate API Key** | ||
| ```bash | ||
| heidi api generate --name "Production Key" --user "your-username" | ||
| ``` | ||
|
|
||
| 2. **π€ Download Models** | ||
| ```bash | ||
| heidi hf search "text-generation" --limit 5 | ||
| heidi hf download "TinyLlama/TinyLlama-1.1B-Chat-v1.0" | ||
| ``` | ||
|
|
||
| 3. **π Start API Server** | ||
| ```bash | ||
| heidi api server | ||
| ``` | ||
|
|
||
| 4. **π Explore Documentation** | ||
| ```bash | ||
| # View comprehensive guide | ||
| cat docs/how-to-use.md | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## π§ **Installation Options** | ||
|
|
||
| ### **User vs System Installation** | ||
|
|
||
| **User Installation (Default)** | ||
| - Installs to `~/.local/bin` (Linux/macOS) or `%USERPROFILE%\AppData\Local\Programs` (Windows) | ||
| - No admin privileges required | ||
| - Available only for current user | ||
|
|
||
| **System Installation (Admin Required)** | ||
| - Installs to `/usr/local/bin` (Linux/macOS) or system-wide (Windows) | ||
| - Requires admin/root privileges | ||
| - Available for all users | ||
|
|
||
| ### **Custom Installation Path** | ||
|
|
||
| ```bash | ||
| # Linux/macOS - set custom prefix | ||
| export HEIDI_INSTALL_PREFIX="/opt/heidi-cli" | ||
| ./install | ||
|
|
||
| # Windows - custom path | ||
| .\install.ps1 -InstallPath "C:\HeidiCLI" | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## π οΈ **Troubleshooting** | ||
|
|
||
| ### **Common Issues** | ||
|
|
||
| #### **Python Not Found** | ||
| ```bash | ||
| # Install Python 3.10+ | ||
| # Ubuntu/Debian: | ||
| sudo apt update && sudo apt install python3 python3-pip python3-venv | ||
|
|
||
| # macOS (with Homebrew): | ||
| brew install python3 | ||
|
|
||
| # Windows: Download from python.org | ||
| ``` | ||
|
|
||
| #### **Git Not Found** | ||
| ```bash | ||
| # Ubuntu/Debian: | ||
| sudo apt install git | ||
|
|
||
| # macOS (with Homebrew): | ||
| brew install git | ||
|
|
||
| # Windows: Download from git-scm.com | ||
| ``` | ||
|
|
||
| #### **Permission Denied** | ||
| ```bash | ||
| # Make installer executable | ||
| chmod +x install | ||
|
|
||
| # Or use bash directly | ||
| bash install | ||
| ``` | ||
|
|
||
| #### **Command Not Found After Installation** | ||
| ```bash | ||
| # Add to PATH (Linux/macOS) | ||
| echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc | ||
| source ~/.bashrc | ||
|
|
||
| # Or restart your terminal | ||
| ``` | ||
|
|
||
| #### **Virtual Environment Issues** | ||
| ```bash | ||
| # Clean installation | ||
| rm -rf ~/.heidi | ||
| ./install --force | ||
| ``` | ||
|
|
||
| ### **Get Help** | ||
|
|
||
| ```bash | ||
| # Check system requirements | ||
| heidi doctor | ||
|
|
||
| # View installation logs | ||
| # Installer shows detailed error messages | ||
|
|
||
| # Get community help | ||
| # GitHub Issues: https://github.com/heidi-dang/heidi-cli/issues | ||
| # Discord: https://discord.gg/heidi-cli | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## π **Installation Verification** | ||
|
|
||
| ### **Check Installation Status** | ||
|
|
||
| ```bash | ||
| # Verify Heidi CLI is installed | ||
| heidi --version | ||
|
|
||
| # Check all systems | ||
| heidi doctor | ||
|
|
||
| # Test API key system | ||
| heidi api config | ||
|
|
||
| # List available models | ||
| heidi api models | ||
| ``` | ||
|
|
||
| ### **Expected Output** | ||
|
|
||
| ``` | ||
| π Heidi API Key: heidik_abc123... | ||
| π User Information: | ||
| βββββββββββββββββββ¬ββββββββββββββββββ | ||
| β User ID: β default β | ||
| β Key Name: β Demo Key β | ||
| β Rate Limit: β 100 requests/min β | ||
| β Usage Count: β 0 requests β | ||
| βββββββββββββββββββ΄ββββββββββββββββββ | ||
|
|
||
| π€ Available Models: | ||
| β’ local://opencode-gpt-4 | ||
| β’ hf://TinyLlama/TinyLlama-1.1B-Chat-v1.0 | ||
| β’ opencode://gpt-4 | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## π **Update Heidi CLI** | ||
|
|
||
| ### **Update to Latest Version** | ||
|
|
||
| ```bash | ||
| # Re-run the installer (will update existing installation) | ||
| ./install | ||
|
|
||
| # Or manually update | ||
| pip install --upgrade heidi-cli | ||
| ``` | ||
|
|
||
| ### **Uninstall Heidi CLI** | ||
|
|
||
| ```bash | ||
| # Uninstall with pip | ||
| pip uninstall heidi-cli | ||
|
|
||
| # Remove configuration (optional) | ||
| rm -rf ~/.heidi | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## π **Success!** | ||
|
|
||
| **π Heidi CLI is now installed and ready to use!** | ||
|
|
||
| ### **What You Can Do Now** | ||
|
|
||
| - β **Generate API keys** for unified model access | ||
| - β **Host models locally** with automatic management | ||
| - β **Access HuggingFace models** with smart integration | ||
| - β **Track usage and costs** with built-in analytics | ||
| - β **Scale to production** with enterprise features | ||
|
|
||
| ### **Learn More** | ||
|
|
||
| - π **Complete Guide**: [docs/how-to-use.md](docs/how-to-use.md) | ||
| - π **API Keys**: [docs/api-keys.md](docs/api-keys.md) | ||
| - π€ **Model Management**: [docs/model-management.md](docs/model-management.md) | ||
| - π¬ **Community**: [Discord Server](https://discord.gg/heidi-cli) | ||
|
|
||
| --- | ||
|
|
||
| **π― Installation completed successfully! Welcome to Heidi CLI!** π | ||
|
|
||
| *Last updated: March 2026* | ||
| *Installer version: 1.0.0* | ||
| *Heidi CLI version: 0.1.1* | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation states that the default user installation path for Windows is
%USERPROFILE%\AppData\Local\Programs. However, theinstall.ps1script defaults to installing in$env:USERPROFILE\heidi-cli. This discrepancy should be corrected to avoid confusing users.