1 # Command Line Interface (CLI)
3 Cleanflight has a command line interface (CLI) that can be used to change settings and configure the FC.
7 The CLI can be accessed via the GUI tool or via a terminal emulator connected to the CLI serial port.
9 1. Connect your terminal emulator to the CLI serial port (which, by default, is the same as the MSP serial port)
10 2. Use the baudrate specified by cli_baudrate (115200 by default).
11 3. Send a `#` character.
13 To save your settings type in 'save', saving will reboot the flight controller.
15 To exit the CLI without saving power off the flight controller or type in 'exit'.
17 To see a list of other commands type in 'help' and press return.
19 To dump your configuration (including the current profile), use the 'dump' command.
21 See the other documentation sections for details of the cli commands and settings that are available.
25 Disconnect main power, connect to cli via USB/FTDI.
33 dump profiles using cli if you use them
41 dump rate profiles using cli if you use them
49 copy screen output to a file and save it.
53 Use the cli `defaults` command first.
55 When restoring from a backup it is a good idea to do a dump of the latest defaults so you know what has changed - if you do this each time a firmware release is created youwill be able to see the cli changes between firmware versions. For instance, in December 2014 the default GPS navigation PIDs changed. If you blindly restore your backup you would not benefit from these new defaults.
57 Use the CLI and send all the output from the saved from the backup commands.
59 Do not send the file too fast, if you do the FC might not be able to keep up when using USART adapters (including built in ones) since there is no hardware serial flow control.
61 You may find you have to copy/paste a few lines at a time.
63 Repeat the backup process again!
65 Compare the two backups to make sure you are happy with your restored settings.
67 Re-apply any new defaults as desired.