Getting Started with EnvFly CLI
This guide will walk you through installing EnvFly CLI and setting up your first project.Prerequisites
Before you begin, make sure you have:- Node.js 14.0.0 or higher
- npm or yarn package manager
- Git (for Git storage provider)
Installation
Option 1: Install from npm (Recommended)
Option 2: Install from source
Verify Installation
Quick Setup
1. Initialize EnvFly in Your Project
Navigate to your project directory and run:1
Project Name
Enter a name for your project (defaults to directory name)
2
Storage Provider
Choose where to store your environment variables: - Git Repository:
Store encrypted files in your Git repo - AWS Secrets Manager: Use AWS
for enterprise-grade storage - Azure Key Vault: Use Azure Key Vault -
Google Secret Manager: Use Google Cloud - EnvFly Cloud Service: Use
EnvFly’s hosted service
3
Configuration
Configure your chosen storage provider
2. Create Your First Environment
After initialization, create a.env.production
file:
3. Push to Storage
4. Share with Your Team
If using EnvFly Cloud Service:Basic Workflow
Here’s the typical workflow for using EnvFly CLI:Common Commands
Storage Provider Setup
Git Repository (Recommended for small teams)
- ✅ No external dependencies
- ✅ Full version control
- ✅ Works offline
- ✅ Free
- ❌ Requires encryption key management
- ❌ Limited team features
EnvFly Cloud Service (Recommended for teams)
- ✅ Built-in team management
- ✅ Role-based access control
- ✅ Audit logs
- ✅ No key management
- ❌ Requires internet connection
- ❌ May have usage limits
AWS Secrets Manager (Enterprise)
- AWS credentials configured (
aws configure
) - Secrets Manager access permissions
Next Steps
Troubleshooting
Common Issues
Installation fails
Installation fails
Make sure you have Node.js 14+ installed and try:
bash npm cache clean --force npm install -g envfly-cli
Authentication errors
Authentication errors
For EnvFly Cloud Service, make sure you’re logged in: ```bash envfly login
Getting Help
- Documentation: Browse the rest of this documentation
- GitHub Issues: Report bugs
- Discord: Join our community
- Email: support@envfly.io