0.4.0 • Published 4 years ago

@magicsandbox/msb-content-cli v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

msb-content-cli

MSB content management CLI tool

oclif Version Downloads/week License

Usage

$ npm install -g @magicsandbox/msb-content-cli
$ msbcontent COMMAND
running command...
$ msbcontent (-v|--version|version)
@magicsandbox/msb-content-cli/0.4.0 win32-x64 node-v12.18.1
$ msbcontent --help [COMMAND]
USAGE
  $ msbcontent COMMAND
...

Commands

msbcontent db:pull-json

download content as a JSON bundle from the content database (Firestore)

USAGE
  $ msbcontent db:pull-json

See code: src\commands\db\pull-json.ts

msbcontent db:push-json

upload content from JSON bundle to the content database (Firestore)

USAGE
  $ msbcontent db:push-json

OPTIONS
  --prod  Push to the main, production collection of courses instead of the test one.

See code: src\commands\db\push-json.ts

msbcontent files:from-json

update content files in the repository from a JSON bundle representing content in Firestore

USAGE
  $ msbcontent files:from-json

See code: src\commands\files\from-json.ts

msbcontent files:to-json

convert content files in the repository to a JSON bundle ready for pushing to Firestore

USAGE
  $ msbcontent files:to-json

See code: src\commands\files\to-json.ts

msbcontent hello [FILE]

describe the command here

USAGE
  $ msbcontent hello [FILE]

OPTIONS
  -f, --force
  -h, --help       show CLI help
  -n, --name=name  name to print

EXAMPLE
  $ msbcontent hello
  hello world from ./src/hello.ts!

See code: src\commands\hello.ts

msbcontent help [COMMAND]

display help for msbcontent

USAGE
  $ msbcontent help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help