Installation
Prerequisites
Section titled “Prerequisites”- Rust 1.80 or later (if building from source)
- Git (for cloning repositories)
Install via Script (Recommended)
Section titled “Install via Script (Recommended)”Install the latest release (Linux/macOS):
curl -fsSL https://docspring.github.io/cigen/install.sh | shThis installs cigen into ~/.local/bin by default. Use --system for /usr/local/bin or --prefix <dir> for a custom directory. Uninstall with --uninstall.
Install from Source
Section titled “Install from Source”# Clone the repositorygit clone https://github.com/DocSpring/cigen.gitcd cigen
# Build and installcargo install --path .Verify Installation
Section titled “Verify Installation”cigen --versionShell Completion
Section titled “Shell Completion”Generate shell completion scripts:
# Bashcigen generate-completion bash > ~/.local/share/bash-completion/completions/cigen
# Zshcigen generate-completion zsh > ~/.zfunc/_cigen
# Fishcigen generate-completion fish > ~/.config/fish/completions/cigen.fishDevelopment Installation
Section titled “Development Installation”For development work:
git clone https://github.com/DocSpring/cigen.gitcd cigen
# Run directly with cargocargo run -- --help
# Or install in development modecargo install --path . --debugUpdating
Section titled “Updating”To update to the latest version:
cd cigengit pullcargo install --path . --forceTroubleshooting
Section titled “Troubleshooting”Build Issues
Section titled “Build Issues”If you encounter build errors:
- Ensure you have Rust 1.80+ installed:
rustc --version - Update Rust:
rustup update - Clean and rebuild:
cargo clean && cargo build
Permission Issues
Section titled “Permission Issues”On Unix systems, ensure ~/.cargo/bin is in your PATH:
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrcsource ~/.bashrcNext Steps
Section titled “Next Steps”- Follow the Quick Start guide
- Learn about cigen’s philosophy
- Explore configuration options