Skip to content

feat(cli): support STELLAR_EXPLAIN_TOKEN#644

Open
pengyuayn wants to merge 1 commit into
StellarCommons:mainfrom
pengyuayn:fix/api-token-env
Open

feat(cli): support STELLAR_EXPLAIN_TOKEN#644
pengyuayn wants to merge 1 commit into
StellarCommons:mainfrom
pengyuayn:fix/api-token-env

Conversation

@pengyuayn

Copy link
Copy Markdown

Summary

  • Adds a small env helper for STELLAR_EXPLAIN_TOKEN.
  • Sends the token as an Authorization: Bearer ... header for CLI API requests.
  • Allows an explicit apiToken option to override the environment value in tests/consumers.
  • Removes stale stub code in src/index.ts so the CLI entrypoint typechecks/builds.

Validation

  • PASS: npm test -- --run tests/client.test.ts
  • PASS: npm run typecheck
  • PASS: npm run build

Closes #563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI #119 — Add environment variable support for API token

1 participant