Detected non-PlatformIO `upload-flags` option

When I try to use upload-port = /dev/cu.usbmodem1413 in the platformio.ini file I receive the warning Detected non-PlatformIOupload-portoption... (and it doesn’t select the correct upload port).
Is there something necessary to do to enable that command?

upload_port (docs)

1 Like

I already have seen the doc, but I don’t understand why the warning is Detected non-Platformio option
The upload-port command is in the doc and the port /dev/cu.usbmodem1413 is in the list of the device connected to the computer, so it should work…

Where? On the shell?

The docs I’ve linked to are specifically are for the platformio.ini file, which is what you’re editing. And for the platformio.ini file, upload_port is the right syntax.

1 Like

I haven’t noticed that yet.
Thank you really much!