mayros qr
Generate a QR code and setup code for pairing the Mayros iOS app with your gateway. The QR encodes the gateway URL and authentication credentials into a scannable payload.
Options
| Option | Description |
|---|---|
--remote | Use gateway.remote.url and remote token/password (ignores device-pair publicUrl) |
--url <url> | Override gateway URL in the setup payload |
--public-url <url> | Override gateway public URL in the setup payload |
--token <token> | Override gateway token for the setup payload |
--password <password> | Override gateway password for the setup payload |
--setup-code-only | Print only the raw setup code (no QR, no metadata) |
--no-ascii | Skip ASCII QR rendering in the terminal |
--json | Output JSON with setup code, gateway URL, auth mode, and URL source |
Authentication
The setup payload supports two auth modes:
- Token — uses
--tokenorgateway.auth.tokenfrom config - Password — uses
--passwordorgateway.auth.passwordfrom config
When --remote is set without explicit credentials, the command reads gateway.remote.token or gateway.remote.password from config. You cannot use both --token and --password at the same time.
Pairing workflow
- Run
mayros qrto display the QR code - Open the Mayros iOS app and go to Onboarding > Scan QR
- After scanning, approve the device:
bash
mayros devices list mayros devices approve <requestId>
Examples
bashmayros qr mayros qr --remote mayros qr --url https://my-gateway.example.com --token my-secret mayros qr --setup-code-only mayros qr --json mayros qr --no-ascii