mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
|
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Preview Docs / run (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
|
||
|---|---|---|
| .. | ||
| src | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
Stack Auth Initialization Tool
This package provides a command-line tool to initialize Stack Auth in your project.
Usage
npx init-stack [project-path] [options]
Options
--help,-h: Show help message--dry-run: Run without making any changes--neon: Use Neon database--js: Initialize for JavaScript project--next: Initialize for Next.js project--npm: Use npm as package manager--yarn: Use yarn as package manager--pnpm: Use pnpm as package manager--bun: Use bun as package manager--client: Initialize client-side only--server: Initialize server-side only--no-browser: Don't open browser for environment variable setup
Environment Variables
STACK_DISABLE_INTERACTIVE: Set to any value to disable interactive prompts. Useful for CI/CD environments.
Examples
Initialize Stack Auth in a Next.js project without opening the browser:
npx init-stack --next --no-browser
Initialize Stack Auth in a JavaScript project with npm:
npx init-stack --js --npm
For more information, please visit Stack Auth Documentation.