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

~ agent-cli connect

Connect Agiflow daemon to receive commands from remote server. This establishes a persistent connection for remote AI agent management and workflow automation.

Usage

agent-cli connect [options]

Examples

# Basic connection
agent-cli connect

~ agent-cli claude

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

Usage

agent-cli claude [options]

Options

--modeAssistant mode (chat, code, debug)

~ agent-cli logout

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

Usage

agent-cli logout

Authentication

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

# First time setup
$ agent-cli 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: agent-cli logout then agent-cli 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
agent-cli connect --debug
# Or set environment variable
DEBUG=agiflow:* agent-cli claude

API Reference

Complete Command Reference

For a complete list of all commands and options, use the built-in help:

# Get help for all commands
agent-cli --help
# Get help for specific command
agent-cli connect --help

Links