Skip to main content

Overview

The ftl snapshots command lists and manages snapshots created during FTL coding sessions. Snapshots capture all changes made by the AI agent, allowing you to review, restore, or clean up old snapshots.

Usage

List Snapshots

Clean Snapshots

Options

boolean
default:"false"
Show snapshots for all projects instead of just the current project

List Command Examples

List Current Project Snapshots

List All Projects

No Snapshots Found

Clean Command

The snapshots clean subcommand deletes snapshots based on specified criteria.

Clean Options

integer
Delete the N most recent snapshots
boolean
default:"false"
Delete all snapshots
boolean
default:"false"
Limit deletion to snapshots from the current project
boolean
default:"false"
Skip confirmation prompt

Clean Command Examples

Delete Last 3 Snapshots

Delete All Snapshots (with confirmation)

Delete All Project Snapshots (skip confirmation)

Cancel Deletion

Error Cases

No .ftlconfig and —all Not Specified

Missing Clean Options

Snapshot Storage

Local Mode

Snapshots are stored in ~/.ftl/snapshots/ by default:

AWS Mode

When configured with ftl config --aws, snapshots are stored in S3:

Snapshot Lifecycle

  1. Created - When ftl code completes a task
  2. Listed - View with ftl snapshots
  3. Restored - Apply changes to working directory (via FTL shell)
  4. Cleaned - Delete with ftl snapshots clean

Working with Snapshots in FTL Shell

When using the interactive ftl shell, additional snapshot commands are available:

Best Practices

  • Review snapshots regularly and clean up old ones to save disk space
  • Use --project-only when cleaning to avoid deleting snapshots from other projects
  • Always review the snapshot list before confirming deletion (unless using -y)
  • Keep important snapshots by not including them in bulk deletion

See Also