CLI Toolv1.0.0

@agiflowai/agent-cli

Official Agiflow CLI for AI-powered workflow automation and project management

Installation

# Install globally with npm
npm install -g @agiflowai/agent-cli
# Or use with npx
npx @agiflowai/agent-cli

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

agiflow connect [options]

Options

--projectSpecify the project to connect to
--envEnvironment (development, staging, production)
--portLocal port for the connection (default: 3456)

Example

# Connect to a specific project
agiflow connect --project my-app --env development

agiflow claude

Launch Claude AI assistant for your project. Get intelligent code suggestions, automated refactoring, and AI-powered debugging assistance.

Usage

agiflow claude [options]

Options

--modeAssistant mode (chat, code, debug)
--contextInclude project context
--fileFocus on specific file or directory

Example

# Start Claude in code mode with project context
agiflow claude --mode code --context
# Debug a specific file
agiflow claude --mode debug --file src/app.ts

agiflow logout

Sign out of your Agiflow account and clear local authentication credentials.

Usage

agiflow logout

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

AGIFLOW_API_KEY=your_api_key_here
AGIFLOW_PROJECT_ID=proj_123456
AGIFLOW_ENV=development

Authentication

The CLI uses secure OAuth authentication. On first use, you'll be prompted to authenticate:

# First time setup
$ agiflow connect
→ Opening browser for authentication...
→ Successfully authenticated!
→ Connected to project: my-app

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 then agiflow connect

Permission Errors

If you encounter permission errors during installation:

# On macOS/Linux, you may need to use sudo
sudo npm install -g @agiflowai/agent-cli
# Or configure npm to use a different directory
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH

Debug Mode

Enable verbose logging for debugging:

# Run any command with debug flag
agiflow connect --debug
# Or set environment variable
DEBUG=agiflow:* agiflow claude

Links

Ready to supercharge your development?

Join thousands of developers using Agiflow to build faster and smarter

Get Started Free