tmf rollback — Restore Config
Description
tmf rollback restores a supported application's configuration from its .bak backup file. When switching a provider or model causes issues, this command offers a quick way to revert to the previous stable configuration.
Syntax
bash
tmf rollback [options]Options
| Option | Description |
|---|---|
-a, --app <app> | Target application: codex, claude-code (aliases: claude, cc), openclaw, opencode, hermes, pi |
Examples
bash
# Restore Claude Code's configuration
tmf rollback --app claude-codebash
# Restore Codex's configuration
tmf rollback --app codexbash
# Restore OpenClaw's configuration
tmf rollback --app openclawExample output:
✅ claude-code config restored to backup version. Please restart the application.Notes
- The
rollbackoperation is irreversible — verify the target application before proceeding. - If the target application has no
.bakbackup, it is skipped with a warning. - It is recommended to run
tmf testafter switching providers to confirm everything works and avoid unnecessary rollbacks. - After a rollback, you can use
tmf useto switch the configuration again.
