MESG Engine CLI
$ npm install -g mesg-cli
$ mesg-cli COMMAND
running command...
$ mesg-cli (-v|--version|version)
mesg-cli/2.0.1 darwin-x64 node-v10.16.3
$ mesg-cli --help [COMMAND]
USAGE
$ mesg-cli COMMAND
...
mesg-cli account:create ACCOUNT_NAME
mesg-cli account:delete ACCOUNT_NAME
mesg-cli account:list
mesg-cli daemon:logs
mesg-cli daemon:start
mesg-cli daemon:status
mesg-cli daemon:stop
mesg-cli help [COMMAND]
mesg-cli process:compile [PROCESS_FILE]
mesg-cli process:create DEFINITION
mesg-cli process:delete PROCESS_HASH...
mesg-cli process:detail PROCESS_HASH
mesg-cli process:dev [PROCESS]
mesg-cli process:list
mesg-cli process:logs PROCESS_HASH
mesg-cli service:compile [SERVICE]
mesg-cli service:create DEFINITION
mesg-cli service:detail SERVICE_HASH
mesg-cli service:dev [SERVICE]
mesg-cli service:doc [SERVICE]
mesg-cli service:execute INSTANCE_HASH TASK
mesg-cli service:init DIR
mesg-cli service:list
mesg-cli service:logs INSTANCE_HASH
mesg-cli service:start SERVICE_HASH
mesg-cli service:stop INSTANCE_HASH...
Create an account
USAGE
$ mesg-cli account:create ACCOUNT_NAME
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
Delete an account
USAGE
$ mesg-cli account:delete ACCOUNT_NAME
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
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
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
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
--name=name (required) [default: engine] Name of the docker service running the engine
--p2p-port=p2p-port (required) [default: 26656] Port to use for p2p interaction
--path=path (required) [default: /Users/antho/.mesg] Path to the mesg folder
--[no-]pull Pull the latest image of the given version
--version=version (required) [default: v0.16] Version of the Engine to run
See code: src/commands/daemon/start.ts
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
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
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
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
--account=account Name of the account
--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
--passphrase=passphrase Passphrase of the account
See code: src/commands/process/compile.ts
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
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
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
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
--account=account Name of the account
--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
--passphrase=passphrase Passphrase of the account
See code: src/commands/process/dev.ts
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
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
Compile a service and upload its source to IPFS server
USAGE
$ mesg-cli service:compile [SERVICE]
ARGUMENTS
SERVICE [default: ./] Path or url 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
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
--account=account Name of the account
--host=host [default: localhost] Host to access the MESG engine
--passphrase=passphrase Passphrase of the account
--start Automatically start the service once created
See code: src/commands/service/create.ts
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
Run a service in development mode
USAGE
$ mesg-cli service:dev [SERVICE]
ARGUMENTS
SERVICE [default: ./] Path or url 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
--account=account Name of the account
--env=FOO=BAR Set environment variables
--host=host [default: localhost] Host to access the MESG engine
--passphrase=passphrase Passphrase of the account
--start Automatically start the service once created
See code: src/commands/service/dev.ts
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
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
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
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
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
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
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