The Betaflight CLI (Command Line Interface) is a strong software that offers FPV drone builders direct entry to all flight controller settings. Whereas most pilots depend on the graphical interface, the CLI supplies deeper management, sooner workflows, and entry to all superior settings. On this information, you’ll be taught what the CLI is, why it issues, the important instructions each pilot ought to know, and how you can configure and troubleshoot utilizing the CLI.
What’s Betaflight CLI?
Betaflight CLI is a text-based interface the place customers can ship instructions and configure settings on the flight controller.
Why use the CLI when you have already got a graphical person interface (GUI)? Whereas most settings are accessible by the GUI, some superior choices are solely obtainable by way of the command line. These settings are sometimes not wanted by most pilots, so they’re saved out of the GUI to cut back litter.
Moreover, the CLI is an environment friendly method for superior customers to verify, copy, and restore settings.
Why Use Betaflight CLI?
- Entry to Superior Settings: CLI supplies entry to all settings, together with these not obtainable within the GUI.
- Simple Backup and Restore: It can save you and restore configurations by copying and pasting instructions.
- Environment friendly Troubleshooting: Rapidly establish and modify parameters that may be inflicting points together with your drone.
The best way to Entry CLI?
- Join your flight controller to your pc by way of USB
- Open Betaflight Configurator and click on Join
- Go to the CLI tab on the left-hand panel
You’ll see a command immediate the place you can begin typing instructions.
If you happen to’re new to Betaflight Configurator, try this tutorial: https://oscarliang.com/betaflight-firmware-setup/
The best way to Use Betaflight CLI
You may kind instructions within the textual content enter area on the backside of the display screen and press Enter to execute them.
Sometimes, a command follows this construction:
[command] [setting] = [value]
For instance, to disable RC smoothing:
set rc_smoothing = OFF
save
After altering a setting, you could kind save to use it. The flight controller will reboot instantly after saving.
If you happen to exit the CLI with out saving, your modifications will probably be misplaced.
To exit the CLI with out saving settings, you possibly can
- Enter the command
exit - Or, click on on one other tab
- Or, click on the top-right “disconnect” button
- Or, unplug USB cable
- Or, simply shut the configurator
CLI Syntax Fundamentals
The syntax in Betaflight CLI is easy and beginner-friendly.
Not Case Delicate
Instructions are case insensitive in CLI, you possibly can kind instructions in any case you need, large letters, small letters, don’t matter, all the following work the identical:
set serialrx_inverted = onSET SERIALRX_INVERTED = ONseT serialRX_inverTED = oN
Areas Don’t Matter
Further areas across the equal signal (=) don’t matter. The CLI will nonetheless interpret the command accurately, all these command work the identical:
set serialrx_inverted = onset serialrx_inverted=onset serialrx_inverted =onset serialrx_inverted = on
Primary CLI Instructions You Should Know
assist – Listing All Instructions
assist
This reveals each obtainable CLI command.
Use this when:
- You don’t know what instructions exist
- You’re exploring new options
standing – Examine FC System Data
standing
This is without doubt one of the most necessary instructions.
It reveals:
- CPU kind (F4, F7, H7, and many others.) and clock velocity
- Accessible sensors (gyroscope, accelerometer, barometer, magnetometer, GPS, and many others.)
- Flash reminiscence
- Firmware construct key (helpful for checking construct choices)
- System information comparable to CPU load, voltage, gyro charge, and many others.
Use this for fast diagnostics, particularly if one thing isn’t working (e.g., gyro lacking).
get – View Settings
get
You should use this to seek for particular settings, which is very helpful should you don’t have them memorized:
get gps
As an illustration, this returns all settings that start with “gps” (principally all GPS-related settings), you possibly can then choose the settings you need, and verify its present worth.
And if I need to verify Turtle mode associated settings (Flip Over After Crash), I kind
get crashflip
set – Change Settings
set yaw_expo = 0
This modifies a parameter.
save – Apply Adjustments
save
Adjustments are NOT saved till you run the save command. This may reboot the flight controller.
exit – Depart With out Saving
exit
Use this should you don’t need to save modifications.
Tip: You may as well unplug the FC to discard unsaved modifications.
Saving and Copying Configurations
To output your complete configuration, use:
dump
This prints all Betaflight settings.
This can be utilized for backing up your drone configuration, or for sharing with different pilots when troubleshooting an issue. You run this command, and duplicate the output to a textual content file. While you need to restore Betaflight settings (or copy the very same settings to a different drone), you merely copy these strains, paste them within the CLI, and enter save.
One drawback with dump is the massive output – sometimes over 1000 strains. That’s why the diff command may be most well-liked.
diff
In contrast to dump, this solely reveals settings that differ from defaults, making it a lot shorter and simpler to work with.
Tip: For backup and restore, there’s no want to make use of CLI these days, the method is now simplified through the use of the Preset tab as defined right here: https://oscarliang.com/backup-restore-betaflight-config/
Ideas and Tips
Press TAB to Auto-Full
Begin typing a command and press TAB to auto-complete or see options.
Begin typing a command and press TAB to auto full. If there are a number of choices, the CLI will counsel all potentialities. That is handy, particularly for lengthy instructions.
Don’t Overlook to SAVE!
At all times kind save earlier than exiting CLI if you wish to hold the modifications.
Bootloader Mode (DFU)
As a substitute of urgent the boot button on the FC, you possibly can put the FC into bootloader mode (DFU mode) by coming into this command:
bl
To exit DFU mode, unplug (energy off FC) and reconnect the USB cable.
System Monitoring
The job command reveals the CPU load of all processes working on the flight controller. That is nice for troubleshooting in case your FC is experiencing CPU load points.
Instructions May Have Modified – Get Assist!
Some command title would possibly change from model to model. When unsure, you possibly can all the time verify the obtainable instructions utilizing assist.
Different Helpful Betaflight CLI Instructions
Listed below are some steadily used instructions it’s best to find out about:
| Command | Description |
|---|---|
defaults | reset all settings to default values and reboot (helpful earlier than you restore settings) |
dump | print configurable settings in a paste-able kind |
diff | dump solely the settings which might be completely different from the defaults. Consists of solely the present PID profile. |
diff all | dump solely the settings which might be completely different from the defaults. Consists of ALL PID profiles. |
exit | exit with out saving |
get | get the worth of the desired variable |
assist | lists all instructions |
save | save settings and reboot |
set | set the the given worth to the variable. (title=worth or clean or * for record) |
standing | present system standing |
model | present model |
bl | enter the DFU mode with out pushing the button. Reboots the FC board in bootloader mode. |
bind_rx | provoke binding for receivers that makes use of these protocols: SPI, SRXL2 and CRSF |
Full CLI command record: https://www.betaflight.com/docs/wiki/guides/present/Betaflight-2025.12-CLI-commands
Conclusion
The Betaflight CLI could look intimidating at first, however when you be taught just a few key instructions, it turns into an extremely highly effective however easy to make use of software. Betaflight CLI is crucial for any FPV drone pilot trying to dive deeper into their setup, discover superior options, troubleshoot points, and backup and restore configurations simply. Blissful flying!
Edit Historical past
- Might 2018 – Information created
- Feb 2019 – Up to date, added “Syntax”
- Might 2021 – Added “Ideas and Tips”
- Aug 2024 – Up to date
- Mar 2026 – Up to date
