@guidekit/cli
v0.1.1
Published
CLI tools for GuideKit SDK — init, doctor, generate-secret
Downloads
352
Maintainers
Readme
@guidekit/cli
CLI tools for the GuideKit SDK. Scaffolds projects, diagnoses configuration issues, and generates signing secrets.
Installation
npm install -g @guidekit/cliOr use directly with npx:
npx @guidekit/cli <command>Commands
guidekit init
Scaffolds GuideKit into your project. Detects your framework (Next.js App Router, Pages Router, or generic React) and generates:
- Token endpoint with environment variable placeholders
- Provider component wrapping your app
.env.localtemplate with required keys
npx guidekit initguidekit doctor
Checks your environment for common issues:
- Required environment variables are set
- Packages are installed at compatible versions
- Provider API keys are valid and reachable
- Token endpoint responds correctly
npx guidekit doctorguidekit generate-secret
Generates a cryptographically secure signing secret for token generation.
npx guidekit generate-secretCopy the output into your .env.local as GUIDEKIT_SECRET.
Documentation
- Full documentation: guidekit-docs.vercel.app/docs/cli
- Main README
