If you persisted your API key during the Mason CLI login process then you can run X-Ray commands like this:
mason xray [DEVICEID] logcat
If you wanted to pass your API key with every X-Ray command then you can run X-Ray commands like this:
mason --api-key [APIKEY] xray [DEVICEID] logcat
A prompt will appear on the device when you initially establish a connection using the X-Ray command. This prompt needs to be accepted within 30 seconds in order for the device to successfully establish a connection to the Mason Platform. If the prompt is rejected then the X-Ray command will fail.