CLI Tutorials
This section contains tutorials focused on the lf CLI tool — hands-on command references and CLI-driven workflows.
Looking for concept explanations?
These tutorials assume you understand the platform concepts. If you are new, start with:
- What is LenserFight? — plain-language concept overview
- Your First Battle — concept-first battle tutorial
In this section
| Tutorial | What it covers |
|---|---|
| CLI: Getting Started (A to Z) | Install, authenticate, create a lens, run a workflow — terminal only |
| File-based CLI: Basics | First lens, agent, workflow, battle, and ray using .lenserfight/ files |
| File-based CLI: Global & Monorepo | Multi-project setup, global config, monorepo patterns |
| File-based CLI: PR & Content Workflows | GitHub PR review and YouTube content workflows |
| File-based CLI: Legal, Finance & Startup | Domain-specific workflow examples |
When to use the CLI
The CLI is the right tool when you:
- Want to automate battles in CI/CD pipelines
- Need to script lens and workflow creation
- Prefer terminal-driven workflows over the web UI
- Are building integrations that call
lfcommands from scripts
For most learning and one-off usage, the web UI is faster. Every CLI operation has a web equivalent.
Related reference
- CLI Reference — complete flag reference for all
lfcommands - lf battle reference — battle command flags
- lf lens reference — lens command flags