# Console Commands

| command                                                                   | function                                                                                                                                                                                                                                                                                                                                                                                                            | example                                       |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| ap                                                                        | <p>Enable/disable or change the password for the WiFi Access Point<br>'ap ssid xxxx' (change AP name ).<br>'ap password xxxx' (set password ).<br>'ap disable' (disable AP).<br>'ap enable' (enable AP).</p>                                                                                                                                                                                                        | ap xxxx                                       |
| goto                                                                      | <p>Resume a job from a certain line.<br>Usage<br>Open the job, and start normally.<br>When the job begins to execute, pause it.<br>When it is successfully paused, go to the MDI window and manually input goto XXXX<br>You will see the job jump to XXXX line<br>Hit resume and continue the job.<br>Be very careful about Z height, and avoid any collisions, you can lift the Z a bit after pausing the job.</p> | goto xxxx                                     |
| time                                                                      | Retrieve the current time of the control board, displayed in timestamp format                                                                                                                                                                                                                                                                                                                                       | time                                          |
| version                                                                   | Retrieve the current firmware version                                                                                                                                                                                                                                                                                                                                                                               | version                                       |
| wlan \[ssid] \[password] \[-d] \[-e]                                      | <p>Connect/disconnect or scan the WiFi network.<br>'wlan' (scan WiFi ).<br>'wlan ssid password' (connect to a certain WiFi AP).<br>'wlan -d' (Disconnect from WiFi AP).</p>                                                                                                                                                                                                                                         | wlan xxxx                                     |
| mem \[-v]                                                                 | show free memory                                                                                                                                                                                                                                                                                                                                                                                                    |                                               |
| ls \[-s]\[-e]\[folder]                                                    | list files in directory                                                                                                                                                                                                                                                                                                                                                                                             |                                               |
| cd folder                                                                 | Change current absolute path to provided path                                                                                                                                                                                                                                                                                                                                                                       |                                               |
| pwd                                                                       | Responds with the present working directory                                                                                                                                                                                                                                                                                                                                                                         |                                               |
| cat file \[limit]\[-e]\[-d 10]                                            | Output the contents of a file, first parameter is the filename, second is the limit ( in number of lines to output )                                                                                                                                                                                                                                                                                                |                                               |
| mkdir path                                                                | Create a new directory                                                                                                                                                                                                                                                                                                                                                                                              |                                               |
| rm file \[-e]                                                             | delete a file                                                                                                                                                                                                                                                                                                                                                                                                       |                                               |
| mv file newfile \[-e]                                                     | Rename a file                                                                                                                                                                                                                                                                                                                                                                                                       |                                               |
| remount                                                                   | remount the sd card                                                                                                                                                                                                                                                                                                                                                                                                 |                                               |
| play file \[-v]                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                     |                                               |
| progress                                                                  | shows progress of current play                                                                                                                                                                                                                                                                                                                                                                                      |                                               |
| abort                                                                     | stop file and clear queue                                                                                                                                                                                                                                                                                                                                                                                           |                                               |
| reset                                                                     | reboot machine                                                                                                                                                                                                                                                                                                                                                                                                      |                                               |
| dfu                                                                       | enter dfu bootloader                                                                                                                                                                                                                                                                                                                                                                                                |                                               |
| break                                                                     | break into debugger                                                                                                                                                                                                                                                                                                                                                                                                 |                                               |
| config-get \[\<configuration\_source>] \<configuration\_setting>          | get a particular config value                                                                                                                                                                                                                                                                                                                                                                                       | config-get sd acceleration                    |
| config-load                                                               |                                                                                                                                                                                                                                                                                                                                                                                                                     |                                               |
| config-get-all                                                            | see config variables page                                                                                                                                                                                                                                                                                                                                                                                           | config-get-all                                |
| config-restore                                                            |                                                                                                                                                                                                                                                                                                                                                                                                                     |                                               |
| config-default                                                            |                                                                                                                                                                                                                                                                                                                                                                                                                     |                                               |
| config-set \[\<configuration\_source>] \<configuration\_setting> value    | set a particular config value                                                                                                                                                                                                                                                                                                                                                                                       | config-set sd delta\_steps\_per\_mm 44.444444 |
| get \[pos\|[wcs](console-commands/wcs-management)\|state\|status\|fk\|ik] | get the status of a particular system                                                                                                                                                                                                                                                                                                                                                                               |                                               |
| switch name \[value]                                                      | set or get switch state for a named switch                                                                                                                                                                                                                                                                                                                                                                          |                                               |
| net                                                                       | get network config                                                                                                                                                                                                                                                                                                                                                                                                  |                                               |
| diagnose                                                                  | prints current staus of various machine diagnostic criteria. Spindle status, laser status, switches status, endstop triggered state, probe and caibrate states, atc and tool sensor states, e stop states                                                                                                                                                                                                           |                                               |
| load \[file]                                                              | loads config file from specified file or config-override                                                                                                                                                                                                                                                                                                                                                            |                                               |
| save \[file]                                                              | saves config file to specified file or config-override                                                                                                                                                                                                                                                                                                                                                              |                                               |
| upload filename                                                           | saves a stream of text to the named file                                                                                                                                                                                                                                                                                                                                                                            |                                               |
| md5sum file                                                               | prints md5 sum of given file                                                                                                                                                                                                                                                                                                                                                                                        |                                               |
| help                                                                      | lists console commands                                                                                                                                                                                                                                                                                                                                                                                              |                                               |
| sleep                                                                     | go to sleep                                                                                                                                                                                                                                                                                                                                                                                                         |                                               |
| ftype                                                                     | Print the types of files we support for uploading                                                                                                                                                                                                                                                                                                                                                                   |                                               |
