Skip to content

Doctor CLI

Terminal window
npx rakomi-doctor --base-url https://api.rakomi.com --api-key akm_live_xxx

The doctor runs 4 checks in sequence:

#CheckWhat it verifies
1SDK versionReports the installed @rakomi/node version
2API reachableGET /v1/health returns HTTP 200 within 10 seconds
3JWKS availableGET /.well-known/jwks.json returns a valid key set
4Token verificationSDK can initialize and process a token (infrastructure check)
@rakomi/node Doctor v0.1.0
================================
✓ SDK version: 0.1.0
✓ API reachable: https://api.rakomi.com/v1/health (42ms)
✓ JWKS available: 1 key(s) found
✓ Token verification: token/malformed (expected — no real token provided)
4/4 checks passed
OptionDefaultDescription
--base-urlhttps://api.rakomi.comRakomi API URL
--api-keyakm_test_doctor_checkAPI key for verification check
CodeMeaning
0All checks passed
1One or more checks failed

Run the doctor when:

  • Setting up a new integration
  • Debugging connectivity issues
  • After changing your API key or base URL
  • Verifying that key rotation completed successfully