@cyphra/cli
v0.1.0
Published
Cyphra CLI: init, migrate, push
Downloads
87
Readme
@cyphra/cli
Command-line interface for Cyphra.
Installing the cyphra meta-package pulls in @cyphra/cli as a dependency, so you get the cyphra binary without a second install step. Use this package on its own when you only need the CLI (for example pnpm add -D @cyphra/cli).
Commands
cyphra init— scaffoldcyphra.json,schema.cyphra,migrations/,.env.examplecyphra migrate deploy/cyphra migrate dev— run pending.mjsmigrationscyphra migration:create <name>— add a migration stubcyphra push— apply@id/@uniqueconstraints from the schemacyphra generate— reserved (not implemented)
Migrations
Migration files are ESM (.mjs) and should import defineMigration from cyphra or @cyphra/migrator (library dependency).
Environment
NEO4J_URI,NEO4J_USER,NEO4J_PASSWORD- Optional:
NEO4J_DATABASE
