@transform-kit/cli
v0.0.1
Published
TransformKit command-line interface
Maintainers
Readme
@transform-kit/cli
TransformKit command-line interface.
npm install -g @transform-kit/cli
transform-kit login # hosted browser approve + poll (no localhost callback)
transform-kit whoami # verify the stored token against the API
transform-kit health # API availability
transform-kit logouttk is available as a shorthand alias.
Login opens developer.transform-kit.com/cli/login (or your local issuer). You
approve there; the CLI polls until it receives a one-time API key. The browser
never redirects to 127.0.0.1.
Local development
Dev servers run behind portless on stable .localhost URLs.
Point the CLI at them via apps/cli/.env.local (loaded by the start script):
TRANSFORM_KIT_ISSUER="https://developer.transform-kit.localhost"
TRANSFORM_KIT_API_URL="https://api.transform-kit.localhost"TLS trust comes from the --use-system-ca flag in the start script (portless
installs its CA into the system keychain). NODE_EXTRA_CA_CERTS cannot be set
from an env file — Node reads it at launch, before env files load.
pnpm --filter @transform-kit/cli start login # opens /cli/login on the developer app
pnpm --filter @transform-kit/cli start whoami # verify the stored token