wrhs

Robust CLI for the next generation of Object ledger and CDN

Usage no npm install needed!

<script type="module">
  import wrhs from 'https://cdn.skypack.dev/wrhs';
</script>

README

oclif Version Downloads/week License npm Downloads Dependencies

Warehouse CLI

Robust CLI for the next generation of Object ledger and CDN.

Usage

$ npm install -g wrhs
$ wrhs COMMAND
running command...
$ wrhs (-v|--version|version)
wrhs/1.0.1 darwin-x64 node-v12.14.1
$ wrhs --help [COMMAND]
USAGE
  $ wrhs COMMAND
...

Commands

wrhs cdn

USAGE
  $ wrhs cdn

OPTIONS
  --boolean
  --build
  --enum
  --help
  --integer
  --option
  --string
  --version

See code: src/commands/cdn/index.js

wrhs cdn:upload FILEPATH

Upload a file to the Warehouse CDN

USAGE
  $ wrhs cdn:upload FILEPATH

OPTIONS
  -x, --expiration=expiration  object expiration in human readable format or milliseconds (e.g., 365d, 48h,
                               1607973280797)

See code: src/commands/cdn/upload.js

wrhs help [COMMAND]

display help for wrhs

USAGE
  $ wrhs help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

wrhs object

USAGE
  $ wrhs object

OPTIONS
  --boolean
  --build
  --enum
  --help
  --integer
  --option
  --string
  --version

See code: src/commands/object/index.js

wrhs object:create NAME

Create an object in the Warehouse ledger

USAGE
  $ wrhs object:create NAME

OPTIONS
  -a, --variant=variant        object variant (e.g., en_US)
  -d, --data=data              object data (e.g., '{ "foo": "bar" }')
  -e, --env=env                object environment (e.g., production, test)
  -v, --version=version        (required) object version (e.g., v1.2.1)

  -x, --expiration=expiration  object expiration in human readable format or milliseconds (e.g., 365d, 48h,
                               1607973280797)

See code: src/commands/object/create.js

wrhs object:get NAME

Get an object from the Warehouse ledger

USAGE
  $ wrhs object:get NAME

OPTIONS
  -a, --accepted-variants=accepted-variants  accepted object variants (e.g., en_US,fr_CA)
  -e, --env=env                              object environment (e.g., production, test)
  -v, --version=version                      object version (e.g., v1.2.1)

See code: src/commands/object/get.js

wrhs object:set-head NAME

Set the object head to a specific version

USAGE
  $ wrhs object:set-head NAME

OPTIONS
  -e, --env=env          [default: production] object environment (e.g., production, test)
  -v, --version=version  (required) object head version (e.g., v1.2.1)

See code: src/commands/object/set-head.js

wrhs upload FILEPATH NAME

Upload a file to the CDN and create an object in the Warehouse ledger

USAGE
  $ wrhs upload FILEPATH NAME

OPTIONS
  -a, --variant=variant        object variant (e.g., en_US)
  -e, --env=env                object environment (e.g., production, test)
  -v, --version=version        (required) object version (e.g., v1.2.1)

  -x, --expiration=expiration  object expiration in human readable format or milliseconds (e.g., 365d, 48h,
                               1607973280797)

See code: src/commands/upload.js