@supersurkhet/cli
v0.0.1
Published
CLI for Supersurkhet plugin development.
Downloads
17
Readme
@supersurkhet/cli
CLI for Supersurkhet plugin development.
Commands
supersurkhet new <name>: scaffold a new plugin projectsupersurkhet types --config <file> --out <file>: generate TS row types from schema docssupersurkhet link --project <id> --endpoint <url> --token <token>: connect local dir to remote projectsupersurkhet token issue --name <name>: issue a new CLI token for the current user/projectsupersurkhet token list: list CLI tokens for the current user/projectsupersurkhet token rotate --token-id <id> [--name <name>]: rotate an existing CLI tokensupersurkhet token revoke --token-id <id>: revoke an existing CLI tokensupersurkhet sync-up --config <file>: push schema docs to the linked remote projectsupersurkhet sync-down --config <file> --out <file>: pull latest schema docs from the linked remote project
Install
npm i -D @supersurkhet/cli @supersurkhet/sdkAuth
Token resolution order:
--tokenSUPERSURKHET_TOKENenv var~/.supersurkhet/credentials.json(saved bylink)
Use
npx supersurkhet --help