# Betaflight CLI with diff all backup and restore

The Betaflight CLI is the text command line inside the firmware, where every setting can be read and changed and a diff all makes a backup. FlySpark opens it in Chrome or Edge over USB or Bluetooth and in its Android and iPhone apps, with autocomplete, history, one-tap backup and checked restore.

HTML: https://app.flyspark.in/betaflight-cli/
Updated: 2026-10-17

The Betaflight CLI is the command line inside the firmware. Every setting lives there, including the ones without a screen of their own, and a diff all from the CLI is the standard way to back up a quad. FlySpark gives you the CLI in Chrome or Edge over USB or Bluetooth, and in the FlySpark app on Android and iPhone, with suggestions as you type and a one-tap backup.

This page covers what the CLI is for, the commands pilots use most, how to back up and restore safely after a firmware update, the error messages you will see and what they mean, and how FlySpark's restore checks protect you from loading the wrong file.

## Key facts

- Backup runs diff all, which lists every non-default setting across all profiles.
- Betaflight's docs warn never to paste a diff from one firmware version into another; FlySpark compares the backup's header and board with the connected board before restoring.
- Restore skips save, exit, reboot, bl, dfu, msc, flash_erase and plain defaults; defaults nosave is kept.
- Restore from a file, the clipboard or one of the last 10 saved backups.
- Command history keeps the last 500 commands.
- Betaflight quick commands: status, version, diff, diff all, get, help, tasks, resource and serial.

## FAQ

### What is the difference between diff, diff all and dump?

Dump lists every setting. Diff lists only those changed from the defaults. Diff all does the same for every profile and is the usual backup.

### How do I save in the Betaflight CLI?

Type save, or press Save in FlySpark. The settings are stored and the board reboots. Exit leaves without saving.

### Can I restore a backup from the official Betaflight App?

Yes. Both use plain CLI text, so a diff all file from either tool can be restored in the other.

### Can I restore an old backup on new firmware?

Usually yes with a diff all. Some lines may be rejected if settings were renamed; FlySpark lists them and asks before saving.

### Is it safe to restore a backup from a different board?

Not as a whole. Pins, timers and ports belong to one board. FlySpark warns you; copy only rates, PIDs, modes and OSD lines instead.

### Why does the board reboot when I close the CLI?

Betaflight reboots on both save and exit. It is normal, and FlySpark waits for the board and reconnects.

### Where are backups saved in the browser?

In the browser's local storage, listed under Saved. Share downloads a backup as a text file; keep that copy, because clearing site data removes the stored ones.

### Can I use the Betaflight CLI on my phone?

Yes. The FlySpark app on Android and iPhone has the same CLI, backup and restore, over USB OTG on Android, Bluetooth or Wi-Fi.

### How do I get into DFU or bootloader mode from the CLI?

Type bl and press Send. The board reboots into its bootloader for flashing. Power it again without holding BOOT to return to normal.

### Does it work with INAV?

Yes. The INAV configurator has the same CLI, backup and restore.

