Run your Application

Run once

After uploading your JavaScript to the Raspberry Pi Pico, run the script by running the below command in REPL to run the file saved to your Pico’s flash.

.run index.js

Run automatically

If you’d like to have your script run automatically whenever the device starts, then you can set the autorun configuration option through the .config REPL command.

.config autorun index.js
.restart