Install PackC
Install the packc compiler on your system.
Get packc installed and ready to compile prompt packs.
Installation Methods
Section titled “Installation Methods”Method 1: Homebrew (macOS/Linux - Recommended)
Section titled “Method 1: Homebrew (macOS/Linux - Recommended)”# Install PromptKit (includes PackC)brew install promptkit
# Verify installationpackc versionExpected output:
packc v0.1.0Method 2: Go Install
Section titled “Method 2: Go Install”This installs the latest version directly:
# Install latest versiongo install github.com/AltairaLabs/PromptKit/tools/packc@latest
# Verify installationpackc versionTo install a specific version:
# Install specific versiongo install github.com/AltairaLabs/PromptKit/tools/packc@v0.1.0Method 3: Download Pre-built Binary
Section titled “Method 3: Download Pre-built Binary”Visit the PromptKit Releases page and download the appropriate binary for your platform.
# Example for macOS (adjust version and platform as needed)curl -LO https://github.com/AltairaLabs/PromptKit/releases/latest/download/packc-darwin-amd64chmod +x packc-darwin-amd64sudo mv packc-darwin-amd64 /usr/local/bin/packc
# Verifypackc versionMethod 4: Docker
Section titled “Method 4: Docker”Run packc in a container:
# Pull image (when available)docker pull ghcr.io/AltairaLabs/packc:latest
# Or build locally from the repodocker build -t packc -f Dockerfile.packc .
# Run packcdocker run --rm -v $(pwd):/workspace packc versionFor Developers: Build from Source
Section titled “For Developers: Build from Source”For development or custom builds:
# Clone repositorygit clone https://github.com/AltairaLabs/PromptKit.gitcd PromptKit
# Build packcmake build-packc
# Binary is at ./bin/packc./bin/packc versionVerify Installation
Section titled “Verify Installation”Check that packc is properly installed:
# Check versionpackc version
# Check helppackc help
# Check locationwhich packcExpected outputs:
packc v0.1.0packc - PromptKit Pack CompilerUsage: packc <command> [options].../Users/yourname/go/bin/packcEnable Shell Completions (Optional)
Section titled “Enable Shell Completions (Optional)”Enable tab completion for commands and flags:
# Bashpackc completion bash > ~/.local/share/bash-completion/completions/packc
# Zshpackc completion zsh > ~/.zsh/completions/_packc
# Fishpackc completion fish > ~/.config/fish/completions/packc.fishSee Configure Shell Completions for detailed setup instructions.
Add to PATH
Section titled “Add to PATH”If packc is not found, add Go’s bin directory to your PATH:
macOS/Linux
Section titled “macOS/Linux”Add to ~/.zshrc or ~/.bashrc:
export PATH="$PATH:$(go env GOPATH)/bin"Apply changes:
source ~/.zshrc # or ~/.bashrcWindows
Section titled “Windows”Add to PATH in System Environment Variables:
- Open System Properties > Environment Variables
- Edit
Pathvariable - Add:
%USERPROFILE%\go\bin - Restart terminal
Update PackC
Section titled “Update PackC”Update to Latest Version
Section titled “Update to Latest Version”# Reinstall latestgo install github.com/AltairaLabs/PromptKit/tools/packc@latest
# Verify new versionpackc versionUpdate from Source
Section titled “Update from Source”cd PromptKitgit pull origin mainmake build-packcUninstall
Section titled “Uninstall”Remove Binary
Section titled “Remove Binary”# Find packc locationwhich packc
# Remove binaryrm $(which packc)Clean Go Cache
Section titled “Clean Go Cache”# Clean module cachego clean -modcacheConfiguration
Section titled “Configuration”Set Default Config Path
Section titled “Set Default Config Path”Create an alias for convenience:
# Add to ~/.zshrc or ~/.bashrcalias packc-compile='packc compile --config ./config/arena.yaml'Environment Variables
Section titled “Environment Variables”Configure default behavior:
# Set default output directoryexport PACKC_OUTPUT_DIR="./packs"
# Use in scriptspackc compile --config arena.yaml --output "$PACKC_OUTPUT_DIR/app.pack.json" --id appPlatform-Specific Notes
Section titled “Platform-Specific Notes”Homebrew is the recommended method:
brew install promptkitUse Go install or download the binary:
# Download binarycurl -LO https://github.com/AltairaLabs/PromptKit/releases/latest/download/packc-linux-amd64chmod +x packc-linux-amd64sudo mv packc-linux-amd64 /usr/local/bin/packcWindows (PowerShell)
Section titled “Windows (PowerShell)”Download the binary and add to PATH:
# Download from GitHub releases# https://github.com/AltairaLabs/PromptKit/releases
# Or use go installgo install github.com/AltairaLabs/PromptKit/tools/packc@latestCI/CD Installation
Section titled “CI/CD Installation”GitHub Actions
Section titled “GitHub Actions”- name: Install packc run: go install github.com/AltairaLabs/PromptKit/tools/packc@latest
- name: Verify installation run: packc versionGitLab CI
Section titled “GitLab CI”install_packc: script: - go install github.com/AltairaLabs/PromptKit/tools/packc@latest - packc versionJenkins
Section titled “Jenkins”stage('Install packc') { steps { sh 'go install github.com/AltairaLabs/PromptKit/tools/packc@latest' sh 'packc version' }}Docker
Section titled “Docker”FROM golang:1.22
RUN go install github.com/AltairaLabs/PromptKit/tools/packc@latest
RUN packc versionTroubleshooting
Section titled “Troubleshooting”packc: command not found
Section titled “packc: command not found”Problem: packc not in PATH
Solution: Add Go’s bin directory to PATH:
export PATH="$PATH:$(go env GOPATH)/bin"Permission denied
Section titled “Permission denied”Problem: Binary not executable
Solution: Make binary executable:
chmod +x $(which packc)Go version too old
Section titled “Go version too old”Problem: Go version < 1.22
Solution: Update Go:
# macOSbrew upgrade go
# Linux# Download from https://go.dev/dl/
# Verifygo versionInstallation fails
Section titled “Installation fails”Problem: Network or dependency issues
Solution: Check network and clean cache:
# Clean cachego clean -modcache
# Try againgo install github.com/AltairaLabs/PromptKit/tools/packc@latestNext Steps
Section titled “Next Steps”See Also
Section titled “See Also”- version command - Check packc version
- System Requirements - Complete system setup