Installation
This guide covers installing EnvFly CLI on different operating systems and package managers.Prerequisites
Before installing EnvFly CLI, ensure you have:- Node.js 14.0.0 or higher
- npm or yarn package manager
- Git (for Git storage provider)
Quick Install
npm (Recommended)
yarn
pnpm
Verify Installation
After installation, verify that EnvFly CLI is working:Platform-Specific Installation
macOS
Using Homebrew
Using npm
Linux
Ubuntu/Debian
CentOS/RHEL/Fedora
Arch Linux
Windows
Using Chocolatey
Using npm
Using Scoop
Development Installation
If you want to install from source for development:Docker Installation
You can also run EnvFly CLI using Docker:Installation Options
Global vs Local Installation
Version Management
Using nvm (Node Version Manager)
Using fnm (Fast Node Manager)
Troubleshooting
Common Installation Issues
Permission Denied
Permission Denied
Error:
EACCES: permission denied
Solution: Use a different
installation method or fix permissions: bash # Option 1: Use npx (no global install needed) npx envfly-cli init # Option 2: Fix npm permissions sudo chown -R $USER /usr/local/lib/node_modules # Option 3: Use a different directory npm config set prefix ~/.npm-global export PATH=~/.npm-global/bin:$PATH
Node.js Version Too Old
Node.js Version Too Old
Error:
requires Node.js version >= 14.0.0
Solution: Update
Node.js: bash # Using nvm nvm install 18 nvm use 18 # Or download from nodejs.org # https://nodejs.org/
Command Not Found
Command Not Found
Error:
envfly: command not found
Solution: Check your PATH and
reinstall: bash # Check if installed npm list -g envfly-cli # Reinstall npm uninstall -g envfly-cli npm install -g envfly-cli # Check PATH echo $PATH which node
Network Issues
Network Issues
Error: Network timeout or connection refused Solution: Check your
network and npm configuration:
bash # Check npm configuration npm config list # Use a different registry if needed npm config set registry https://registry.npmjs.org/ # Clear npm cache npm cache clean --force
Platform-Specific Issues
macOS Issues
Windows Issues
Linux Issues
Uninstallation
To remove EnvFly CLI:Next Steps
After successful installation:- Initialize a project:
envfly init
- Check available commands:
envfly --help
- Read the getting started guide: Getting Started