JSPM

  • Created
  • Published
  • Downloads 124
  • Score
    100M100P100Q66758F
  • License MIT

Robust CLI for the next generation of Object ledger and CDN

Package Exports

  • wrhs
  • wrhs/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wrhs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.1.3 darwin-x64 node-v16.13.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
  -u, --cdn_base_url=cdn_base_url  cdn base url value that overrides default one configued in the server

  -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:get-head NAME

Get the head object from the Warehouse ledger by environment

USAGE
  $ wrhs object:get-head NAME

OPTIONS
  -e, --env=env  object environment (e.g., production, test)

See code: src/commands/object/get-head.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)
  -u, --cdn_base_url=cdn_base_url  cdn base url value that overrides default one configued in the server
  -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