@stately-cloud/cli
v0.97.0
Published
Install the `stately` CLI as part of `npm install` or run it via `npx @stately-cloud/cli`. StatelyDB is a document database built on top of DynamoDB with Elastic Schema that allows you to change your data model any time with automatic backwards compatibil
Readme
Node.js/npm Stately CLI installer
A simple Node.js installer for the Stately CLI (https://docs.stately.cloud/cli/). This allows
you to depend on Stately CLI from your package.json and install it as part of the npm install command, so you don't have to worry about installing
it separately.
Add it to your project:
$ npm install -D @stately-cloud/cli
# or
$ yarn add -D @stately-cloud/cli
# or (see note about PNPM below)
$ pnpm add -D @stately-cloud/cliOr run the CLI directly via npx without installing:
$ npx @stately-cloud/cli loginA note about PNPM: As of PNPM v10, you must add this package to pnpm-workspace.yml in the onlyBuiltDependencies setting in order for it to be installed, since PNPM skips running preinstall scripts from dependencies.
Purpose
The Stately CLI lets you manage your Elastic Schema for StatelyDB. After installation, the stately command will work in npm scripts:
// package.json:
{
// ...
"scripts": {
"generate": "stately schema generate -l ts ./app/schema"
}
}Or with npx:
$ npx stately schema generate -l ts ./app/schema