Installation
This guide covers all installation methods for cuenv across different platforms and environments.
System Requirements
Section titled “System Requirements”Minimum Requirements
Section titled “Minimum Requirements”- Operating System: Linux, macOS, or Windows (WSL2 recommended)
- Rust: 1.70 or later
- Memory: 4 GB RAM minimum, 8 GB recommended
- Storage: 1 GB free space
Optional Dependencies
Section titled “Optional Dependencies”- Nix Package Manager: For enhanced package management features
- Docker: For containerized environments
- Git: For version control integration
Installation Methods
Section titled “Installation Methods”Method 1: Using Nix (Recommended)
Section titled “Method 1: Using Nix (Recommended)”If you have Nix installed, this is the preferred way to install cuenv:
# Install from flakenix profile install github:cuenv/cuenv
# Or run directlynix run github:cuenv/cuenv -- --helpMethod 2: Using Homebrew
Section titled “Method 2: Using Homebrew”For macOS and Linux users with Homebrew:
brew install cuenv/cuenvMethod 3: From Crates.io
Section titled “Method 3: From Crates.io”cargo install cuenv-cliMethod 4: From GitHub Releases
Section titled “Method 4: From GitHub Releases”Download pre-built binaries from the releases page.
Method 5: From Source
Section titled “Method 5: From Source”Build from source for the latest development features:
# Clone the repositorygit clone https://github.com/cuenv/cuenv.gitcd cuenv
# Build with optimizationscargo build --release
# Install to cargo bin directorycargo install --path crates/cuenv-cliMethod 6: Development Environment
Section titled “Method 6: Development Environment”For contributors and developers:
# Clone and enter development environmentgit clone https://github.com/cuenv/cuenv.gitcd cuenv
# Enter the development shellnix develop
# Or using direnv (if configured)direnv allowPlatform-Specific Setup
Section titled “Platform-Specific Setup”Ubuntu/Debian
Section titled “Ubuntu/Debian”# Install dependenciessudo apt updatesudo apt install build-essential pkg-config libssl-dev
# Install Rust if not already installedcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource ~/.cargo/env
# Install cuenvcargo install cuenv-cliFedora/RHEL
Section titled “Fedora/RHEL”# Install dependenciessudo dnf install gcc pkg-config openssl-devel
# Install Rust if not already installedcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource ~/.cargo/env
# Install cuenvcargo install cuenv-cliArch Linux
Section titled “Arch Linux”# Install dependenciessudo pacman -S base-devel openssl pkg-config
# Install Rust if not already installedcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource ~/.cargo/env
# Install cuenvcargo install cuenv-cliUsing Homebrew
Section titled “Using Homebrew”brew install cuenv/cuenvManual Installation
Section titled “Manual Installation”# Install Xcode Command Line Toolsxcode-select --install
# Install Rust if not already installedcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource ~/.cargo/env
# Install cuenvcargo install cuenv-cliWindows
Section titled “Windows”Windows Subsystem for Linux (Recommended)
Section titled “Windows Subsystem for Linux (Recommended)”# Install WSL2 and Ubuntuwsl --install -d Ubuntu
# Follow Linux installation steps inside WSLNative Windows
Section titled “Native Windows”# Install Visual Studio Build Tools# Download from: https://visualstudio.microsoft.com/downloads/
# Install Rust# Download from: https://rustup.rs/
# Install cuenvcargo install cuenv-cliVerification
Section titled “Verification”After installation, verify cuenv is working correctly:
# Check versioncuenv version
# Test basic functionalitymkdir test-cuenvcd test-cuenv# Create a simple configurationecho 'package cuenv' > env.cueecho 'env: {}' >> env.cueecho 'tasks: {}' >> env.cue
# Verify it loadscuenv env printShell Integration
Section titled “Shell Integration”Add to ~/.bashrc:
# cuenv shell integrationsource <(cuenv shell init bash)Add to ~/.zshrc:
# cuenv shell integrationsource <(cuenv shell init zsh)Add to ~/.config/fish/config.fish:
# cuenv shell integrationcuenv shell init fish | sourceIDE Integration
Section titled “IDE Integration”Visual Studio Code
Section titled “Visual Studio Code”# For CUE syntax highlighting (available now)code --install-extension cuelang.cueIntelliJ/CLion
Section titled “IntelliJ/CLion”Vim/Neovim
Section titled “Vim/Neovim”Add CUE syntax support with vim-cue:
" Add to your vimrcPlug 'jjo/vim-cue'Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Command not found
Ensure ~/.cargo/bin is in your PATH:
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrcsource ~/.bashrcPermission denied
On Linux/macOS, ensure the binary is executable:
chmod +x ~/.cargo/bin/cuenvBuild failures
Update Rust to the latest version:
rustup updateSSL/TLS errors
Update certificates and try again:
# Ubuntu/Debiansudo apt update && sudo apt install ca-certificates
# macOSbrew install ca-certificatesGetting Help
Section titled “Getting Help”If you encounter issues:
- Check the troubleshooting guide
- Search existing GitHub issues
- Create a new issue with:
- Your operating system and version
- Rust version (
rustc --version) - Installation method used
- Complete error message
Next Steps
Section titled “Next Steps”After installation:
- Follow the Quick Start guide
- Explore configuration options
- Learn about task orchestration
- Set up your first typed environment