Photo by Vishnu Mohanan

Thonny is the recommended way of working with a Pico and MicroPython as it has built-in support for running and uploading files. However, I wanted to use Visual Studio Code as my code editor and upload files via the command line instead. I found two CLI tools that I could use to achieve this: rshell and ampy.


rshell provides a shell that runs on the Pico. It can be downloaded using pip:

pip3 install rshell
rshell -p /dev/ttyXXXX --buffer-size 512

Michael Esteban

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store