Skip to main content
The rf agents command (or rf agent singular) provides complete agent management capabilities with an interactive menu and support for automation via non-interactive flags.

Commands Overview

Interactive Menu

List Agents

List all available agents with an interactive menu:
This opens an interactive menu where you can:
  • πŸ“‹ Browse all your agents
  • πŸ”½ Clone repository to local machine
  • πŸš€ Deploy changes to server
  • πŸ“‹ Duplicate agent on server
  • πŸ—‘οΈ Delete agent
  • πŸ‘οΈ View agent details
The interactive menu is the fastest way to manage agents - no need to remember multiple commands!

Main Commands

Get Agent Details

Show details of the current/selected agent:
Output:

Clone Agent Repository

Download an agent repository to your local machine:
Or use the interactive menu (rf agents list β†’ select agent β†’ Clone repository). This creates a local folder with the agent’s code, allowing you to:
  • Make changes locally
  • Test changes with rf test
  • Deploy updates with rf agents deploy
What gets cloned:

Deploy Changes

Deploy your local changes to the server:
Make sure you’re in the agent’s directory before deploying. The CLI detects the agent from .runflow/rf.json.
Deployment Process:
  1. Validates .runflow/rf.json exists
  2. Commits local changes to git
  3. Pushes to remote repository
  4. Server automatically rebuilds agent
  5. Agent is live with new changes

Pull Latest Changes

Pull the latest changes from the server (overwrites local changes):
This command will overwrite your local changes. Make sure to commit or backup your work before pulling.
When to use:
  • After changes made via dashboard
  • Sync with team member changes
  • Reset to server state

Duplicate Agent

Create a copy of an agent on the server:
Or use the interactive menu (rf agents list β†’ select agent β†’ Duplicate). Use cases:
  • Create dev/staging versions
  • Fork agent for different client
  • Experiment without affecting original

Delete Agent

Delete an agent from the server:
Or use the interactive menu (rf agents list β†’ select agent β†’ Delete).
This action is permanent and cannot be undone! The agent and its repository will be deleted.

Non-Interactive Mode

All commands support --yes or -y flag to skip confirmations, perfect for automation:

Common Workflows

Development Workflow

Existing Agent Workflow

Staging-to-Production Workflow

Runflow has two environments per tenant: staging and production. rf agents deploy always deploys to staging. When staging is validated, promote it to production.
For the full environment model β€” which entities are per-environment, how to publish prompts and connectors, and how the dashboard Releases screen works β€” see Environments.

Agent Duplication & Experimentation

Project Configuration

Each agent folder contains .runflow/rf.json:
Don’t delete or modify .runflow/rf.json - it’s required for deployment and local testing!

Using with AI Tools

Non-interactive mode works seamlessly with AI coding assistants:

Automation Scripts

Bulk Deployment

CI/CD Integration

Troubleshooting

Not in Agent Directory

Solution: Navigate to agent directory:

Merge Conflicts on Pull

Solution:

Deployment Failed

Solution:
  • Check for syntax errors in your code
  • Verify all dependencies are in package.json
  • Check server logs via dashboard
  • Ensure valid .runflow/rf.json

Aliases

You can use either rf agents (plural) or rf agent (singular):

Next Steps

Create Agent

Create new agent from template

Test

Test agents locally with web interface

Knowledge Base

Add knowledge base for RAG

Prompts

Manage prompt templates