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

mesg-cli

MESG Engine CLI

oclif Version Downloads/week License

Usage

$ npm install -g mesg-cli
$ mesg-cli COMMAND
running command...
$ mesg-cli (-v|--version|version)
mesg-cli/1.4.0 darwin-x64 node-v10.16.3
$ mesg-cli --help [COMMAND]
USAGE
  $ mesg-cli COMMAND
...

Commands

mesg-cli account:create

Create an account

USAGE
  $ mesg-cli account:create

OPTIONS
  -h, --help               show CLI help
  -p, --port=port          [default: 50052] Port to access the MESG engine
  -q, --quiet              Display only essential information
  --host=host              [default: localhost] Host to access the MESG engine
  --passphrase=passphrase  Passphrase of the account

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

mesg-cli account:delete ADDRESS

Delete an account

USAGE
  $ mesg-cli account:delete ADDRESS

OPTIONS
  -h, --help               show CLI help
  -p, --port=port          [default: 50052] Port to access the MESG engine
  -q, --quiet              Display only essential information
  --host=host              [default: localhost] Host to access the MESG engine
  --passphrase=passphrase  Passphrase of the 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
  -p, --port=port          [default: 50052] Port to access the MESG engine
  -q, --quiet              Display only essential information
  --host=host              [default: localhost] Host to access the MESG engine
  --passphrase=passphrase  Passphrase of the account

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

mesg-cli account:import ACCOUNT

Import an account

USAGE
  $ mesg-cli account:import ACCOUNT

ARGUMENTS
  ACCOUNT  Account definition in JSON (could be retrieved with account:export)

OPTIONS
  -h, --help               show CLI help
  -p, --port=port          [default: 50052] Port to access the MESG engine
  -q, --quiet              Display only essential information
  --host=host              [default: localhost] Host to access the MESG engine
  --passphrase=passphrase  Passphrase of the account

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

mesg-cli account:import-private-key PRIVATE_KEY

Import an account with a private key

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

ARGUMENTS
  PRIVATE_KEY  Private key of the account

OPTIONS
  -h, --help               show CLI help
  -p, --port=port          [default: 50052] Port to access the MESG engine
  -q, --quiet              Display only essential information
  --host=host              [default: localhost] Host to access the MESG engine
  --passphrase=passphrase  Passphrase of the account

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

mesg-cli account:list

List accounts

USAGE
  $ mesg-cli account:list

OPTIONS
  -h, --help         show CLI help
  -p, --port=port    [default: 50052] Port to access the MESG engine
  -q, --quiet        Display only essential 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
  --host=host        [default: localhost] Host to access the MESG engine
  --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
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --[no-]follow    Follow logs
  --host=host      [default: localhost] Host to access the MESG engine
  --name=name      (required) [default: engine] Name of the docker service running the engine
  --tail=tail      [default: -1] Display the last N lines

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

mesg-cli daemon:start

Start the Engine

USAGE
  $ mesg-cli daemon:start

OPTIONS
  -h, --help                                       show CLI help
  -p, --port=port                                  [default: 50052] Port to access the MESG engine
  -q, --quiet                                      Display only essential information
  --host=host                                      [default: localhost] Host to access the MESG engine
  --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 docker service running the
                                                   engine

  --[no-]pull                                      Pull the latest image of the given version

  --version=version                                (required) [default: v0.15] 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
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --host=host      [default: localhost] Host to access the MESG engine
  --name=name      (required) [default: engine] Name of the docker service running the engine

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

mesg-cli daemon:stop

Stop the Engine

USAGE
  $ mesg-cli daemon:stop

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --host=host      [default: localhost] Host to access the MESG engine
  --name=name      (required) [default: engine] Name of the docker 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 an offer of a service

USAGE
  $ mesg-cli marketplace:create-offer SID

ARGUMENTS
  SID  SID of the service

OPTIONS
  -a, --account=account        Account to use
  -h, --help                   show CLI help
  -p, --passphrase=passphrase  Passphrase to unlock the account
  -p, --port=port              [default: 50052] Port to access the MESG engine
  -q, --quiet                  Display only essential information
  --duration=duration          (required) Duration (in seconds)
  --host=host                  [default: localhost] Host to access the MESG engine
  --price=price                (required) Price (in MESG tokens)

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

mesg-cli marketplace:publish SERVICE_PATH

Publish a service

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 the account
  -p, --port=port              [default: 50052] Port to access the MESG engine
  -q, --quiet                  Display only essential information
  --host=host                  [default: localhost] Host to access the MESG engine

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

mesg-cli marketplace:purchase SID OFFER_ID

Purchase a service

USAGE
  $ mesg-cli marketplace:purchase SID OFFER_ID

ARGUMENTS
  SID       ID of the service
  OFFER_ID  ID of the offer

OPTIONS
  -a, --account=account        Account to use
  -h, --help                   show CLI help
  -p, --passphrase=passphrase  Passphrase to unlock the account
  -p, --port=port              [default: 50052] Port to access the MESG engine
  -q, --quiet                  Display only essential information
  --host=host                  [default: localhost] Host to access the MESG engine

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

mesg-cli process:compile [PROCESS_FILE]

Compile a process

USAGE
  $ mesg-cli process:compile [PROCESS_FILE]

ARGUMENTS
  PROCESS_FILE  Path of a process file

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --dev            compile the process and automatically deploy and start all the services
  --env=FOO=BAR    Set environment variables
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli process:create DEFINITION

Create a process

USAGE
  $ mesg-cli process:create DEFINITION

ARGUMENTS
  DEFINITION  Process's definition. Use process:compile first to build process definition

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli process:delete PROCESS_HASH...

Delete one or many processes

USAGE
  $ mesg-cli process:delete PROCESS_HASH...

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --confirm        Confirm deletion
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli process:detail PROCESS_HASH

Display detailed information on a process

USAGE
  $ mesg-cli process:detail PROCESS_HASH

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli process:dev [PROCESS]

Run a process in development mode

USAGE
  $ mesg-cli process:dev [PROCESS]

ARGUMENTS
  PROCESS  [default: ./] Path of the process

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --dev            compile the process and automatically deploy and start all the services
  --env=FOO=BAR    Set environment variables
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli process:list

List processes

USAGE
  $ mesg-cli process:list

OPTIONS
  -h, --help         show CLI help
  -p, --port=port    [default: 50052] Port to access the MESG engine
  -q, --quiet        Display only essential 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
  --host=host        [default: localhost] Host to access the MESG engine
  --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/process/list.ts

mesg-cli process:logs PROCESS_HASH

Log the executions related to a process

USAGE
  $ mesg-cli process:logs PROCESS_HASH

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli service:compile [SERVICE]

Compile a service and upload its source to IPFS server

USAGE
  $ mesg-cli service:compile [SERVICE]

ARGUMENTS
  SERVICE  [default: ./] Path or url ([https|mesg]://) of a service

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --host=host      [default: localhost] Host to access the MESG engine

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
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --host=host      [default: localhost] Host to access the MESG engine
  --start          Automatically start the service once created

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
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --confirm        Confirm deletion
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli service:detail SERVICE_HASH

Display detailed information on a service

USAGE
  $ mesg-cli service:detail SERVICE_HASH

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli service:dev [SERVICE]

Run a service in development mode

USAGE
  $ mesg-cli service:dev [SERVICE]

ARGUMENTS
  SERVICE  [default: ./] Path or url ([https|mesg]://) of a service

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --env=FOO=BAR    Set environment variables
  --host=host      [default: localhost] Host to access the MESG engine
  --start          Automatically start the service once created

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

mesg-cli service:doc [SERVICE]

Generate documentation for service and print it on stdout

USAGE
  $ mesg-cli service:doc [SERVICE]

ARGUMENTS
  SERVICE  [default: ./] Path of a service

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  -s, --save       Save to default readme file
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli service:execute INSTANCE_HASH TASK

Execute a task on a running service

USAGE
  $ mesg-cli service:execute INSTANCE_HASH TASK

ARGUMENTS
  INSTANCE_HASH
  TASK           Task key

OPTIONS
  -d, --data=key=value  Task inputs
  -h, --help            show CLI help
  -j, --json=json       Path to a JSON file containing the task inputs
  -p, --port=port       [default: 50052] Port to access the MESG engine
  -q, --quiet           Display only essential information
  --host=host           [default: localhost] Host to access the MESG engine

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

mesg-cli service:init DIR

Initialize a service from a template

USAGE
  $ mesg-cli service:init DIR

ARGUMENTS
  DIR  Directory to initialize a service into

OPTIONS
  -h, --help               show CLI help
  -p, --port=port          [default: 50052] Port to access the MESG engine
  -q, --quiet              Display only essential information
  -t, --template=template  Specify the template URL to use
  --host=host              [default: localhost] Host to access the MESG engine

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

mesg-cli service:list

List running services

USAGE
  $ mesg-cli service:list

OPTIONS
  -h, --help         show CLI help
  -p, --port=port    [default: 50052] Port to access the MESG engine
  -q, --quiet        Display only essential 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
  --host=host        [default: localhost] Host to access the MESG engine
  --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

Fetch the logs of a service

USAGE
  $ mesg-cli service:logs INSTANCE_HASH

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --event=event    Display a specific event
  --[no-]events    Display events
  --[no-]follow    Follow log output
  --host=host      [default: localhost] Host to access the MESG engine
  --[no-]results   Display results
  --tail=tail      [default: -1] Display the last N lines
  --task=task      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
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --env=FOO=BAR    Set environment variables
  --host=host      [default: localhost] Host to access the MESG engine

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

mesg-cli service:stop INSTANCE_HASH...

Stop one or more running service

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

OPTIONS
  -h, --help       show CLI help
  -p, --port=port  [default: 50052] Port to access the MESG engine
  -q, --quiet      Display only essential information
  --confirm        Confirm deletion
  --delete-data    Delete running service persistent data
  --host=host      [default: localhost] Host to access the MESG engine

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

Current Tags

  • 1.5.0-beta.1                                ...           beta (13 days ago)
  • 1.4.0                                ...           latest (22 days ago)

16 Versions

  • 1.5.0-beta.1                                ...           13 days ago
  • 1.4.0                                ...           22 days ago
  • 1.3.2                                ...           a month ago
  • 1.3.1                                ...           a month ago
  • 1.3.0                                ...           a month ago
  • 1.2.0                                ...           2 months ago
  • 1.1.0                                ...           3 months ago
  • 1.1.0-beta.4 [deprecated]           ...           3 months ago
  • 1.1.0-beta.3 [deprecated]           ...           3 months ago
  • 1.1.0-beta.2 [deprecated]           ...           3 months ago
  • 1.1.0-beta.1 [deprecated]           ...           3 months ago
  • 1.1.0-beta.0 [deprecated]           ...           3 months ago
  • 1.0.4                                ...           4 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 0
Last Month 70
Dependencies (30)
Dev Dependencies (21)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |