@nookdb/cli
v1.1.0
Published
Command-line interface for nookdb — backup, restore, migrate, inspect.
Maintainers
Readme
@nookdb/cli
Command-line tool for nookdb — backup, restore, migrate, inspect.
Install
npm install -g @nookdb/cliOr run ad-hoc via npx:
npx @nookdb/cli inspect ./app.dbCommands
| Command | Description |
| --- | --- |
| nookdb backup <db> <out.nbkp> | Create a consistent snapshot. |
| nookdb restore <snapshot> <db> [--allow-overwrite] | Restore from a snapshot. |
| nookdb migrate status <db> | Show applied vs pending migrations. |
| nookdb migrate up <db> [--versions 1,2,3] | Apply pending migrations. |
| nookdb inspect <db> | Print schema, collection counts, index summary. |
Exit codes: 0 success, 1 user error, 2 corruption / unrecoverable.
See https://nookdb.pages.dev/reference/cli.
License
MIT
