These are the commands:
Code: Select all
Documented commands (type help <topic>):
========================================
args cat connect echo filesize help mkdir rm shell
boards cd cp edit filetype ls repl rsync
If your path starts with '/flash' then it is directed to the micropython device, if not then it is a local path.
i.e:
Code: Select all
ls mypath/ will list the pwd (present working directory) of your PC
ls /flash/lib will list the lib folder on the device.
mkdir /flash/apps will create a new folder on the device
edit /flash/boot.py will open an editor (I prefer nano) and directly edit the file on the device.
rsync mydir /flash/mydir will clone an entire folder
repl will enter you into the device REPL
You can also chain commands and do things like:
Code: Select all
cp mydir/myfile.py /flash/myfile; repl ~ import myfile; myfile.func()
This will copy the file from local path, to the device, then enter the REPL and execute import myfile, and then myfile.func()
And....
If you create a file in the device root named board.py with a single line content like:
Instead of using /flash in the path, you can use:
And having a board.py file on each connected board will allow you to work with multiple boards from the same shell console.
rshell really is a very nice console shell to use with micropython !