Install PackC
Install the packc compiler on your system.
Get packc installed and ready to compile prompt packs.
Installation
Section titled “Installation”Go Install
Section titled “Go Install”Install via go install (the only supported installation method):
# 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.0Build from Source
Section titled “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”macOS / Linux
Section titled “macOS / Linux”Use go install:
go install github.com/AltairaLabs/PromptKit/tools/packc@latestWindows (PowerShell)
Section titled “Windows (PowerShell)”go 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' }}Troubleshooting
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