You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cli/README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ export default defineConfig({
61
61
62
62
The CLI loads `.env` files automatically before reading the config, so `process.env` references work without extra setup. The config file is resolved by walking up from the current working directory.
63
63
64
-
Commands that consume `stash.config.ts`: `db install`, `db upgrade`, `db push`, `db validate`, `db status`, `db test-connection`, `schema build`. `db install` will scaffold `stash.config.ts` for you if it's missing.
64
+
Commands that consume `stash.config.ts`: `eql install`, `db upgrade`, `db push`, `db validate`, `db status`, `db test-connection`, `schema build`. `eql install` will scaffold `stash.config.ts` for you if it's missing.
1.**Authenticate** — re-uses an existing token if found, otherwise opens the browser device-code flow.
86
-
2.**Resolve `DATABASE_URL`** — flag → env → `supabase status` → interactive prompt → hard-fail. The same resolver `db install` uses.
86
+
2.**Resolve `DATABASE_URL`** — flag → env → `supabase status` → interactive prompt → hard-fail. The same resolver `eql install` uses.
87
87
3.**Generate the encryption client** — connects to your database, lists tables, and prompts you to multi-select which columns to encrypt. Writes `./src/encryption/index.ts` with the right shape for the detected ORM (Drizzle / Supabase / plain Postgres). Falls back to a placeholder if the database has no tables yet.
88
88
4.**Install dependencies** — `@cipherstash/stack` (runtime) and `stash` (dev), with a confirmation prompt.
89
-
5.**Install EQL** — runs `stash db install` against the resolved URL after a y/N confirm.
89
+
5.**Install EQL** — runs `stash eql install` against the resolved URL after a y/N confirm.
90
90
6.**Hand off** — four-option menu (Claude Code / Codex / CipherStash Agent / write `AGENTS.md`). See the Quickstart section above for what each option writes and spawns.
91
91
92
92
The full pipeline state — integration, columns, env-key names, paths, versions — is captured in `.cipherstash/context.json`. The action plan at `.cipherstash/setup-prompt.md` tells whichever agent picks up next what's already done and what's left.
Configure your database and install CipherStash EQL extensions in a single command. Run this after `npx stash init`.
161
+
Configure your database and install CipherStash EQL extensions in a single command. Run this after `npx stash init`. (`npx stash db install` is a deprecated alias — it still works but prints a warning.)
162
162
163
163
When `stash.config.ts` is missing, the command auto-detects your encryption client file (or asks for the path) and writes the config before installing. Supabase and Drizzle are detected from your `DATABASE_URL` and project files, so the matching flags default on. Install uses bundled SQL for offline, deterministic runs.
164
164
165
165
```bash
166
-
npx stash db install [options]
166
+
npx stash eql install [options]
167
167
```
168
168
169
169
| Flag | Description |
@@ -198,7 +198,7 @@ npx stash db upgrade [options]
198
198
|`--exclude-operator-family`| Skip operator family creation |
199
199
|`--latest`| Fetch the latest EQL from GitHub |
200
200
201
-
The install SQL is idempotent and safe to re-run. If EQL is not installed, the command suggests running `npx stash db install` instead.
201
+
The install SQL is idempotent and safe to re-run. If EQL is not installed, the command suggests running `npx stash eql install` instead.
202
202
203
203
---
204
204
@@ -300,10 +300,10 @@ Reads `databaseUrl` from `stash.config.ts`.
300
300
301
301
## Drizzle migration mode
302
302
303
-
Use `--drizzle` with `npx stash db install` to add EQL installation to your Drizzle migration history instead of applying it directly. `--drizzle` is auto-detected when your project has `drizzle-orm`, `drizzle-kit`, or a `drizzle.config.*` file, so you usually don't need to pass it explicitly.
303
+
Use `--drizzle` with `npx stash eql install` to add EQL installation to your Drizzle migration history instead of applying it directly. `--drizzle` is auto-detected when your project has `drizzle-orm`, `drizzle-kit`, or a `drizzle.config.*` file, so you usually don't need to pass it explicitly.
304
304
305
305
```bash
306
-
npx stash db install --drizzle
306
+
npx stash eql install --drizzle
307
307
npx drizzle-kit migrate
308
308
```
309
309
@@ -315,7 +315,7 @@ How it works:
315
315
With a custom name or output directory:
316
316
317
317
```bash
318
-
npx stash db install --drizzle --name setup-eql --out ./migrations
0 commit comments