Overview
Theftl init command creates a .ftlconfig file in the current directory, initializing FTL for your project. This file stores project-specific configuration and must exist before you can run coding tasks.
Usage
Behavior
When you runftl init:
- Creates a
.ftlconfigfile in the current directory with default settings - If
.ftlconfigalready exists, prints a message and exits without making changes - The config file is required for running
ftl codeand other commands
Example
What Gets Created
The.ftlconfig file contains project-specific settings that control:
- Which AI agent to use (inherited from global config)
- Which tester model to use for test generation
- Snapshot backend configuration (local or S3)
- AWS integration settings (optional)
Global vs Project Config
FTL uses a two-level configuration system:- Global config (
~/.ftl/config.json) - Set byftl setup, stores agent and tester defaults - Project config (
.ftlconfig) - Created byftl init, can override global settings
Next Steps
After runningftl init:
- Run
ftl code "your task"to start a coding session - Optionally run
ftl config --awsto enable AWS features
Required Before
Before runningftl init, you should:
- Run
ftl setupto configure your agent and API credentials - Navigate to your project directory
See Also
- ftl setup - Initial FTL setup wizard
- ftl code - Run a coding task
- ftl config - Configure AWS integration