The Betaflight CLI (Command Line Interface) is a strong device that offers FPV drone builders direct entry to all flight controller settings. Whereas most pilots depend on the graphical interface, the CLI offers deeper management, quicker 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 tips on how to 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 means of the GUI, some superior choices are solely obtainable by way of the command line. These settings are usually not wanted by most pilots, so they’re stored out of the GUI to scale back litter.
Moreover, the CLI is an environment friendly manner for superior customers to test, copy, and restore settings.
Why Use Betaflight CLI?
- Entry to Superior Settings: CLI offers entry to all settings, together with these not obtainable within the GUI.
- Straightforward Backup and Restore: It can save you and restore configurations by copying and pasting instructions.
- Environment friendly Troubleshooting: Shortly determine and modify parameters that may be inflicting points along with your drone.
The 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.
Should you’re new to Betaflight Configurator, try this tutorial: https://oscarliang.com/betaflight-firmware-setup/
The way to Use Betaflight CLI
You may sort instructions within the textual content enter discipline on the backside of the display 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 sort save to use it. The flight controller will reboot instantly after saving.
Should you exit the CLI with out saving, your adjustments shall be misplaced.
To exit the CLI with out saving settings, you’ll be able to
- 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’ll be able to sort instructions in any case you need, massive 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
Additional areas across the equal signal (=) don’t matter. The CLI will nonetheless interpret the command appropriately, 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 exhibits each obtainable CLI command.
Use this when:
- You don’t know what instructions exist
- You’re exploring new options
standing – Verify FC System Information
standing
This is without doubt one of the most essential instructions.
It exhibits:
- CPU sort (F4, F7, H7, and so on.) and clock pace
- Out there sensors (gyroscope, accelerometer, barometer, magnetometer, GPS, and so on.)
- Flash reminiscence
- Firmware construct key (helpful for checking construct choices)
- System information reminiscent of CPU load, voltage, gyro price, and so on.
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 particularly helpful should you don’t have them memorized:
get gps
For example, this returns all settings that start with “gps” (mainly all GPS-related settings), you’ll be able to then choose the settings you need, and test its present worth.
And if I wish to test Turtle mode associated settings (Flip Over After Crash), I sort
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 – Go away With out Saving
exit
Use this should you don’t wish to save adjustments.
Tip: You can even unplug the FC to discard unsaved adjustments.
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. Once you wish 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 – usually over 1000 strains. That’s why the diff command may be most well-liked.
diff
Not like dump, this solely exhibits 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/
Suggestions and Methods
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 recommend all potentialities. That is handy, particularly for lengthy instructions.
Don’t Neglect to SAVE!
At all times sort save earlier than exiting CLI if you wish to maintain the adjustments.
Bootloader Mode (DFU)
As an alternative of urgent the boot button on the FC, you’ll be able to put the FC into bootloader mode (DFU mode) by getting into this command:
bl
To exit DFU mode, unplug (energy off FC) and reconnect the USB cable.
System Monitoring
The job command exhibits 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 Would possibly Have Modified – Get Assist!
Some command title would possibly change from model to model. When unsure, you’ll be able to at all times test the obtainable instructions utilizing assist.
Different Helpful Betaflight CLI Instructions
Listed below are some continuously used instructions you must learn 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 can be completely different from the defaults. Consists of solely the present PID profile. |
diff all |
dump solely the settings which can 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 checklist) |
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 checklist: 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 a couple of key instructions, it turns into an extremely highly effective however easy to make use of device. Betaflight CLI is important for any FPV drone pilot seeking to dive deeper into their setup, discover superior options, troubleshoot points, and backup and restore configurations simply. Completely happy flying!
Edit Historical past
- Could 2018 – Information created
- Feb 2019 – Up to date, added “Syntax”
- Could 2021 – Added “Suggestions and Methods”
- Aug 2024 – Up to date
- Mar 2026 – Up to date
