npm package: @magicsandbox/msb-content-cli
Description: MSB content management CLI tool
Author: Egor Gorbachev @banderror
Latest version: 0.4.0

msb-content-cli
===============

MSB content management CLI tool

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/msb-content-cli.svg)](https://npmjs.org/package/msb-content-cli)
[![Downloads/week](https://img.shields.io/npm/dw/msb-content-cli.svg)](https://npmjs.org/package/msb-content-cli)
[![License](https://img.shields.io/npm/l/msb-content-cli.svg)](https://github.com/magicsandbox/msb-content-cli/blob/master/package.json)

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ 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
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`msbcontent db:pull-json`](#msbcontent-dbpull-json)
* [`msbcontent db:push-json`](#msbcontent-dbpush-json)
* [`msbcontent files:from-json`](#msbcontent-filesfrom-json)
* [`msbcontent files:to-json`](#msbcontent-filesto-json)
* [`msbcontent hello [FILE]`](#msbcontent-hello-file)
* [`msbcontent help [COMMAND]`](#msbcontent-help-command)

## `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](https://github.com/magicsandbox/msb-content-cli/blob/v0.4.0/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](https://github.com/magicsandbox/msb-content-cli/blob/v0.4.0/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](https://github.com/magicsandbox/msb-content-cli/blob/v0.4.0/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](https://github.com/magicsandbox/msb-content-cli/blob/v0.4.0/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](https://github.com/magicsandbox/msb-content-cli/blob/v0.4.0/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](https://github.com/oclif/plugin-help/blob/v3.1.0/src\commands\help.ts)_
<!-- commandsstop -->