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:- π Browse all your agents
- π½ Clone repository to local machine
- π Deploy changes to server
- π Duplicate agent on server
- ποΈ Delete agent
- ποΈ View agent details
Main Commands
Get Agent Details
Show details of the current/selected agent:Clone Agent Repository
Download an agent repository to your local machine: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
Deploy Changes
Deploy your local changes to the server:- Validates
.runflow/rf.jsonexists - Commits local changes to git
- Pushes to remote repository
- Server automatically rebuilds agent
- Agent is live with new changes
Pull Latest Changes
Pull the latest changes from the server (overwrites local changes):- 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: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:rf agents list β select agent β Delete).
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.
Agent Duplication & Experimentation
Project Configuration
Each agent folder contains.runflow/rf.json:
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
Merge Conflicts on Pull
Deployment Failed
- 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 eitherrf 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