@treasured/cli

0.0.25 • Public • Published

cli

This is the CLI tool for the exhibit-x project. Right now, there's only one command: clone.

Prerequisites

Before you can use the CLI, you need to install dependencies and build the CLI source code:

$ yarn install
$ yarn build:packages

The CLI expects to be run from a directory that contains a .env file, typically the app/ directory. The .env file should contain the following variables:

TREASURED_AWS_ACCESS_KEY_ID=
TREASURED_AWS_SECRET_ACCESS_KEY=
TREASURED_AWS_REGION=
TREASURED_AWS_BUILD_BUCKET=
TREASURED_AWS_BUILD_PREFIX=
TREASURED_AWS_CLOUDFRONT_DISTRIBUTION=

Usage

Here's an example of how to use it:

$ yarn treasured clone nft --output=./public/builds/360/

This will clone the nft build from S3 into the public/builds/360/ directory.

If you run this command again, the CLI is smart enough to detect that you already have this build cloned. If you'd like to overwrite the existing files and re-clone, you can use the --force flag:

$ yarn treasured clone nft --output=./public/builds/360/ --force

Readme

Keywords

none

Package Sidebar

Install

npm i @treasured/cli

Weekly Downloads

1

Version

0.0.25

License

none

Unpacked Size

5.86 MB

Total Files

15

Last publish

Collaborators

  • umarahmed
  • nikitavr