Skip to content

CLI Production Quickstart

Use this guide to run Mobayilo from terminal against production.

  • Install moby:
Terminal window
curl -fsSL https://mobycli.mobayilo.com/install.sh | sh
  • You have a moby binary available in your PATH.
  • You can sign in to your Mobayilo account in browser.

Update to latest before first use (and anytime after):

Terminal window
moby self-update
moby --version

Preferred (browser/device login):

Terminal window
moby auth login

Fallback (manual token login):

Terminal window
moby auth login --api-token <YOUR_TOKEN>

Check status:

Terminal window
moby auth status --json
Terminal window
moby balance --json
moby rates US --json

3) 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):

Terminal window
moby caller-id request 090-1872-1928 --country JP
# or
moby caller-id request +819018721928

CLI now prompts immediately for SMS code after request. If you skip the prompt, confirm later with:

Terminal window
moby caller-id confirm <SMS_CODE>

If needed, you can still override phone details manually:

Terminal window
moby caller-id confirm <SMS_CODE> --phone 09018721928 --country JP

Re-check status:

Terminal window
moby auth status --json

Place call directly (desktop audio is default):

Terminal window
moby call +14155550123
# or
moby call 090-1234-5678 --country Japan

CLI auto-starts local desktop agent when needed. Use --callback only when you explicitly want legacy phone callback mode.

Terminal window
moby topup 5

By 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).

  • authentication token required: run moby auth login again or pass --token.
  • missing_caller_id: complete moby caller-id request and moby 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).
  • --json for scriptable output.
  • --token to override stored keychain token.
  • --host to target non-production environments (advanced usage).

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>