mesg-cli-test
MESG CLI
Last updated 3 months ago by anthony-mesg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mesg-cli-test 
SYNC missed versions from official npm registry.

mesg-cli

MESG Engine CLI

oclif Version Downloads/week License

Usage

$ npm install -g mesg-cli-test
$ mesg-cli COMMAND
running command...
$ mesg-cli (-v|--version|version)
mesg-cli-test/1.1.0-beta.3 darwin-x64 node-v10.16.0
$ mesg-cli --help [COMMAND]
USAGE
  $ mesg-cli COMMAND
...

Commands

mesg-cli account:create

Create a new account

USAGE
  $ mesg-cli account:create

OPTIONS
  -h, --help               show CLI help
  -q, --quiet              Display only important information
  --passphrase=passphrase  Passphrase to unlock your account

See code: src/commands/account/create.ts

mesg-cli account:delete ADDRESS

Delete an existing account

USAGE
  $ mesg-cli account:delete ADDRESS

OPTIONS
  -h, --help               show CLI help
  -q, --quiet              Display only important information
  --passphrase=passphrase  Passphrase to unlock your account

See code: src/commands/account/delete.ts

mesg-cli account:export ADDRESS

Export an existing account

USAGE
  $ mesg-cli account:export ADDRESS

OPTIONS
  -h, --help               show CLI help
  -q, --quiet              Display only important information
  --passphrase=passphrase  Passphrase to unlock your account

See code: src/commands/account/export.ts

mesg-cli account:import ACCOUNT

Import a account

USAGE
  $ mesg-cli account:import ACCOUNT

ARGUMENTS
  ACCOUNT  Account saved from a previous account

OPTIONS
  -h, --help               show CLI help
  -q, --quiet              Display only important information
  --passphrase=passphrase  Passphrase to unlock your account

See code: src/commands/account/import.ts

mesg-cli account:import-private-key PRIVATE_KEY

Import a account from a private key

USAGE
  $ mesg-cli account:import-private-key PRIVATE_KEY

ARGUMENTS
  PRIVATE_KEY  Private key for your account

OPTIONS
  -h, --help               show CLI help
  -q, --quiet              Display only important information
  --passphrase=passphrase  Passphrase to unlock your account

See code: src/commands/account/import-private-key.ts

mesg-cli account:list

List all existing accounts

USAGE
  $ mesg-cli account:list

OPTIONS
  -h, --help         show CLI help
  -q, --quiet        Display only important information
  -x, --extended     show extra columns
  --columns=columns  only show provided columns (comma-separated)
  --csv              output is csv format
  --filter=filter    filter property by partial string matching, ex: name=foo
  --no-header        hide table header from output
  --no-truncate      do not truncate output to fit screen
  --sort=sort        property to sort by (prepend '-' for descending)

See code: src/commands/account/list.ts

mesg-cli daemon:logs

Show the Engine's logs

USAGE
  $ mesg-cli daemon:logs

OPTIONS
  -h, --help     show CLI help
  -q, --quiet    Display only important information
  --[no-]follow  Follow logs
  --name=name    (required) [default: engine] Name of the service running the engine
  --tail=tail    [default: -1] Output specified number of lines at the end of logs

See code: src/commands/daemon/logs.ts

mesg-cli daemon:start

Start the MESG Engine's daemon

USAGE
  $ mesg-cli daemon:start

OPTIONS
  -h, --help                                       show CLI help
  -q, --quiet                                      Display only important information
  --log-force-colors                               Log force colors
  --log-format=(text|json)                         [default: text] Log format
  --log-level=(debug|info|warn|error|fatal|panic)  [default: info] Log level
  --name=name                                      (required) [default: engine] Name of the service running the engine
  --version=version                                (required) [default: v0.11.0] Version of the engine to run

See code: src/commands/daemon/start.ts

mesg-cli daemon:status

Get the Engine's status

USAGE
  $ mesg-cli daemon:status

OPTIONS
  -h, --help   show CLI help
  -q, --quiet  Display only important information
  --name=name  (required) [default: engine] Name of the service running the engine

See code: src/commands/daemon/status.ts

mesg-cli daemon:stop

Stop the MESG Engine's daemon

USAGE
  $ mesg-cli daemon:stop

OPTIONS
  -h, --help   show CLI help
  -q, --quiet  Display only important information
  --name=name  (required) [default: engine] Name of the service running the engine

See code: src/commands/daemon/stop.ts

mesg-cli help [COMMAND]

display help for mesg-cli

USAGE
  $ mesg-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

mesg-cli marketplace:create-offer SID

Create a new offer on a service on the MESG Marketplace

USAGE
  $ mesg-cli marketplace:create-offer SID

ARGUMENTS
  SID  SID of the service on the MESG Marketplace

OPTIONS
  -a, --account=account        Account to use
  -h, --help                   show CLI help
  -p, --passphrase=passphrase  Passphrase to unlock your account
  -q, --quiet                  Display only important information
  --duration=duration          (required) Duration (in second) of the offer to create
  --price=price                (required) Price (in MESG token) of the offer to create

See code: src/commands/marketplace/create-offer.ts

mesg-cli marketplace:publish SERVICE_PATH

Publish a service on the MESG Marketplace

USAGE
  $ mesg-cli marketplace:publish SERVICE_PATH

ARGUMENTS
  SERVICE_PATH  [default: ./] Path of the service

OPTIONS
  -a, --account=account        Account to use
  -h, --help                   show CLI help
  -p, --passphrase=passphrase  Passphrase to unlock your account
  -q, --quiet                  Display only important information

See code: src/commands/marketplace/publish.ts

mesg-cli marketplace:purchase SID OFFER_ID

Purchase a service on the MESG Marketplace

USAGE
  $ mesg-cli marketplace:purchase SID OFFER_ID

ARGUMENTS
  SID       ID of the service on the MESG Marketplace
  OFFER_ID  ID of the offer on the MESG Marketplace

OPTIONS
  -a, --account=account        Account to use
  -h, --help                   show CLI help
  -p, --passphrase=passphrase  Passphrase to unlock your account
  -q, --quiet                  Display only important information

See code: src/commands/marketplace/purchase.ts

mesg-cli service:compile [SERVICE_PATH_OR_URL]

Compile a service and upload its source to IPFS

USAGE
  $ mesg-cli service:compile [SERVICE_PATH_OR_URL]

ARGUMENTS
  SERVICE_PATH_OR_URL  [default: ./] Path of the service or url to access it

OPTIONS
  -h, --help   show CLI help
  -q, --quiet  Display only important information

See code: src/commands/service/compile.ts

mesg-cli service:create DEFINITION

Create a service

USAGE
  $ mesg-cli service:create DEFINITION

ARGUMENTS
  DEFINITION  Service's definition. Use service:compile first to build service definition

OPTIONS
  -h, --help   show CLI help
  -q, --quiet  Display only important information

See code: src/commands/service/create.ts

mesg-cli service:delete SERVICE_HASH...

Delete one or many services

USAGE
  $ mesg-cli service:delete SERVICE_HASH...

OPTIONS
  -h, --help   show CLI help
  -q, --quiet  Display only important information
  --confirm    Confirm delete

See code: src/commands/service/delete.ts

mesg-cli service:detail SERVICE_HASH

Show details of a service

USAGE
  $ mesg-cli service:detail SERVICE_HASH

OPTIONS
  -h, --help   show CLI help
  -q, --quiet  Display only important information

See code: src/commands/service/detail.ts

mesg-cli service:dev [SERVICE_PATH]

Run your service in development mode

USAGE
  $ mesg-cli service:dev [SERVICE_PATH]

ARGUMENTS
  SERVICE_PATH  [default: ./] Path of the service

OPTIONS
  -h, --help     show CLI help
  -q, --quiet    Display only important information
  --env=FOO=BAR  Set env defined in mesg.yml (configuration.env)

See code: src/commands/service/dev.ts

mesg-cli service:doc [SERVICE_PATH]

Generate the documentation for the service in a README.md file

USAGE
  $ mesg-cli service:doc [SERVICE_PATH]

ARGUMENTS
  SERVICE_PATH  [default: ./] Path of the service

OPTIONS
  -h, --help   show CLI help
  -q, --quiet  Display only important information
  -s, --save   Save to default readme file

See code: src/commands/service/doc.ts

mesg-cli service:execute INSTANCE_HASH TASK

Execute a task on a specific service's instance

USAGE
  $ mesg-cli service:execute INSTANCE_HASH TASK

ARGUMENTS
  INSTANCE_HASH
  TASK           Task key

OPTIONS
  -d, --data=key=value  Data required to run the task
  -h, --help            show CLI help
  -j, --json=json       Path to a JSON file containing the data required to run the task
  -q, --quiet           Display only important information

See code: src/commands/service/execute.ts

mesg-cli service:init DIR

Initialize a service by creating a mesg.yml and Dockerfile in a dedicated directory.

USAGE
  $ mesg-cli service:init DIR

ARGUMENTS
  DIR  Create the service in the directory

OPTIONS
  -h, --help               show CLI help
  -q, --quiet              Display only important information
  -t, --template=template  Specify the template URL to use

See code: src/commands/service/init.ts

mesg-cli service:list

List all instances

USAGE
  $ mesg-cli service:list

OPTIONS
  -h, --help         show CLI help
  -q, --quiet        Display only important information
  -x, --extended     show extra columns
  --columns=columns  only show provided columns (comma-separated)
  --csv              output is csv format
  --filter=filter    filter property by partial string matching, ex: name=foo
  --no-header        hide table header from output
  --no-truncate      do not truncate output to fit screen
  --sort=sort        property to sort by (prepend '-' for descending)

See code: src/commands/service/list.ts

mesg-cli service:logs INSTANCE_HASH

Show logs of a service

USAGE
  $ mesg-cli service:logs INSTANCE_HASH

OPTIONS
  -h, --help      show CLI help
  -q, --quiet     Display only important information
  --event=event   Only display a specific event
  --[no-]events   Don't display events
  --[no-]follow   Continuously display logs
  --[no-]results  Don't display results
  --tail=tail     [default: -1] Output only specified number of lines
  --task=task     Only display a specific task results

See code: src/commands/service/logs.ts

mesg-cli service:start SERVICE_HASH

Start a service by creating a new instance

USAGE
  $ mesg-cli service:start SERVICE_HASH

OPTIONS
  -h, --help     show CLI help
  -q, --quiet    Display only important information
  --env=FOO=BAR  Set env defined in mesg.yml (configuration.env)

See code: src/commands/service/start.ts

mesg-cli service:stop INSTANCE_HASH...

Stop a service by deleting a specific instance

USAGE
  $ mesg-cli service:stop INSTANCE_HASH...

OPTIONS
  -h, --help     show CLI help
  -q, --quiet    Display only important information
  --confirm      Confirm delete
  --delete-data  Delete instances' persistent data

See code: src/commands/service/stop.ts

Current Tags

  • 1.1.0-beta.3                                ...           latest (3 months ago)

1 Versions

  • 1.1.0-beta.3                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (28)
Dev Dependencies (20)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |