@xgsd/worker-cli
v0.1.3
Published
A CLI for running @xgsd/workers
Downloads
841
Readme
@xgsd/worker-cli
See the documentation for more info Documentation
Install
npm install -g @xgsd/worker-cliCommands
worker run
Manually activates your Worker and streams logs to console
USAGE
$ worker run [-d <value>] [-e <value>...] [-w <value>] [-O] [-i] [-o] [-s]
FLAGS
-O, --stdout when true, signals are piped to stdout vs stored to file (note: without this option
you'll still see signal output)
-d, --data=<value> JSON string or path to JSON file
-e, --environment=<value>...
-i, --input worker input data is logged in JSON format
-o, --output when true, worker output data will be logged in JSON format
-s, --silent no console logs, signals still persisted
-w, --worker=<value> [default: worker.js] path to your worker code (defaults to worker.js)
DESCRIPTION
Manually activates your Worker and streams logs to console
EXAMPLES
$ worker runSee code: src/commands/run.ts
worker up
Start a server to call your Worker over HTTP
USAGE
$ worker up [-p <value>] [-d] [-f] [-s] [-w <value>]
FLAGS
-d, --detached
-f, --force
-p, --port=<value> [default: 3000]
-s, --down use this flag to stop background process
-w, --worker=<value> [default: worker.js]
DESCRIPTION
Start a server to call your Worker over HTTP
EXAMPLES
$ worker upSee code: src/commands/up.ts
worker version
USAGE
$ worker version [--json] [--verbose]
FLAGS
--verbose Show additional information about the CLI.
GLOBAL FLAGS
--json Format output as json.
FLAG DESCRIPTIONS
--verbose Show additional information about the CLI.
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.See code: @oclif/plugin-version
