Skip to content

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:

In this section

TutorialWhat it covers
CLI: Getting Started (A to Z)Install, authenticate, create a lens, run a workflow — terminal only
File-based CLI: BasicsFirst lens, agent, workflow, battle, and ray using .lenserfight/ files
File-based CLI: Global & MonorepoMulti-project setup, global config, monorepo patterns
File-based CLI: PR & Content WorkflowsGitHub PR review and YouTube content workflows
File-based CLI: Legal, Finance & StartupDomain-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 lf commands from scripts

For most learning and one-off usage, the web UI is faster. Every CLI operation has a web equivalent.