CLI Reference
The Agent Actions CLI (agac) is your primary interface for building and running agentic workflows. Think of it like a conductor's baton for orchestrating LLM actions - you can execute workflows, inspect field dependencies, manage batch processing, and debug issues all from the command line.
Let's explore what agac can do for you.
Global Flags
These flags work with all commands and help you understand what's happening inside your agentic workflows:
--version
Display the Agent Actions version.
agac --version
--debug
Enable debug mode with verbose logging and source file/line references.
agac run -a my_workflow --debug
-v / --verbose
Enable verbose output.
agac run -a my_workflow --verbose
-q / --quiet
Suppress non-essential output. Useful for scripts and CI/CD pipelines where you only want to see errors.
agac run -a my_workflow --quiet
--help
Show help message and available commands.
agac --help
agac run --help
Working Directory
You might wonder: do I need to be in my project's root directory to run commands?
No - Agent Actions CLI commands automatically detect your project root by searching for agent_actions.yml, similar to how git finds .git or npm finds package.json. This means you can run commands from any subdirectory within your project.
How It Works
The CLI walks up the directory tree from your current location looking for agent_actions.yml:
my-project/
├── agent_actions.yml # Project root marker
├── src/
│ ├── agents/
│ └── utils/
└── tests/
# All of these work the same:
# From project root
cd my-project
agac run my-workflow.yaml
# 📁 Project root: .
# From subdirectory
cd my-project/src/utils
agac run my-workflow.yaml
# 📁 Project root: ../..
# From any depth
cd my-project/src/agents/helpers
agac run my-workflow.yaml
# 📁 Project root: ../../../
Not in a Project?
If you're outside a project directory, you'll get a helpful error:
$ cd /tmp
$ agac run my-workflow.yaml
Error: Not in an Agent Actions project
Could not find 'agent_actions.yml' in current directory or any parent directory.
Current directory: /tmp
Solutions:
1. Navigate to your Agent Actions project directory
2. Run 'agac init' to create a new project
Commands That Work Anywhere
These commands don't require being in a project:
init- Create a new project--version- Show version--help- Display help
Commands Overview
Here's what each command does - organized by what you're trying to accomplish:
Running agentic workflows:
| Command | Description |
|---|---|
run | Execute an agentic workflow |
batch | Manage batch processing operations |
Inspecting and debugging:
| Command | Description |
|---|---|
inspect | Analyze workflow structure, dependencies, and data flow |
schema | Display input/output schemas and analyze field dependencies |
preview | Preview data stored in the SQLite storage backend |
list-udfs | List discovered tools |
validate-udfs | Validate tool references |
render | Compile and render workflow configuration |
compile | Alias for render |
Project management:
| Command | Description |
|---|---|
init | Initialize a new project |
clean | Clean up generated files |
docs | Generate documentation |
status | Check agentic workflow status |
skills | Install AI assistant skills (Claude Code / Codex) |
Next Steps
- run Command - Execute agentic workflows with all available options
- batch Commands - Manage batch processing for large-scale operations
- preview Command - Inspect data in the SQLite storage backend
- Troubleshooting - Error messages and debugging strategies