Reflex Docs
CLI

reflex init

Scaffold a Reflex project — agentic hardware wizard when logged in.

reflex init scaffolds a project in the target directory. When you're logged in (reflex login) and running interactively, it launches an agentic wizard that asks about your hardware and writes a ready-to-run reflex.yaml. Otherwise it writes a template scaffold from flags/defaults.

reflex init                # scaffold into the current directory
reflex init my-robot       # scaffold into ./my-robot

Flags

FlagDefaultDescription
DIRECTORY.Directory to scaffold into (positional argument).
--modelBase model for the offline scaffold.
--robotRobot name for the offline scaffold.
--taskTask / prompt for the offline scaffold.
--camerasComma-separated camera names for the offline scaffold.
--yes, -yoffNon-interactive: scaffold from defaults/flags, no AI.
--forceoffOverwrite existing files.
--no-aioffSkip the AI wizard; just write the template scaffold.
--no-knowledgeoffSkip writing AGENTS.md and the Cursor rule.
--max-rounds30Cap on AI wizard tool-call rounds.

The wizard writes a reflex.yaml you can run straight away with reflex connect.

On this page