r2r init
Creates a minimal .r2r/r2r-cli.yml configuration file in the repository root. This is the first step in setting up R2R for extension management.
Syntax
Description
The init command creates the .r2r/r2r-cli.yml file in your project. This file manages extension registration and configuration.
What it does:
- Creates the
.r2r/directory if needed - Generates a minimal
r2r-cli.ymlwith empty extension list - Ready for extension installation via
r2r install
What it creates:
Flags
| Flag | Description |
|---|---|
--delete-configs |
Delete all configuration files including overrides |
--use-pwd-as-root |
Use current directory as repository root (creates .git if needed) |
-h, --help |
Display help information |
Examples
Basic Initialization
Reset Configuration
Remove all existing configuration and start fresh:
Three-Step Setup
# Step 1: Initialize R2R configuration
r2r init
# Step 2: Install EAC extension
r2r install eac
# Step 3: Configure EAC
r2r eac init --ai-provider claude-api
File Structure
After r2r init:
After r2r install eac:
After r2r eac init:
your-project/
├── .r2r/
│ ├── r2r-cli.yml # Extension registry
│ └── eac/ # EAC configuration
│ ├── ai-provider.yml
│ └── repository.yml
└── (your project files)
Configuration File
The generated configuration:
After installing EAC:
extensions:
- name: 'eac'
image: 'ghcr.io/ready-to-release/ext-eac:latest'
description: 'Everything-as-Code automation'
See Also
- R2R CLI Overview - Command overview and architecture
- install command - Install extensions after init
- Configuration Reference - Detailed configuration options
- Quick Start Tutorial - Complete setup guide
- CLI vs Extensions - Understanding the architecture
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.