1.1.4 • Published 4 years ago
for-io-cli v1.1.4
cli
For.io command line interface tool
Usage
$ npm install -g for-io-cli
$ for.io COMMAND
running command...
$ for.io (-v|--version|version)
for-io-cli/1.1.4 linux-x64 node-v10.19.0
$ for.io --help [COMMAND]
USAGE
$ for.io COMMAND
...
Commands
for.io help [COMMAND]
display help for for.io
USAGE
$ for.io help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
for.io listen TOKEN [WORKSPACE]
Listen for incoming connections from the web browser (https://studio.for.io), to run MongoDB queries and sync project files
USAGE
$ for.io listen TOKEN [WORKSPACE]
ARGUMENTS
TOKEN connection token, as provided by studio.for.io
WORKSPACE local workspace directory to synchronize with the browser
OPTIONS
-d, --debug enable debug mode (default: disabled)
-h, --help show CLI help
-m, --mongo=mongo MongoDB connection url (default: mongodb://localhost:27017)
-o, --origin=origin allowed origin domain for CORS (default: https://studio.for.io)
-p, --port=port port to listen on (default: 3334)
-t, --ttl=ttl time-to-live, terminate after T seconds (default: unlimited)
EXAMPLE
$ for.io listen kdf9035hd0 my-workspace
$ for.io listen j94509fhg4 my-workspace -p 3030
See code: src/commands/listen.ts