How do you run code on a Raspberry Pi 3?

I cannot seem to figure out how to run a Platformio project on a Raspberry Pi.
I have the code on the Pi and I am trying to run it it with pio run -t upload, but it responds with

Do not know how to make File target ‘upload’ (home/ethan/LoraxRespository/lorax_embedded/upload). Stop

How am I supposed to upload or run a Platformio project to or on a Raspberry Pi?

My platformio.ini file is shown below.


The linux_arm platform doesn’t seem to implement an upload target, because you must compile the project on a Pi anyways so it’s already uploaded. You can run the compiled result .pio\build\raspberrypi_3b\<program> directly.