How to setup mos default port in console?

Hey,

I am running Mongoose on ESP8266. I can build and flash the code from mos gui interface, where I can select port I want to communicate with.

However running any command in console like eg. mos config-get always runs on wrong port.

Question

How can I choose the port I want to communicate with in console?

mos ports will show the existing usable ports.

mos ports
/dev/ttyUSB0
mos ports
COM26

Use mos --port to select the port you need:

mos --port COM26 config-get

Thanks, that works!

I wonder how did you find it?
mos help doesn’t show any info about --port param.

Add the --full flag:

mos help --full
1 Like