0.0.25 • Published 9 months ago

@treasured/cli v0.0.25

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

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