arcflow init
Scaffolds a new ArcFlow project directory with workflow folders, example stub file, and minimal config. Works offline (no network calls).
Usage
| Argument / flag | Default | Description |
|---|---|---|
OUTPUT_DIR | my-arcflow-project | Target directory |
--lang | python | python or typescript (file extension) |
--force | off | Overwrite non-empty directory |
Examples
Python project:
TypeScript project:
Force into existing folder:
Generated structure
arcflow.config.yaml (initial content):
workflows/example_workflow.{py|ts} contains a one-line comment pointing to arcflow run.
Expected output
Exit codes
| Code | Cause |
|---|---|
| 0 | Success |
| 1 | Directory not empty without --force |
| 3 | Filesystem error creating dirs or files |
Next steps after init
- Replace example workflow with real
Workflow+Agentdefinitions (Python or TypeScript SDK). - Copy
.env.examplepatterns from SDK README for provider keys. - Run via SDK or
arcflow run(see run.md).
init does not install Python packages or npm modules. Install SDK separately per getting-started/install-and-build.md.