mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-19 21:00:40 +08:00
Rebased onto dev after PR 1475 (cl/hexclave-pr1) was squash-merged. Squashes the original 46-commit branch (including PR1-duplicate commits that arrived via cherry-picks/merges) into a single commit containing only PR2's net delta over dev. Original PR 1481 head: 94872de407873a1cabd4085deb21b69afe8d7699 (kept locally at backup/cl-romantic-mendel-5a2c25-pre-rebase)
45 lines
1.1 KiB
Markdown
45 lines
1.1 KiB
Markdown
# Hexclave Initialization Tool
|
|
|
|
This package provides a command-line tool to initialize Hexclave in your project.
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
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 Hexclave in a Next.js project without opening the browser:
|
|
|
|
```bash
|
|
npx init-stack --next --no-browser
|
|
```
|
|
|
|
Initialize Hexclave in a JavaScript project with npm:
|
|
|
|
```bash
|
|
npx init-stack --js --npm
|
|
```
|
|
|
|
For more information, please visit [Hexclave Documentation](https://docs.hexclave.com/getting-started/setup).
|