@agiflowai/agent-cli
Official Agiflow CLI for AI-powered workflow automation and project management
Installation
Available Commands
agiflow connect
Connect your local development environment to Agiflow. This command establishes a secure connection for real-time AI assistance and workflow automation.
Usage
Options
--project
Specify the project to connect to--env
Environment (development, staging, production)--port
Local port for the connection (default: 3456)Example
agiflow claude
Launch Claude AI assistant for your project. Get intelligent code suggestions, automated refactoring, and AI-powered debugging assistance.
Usage
Options
--mode
Assistant mode (chat, code, debug)--context
Include project context--file
Focus on specific file or directoryExample
agiflow logout
Sign out of your Agiflow account and clear local authentication credentials.
Usage
Environment Variables
Configure the CLI behavior using environment variables:
AGIFLOW_API_KEY
Your Agiflow API key for authentication
AGIFLOW_PROJECT_ID
Default project ID to use for connections
AGIFLOW_ENV
Default environment (development, staging, production)
Example .env file
Authentication
The CLI uses secure OAuth authentication. On first use, you'll be prompted to authenticate:
Authentication tokens are securely stored in your system's credential manager and automatically refreshed when needed.
Troubleshooting
Connection Issues
If you're having trouble connecting to Agiflow:
- •Check your internet connection
- •Verify your API key is valid
- •Ensure you're using the latest version:
npm update -g @agiflowai/agent-cli
- •Try logging out and back in:
agiflow logout
thenagiflow connect
Permission Errors
If you encounter permission errors during installation:
Debug Mode
Enable verbose logging for debugging:
Links
Ready to supercharge your development?
Join thousands of developers using Agiflow to build faster and smarter
Get Started Free