@morpheusnetwork/trustmnw-cli
v1.0.0
Published
TrustMNW Command-Line Interface for running the node
Downloads
16
Keywords
Readme
TrustMNW-CLI
TrustMNW Command-Line Interface for running the node
Build
Development
Fill the .env.development
file with variables:
MAIN_API_URL=https://api.trustmnw.dev/v2/graphql
NODES_API_URL=https://nodes.staging.trustmnw.dev/graphql
VALIDATE_API_URL=https://validate.staging.trustmnw.dev/graphql
SENTRY_DSN=https://0790c3c21d1541719ccfd3d23c81dfe8@o4504360929329152.ingest.sentry.io/4504719372713984
Then run
yarn build:dev
Production
Fill the .env.production
file with variables:
MAIN_API_URL=https://api.trustmnw.com/v2/graphql
NODES_API_URL=https://nodes.api.trust.supply/graphql
VALIDATE_API_URL=https://validate.api.trust.supply/graphql
SENTRY_DSN=https://e7a2bf85f2d2408488937c9bec21eea5@o4504360929329152.ingest.sentry.io/4504719384182784
Then run
yarn build:prod
Run
To run built CLI, just type
node .
Debug mode
To enable debug mode, run the CLI with param --debug
, like:
node . --debug
Publishing
- Set the correct
name
andbin[command]
inpackage.json
, (trustmnw-cli-dev
for staging,trustmnw-cli
for production) - Set next version in
package.json
- Build required environment (
yarn build:prod
oryarn build:dev
) - Rollback to current version in
package.json
- Run
git add .
- Run
yarn publish --access public
, set version, fill all required fields - Done