CLI Production Quickstart
Mobayilo CLI: Production Quickstart
Section titled “Mobayilo CLI: Production Quickstart”Use this guide to run Mobayilo from terminal against production.
Prerequisites
Section titled “Prerequisites”- Install
moby:
curl -fsSL https://mobycli.mobayilo.com/install.sh | sh- You have a
mobybinary available in yourPATH. - You can sign in to your Mobayilo account in browser.
Update to latest before first use (and anytime after):
moby self-updatemoby --version1) Authenticate
Section titled “1) Authenticate”Preferred (browser/device login):
moby auth loginFallback (manual token login):
moby auth login --api-token <YOUR_TOKEN>Check status:
moby auth status --json2) Check account and rates
Section titled “2) Check account and rates”moby balance --jsonmoby rates US --json3) Verify caller ID (required before CLI calling)
Section titled “3) Verify caller ID (required before CLI calling)”Request SMS code (number can be local or international format):
moby caller-id request 090-1872-1928 --country JP# ormoby caller-id request +819018721928CLI now prompts immediately for SMS code after request.
If you skip the prompt, confirm later with:
moby caller-id confirm <SMS_CODE>If needed, you can still override phone details manually:
moby caller-id confirm <SMS_CODE> --phone 09018721928 --country JPRe-check status:
moby auth status --json4) Place call
Section titled “4) Place call”Place call directly (desktop audio is default):
moby call +14155550123# ormoby call 090-1234-5678 --country JapanCLI auto-starts local desktop agent when needed.
Use --callback only when you explicitly want legacy phone callback mode.
5) Top up balance
Section titled “5) Top up balance”moby topup 5By default, CLI opens Stripe checkout in browser and prints the checkout URL.
Use --no-open to skip auto-open.
Minimum top-up is $5.00 (amount must be at least 5).
Common errors
Section titled “Common errors”authentication token required: runmoby auth loginagain or pass--token.missing_caller_id: completemoby caller-id requestandmoby caller-id confirm <SMS_CODE>.positive_balance_required: add credits first (moby topup 5 ...).invalid_amount: amount is below the minimum (start at$5.00; some account types may require more).
Useful global flags
Section titled “Useful global flags”--jsonfor scriptable output.--tokento override stored keychain token.--hostto target non-production environments (advanced usage).
Manual token source (fallback mode)
Section titled “Manual token source (fallback mode)”If you need a manual token, generate it in web app:
- open
Settings->CLI access - create token (scope + expiry)
- copy once and run
moby auth login --api-token <YOUR_TOKEN>