Skip to content

dasmeta/event-manager-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

event-manager-cli

CLI to deal with resources under event-manager namespace.

oclif Version CircleCI Downloads/week License

Usage

$ npm install -g @dasmeta/event-manager-cli
$ emc COMMAND
running command...
$ emc (--version)
@dasmeta/event-manager-cli/1.0.8 linux-x64 node-v12.22.5
$ emc --help [COMMAND]
USAGE
  $ emc COMMAND
...

Commands

emc autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ emc autocomplete [SHELL] [-r]

ARGUMENTS
  SHELL  shell type

FLAGS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

DESCRIPTION
  display autocomplete installation instructions

EXAMPLES
  $ emc autocomplete

  $ emc autocomplete bash

  $ emc autocomplete zsh

  $ emc autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

emc config init

Initializes configurations.

USAGE
  $ emc config init [-f]

FLAGS
  -f, --force  restore all default configs

DESCRIPTION
  Initializes configurations.

EXAMPLES
  $ emc config init

emc dev run function

Run function in local environment

USAGE
  $ emc dev run function --project-dir <value> --function-namespace <value> --function-name <value> --test-data-file
    <value> [--project-name <value>] [--env-file <value>]

FLAGS
  --env-file=<value>            Environment variables file with JSON format
  --function-name=<value>       (required) Function name
  --function-namespace=<value>  (required) Function namespace
  --project-dir=<value>         (required) Project root directory
  --project-name=<value>        Sub project directory
  --test-data-file=<value>      (required) Test data file

DESCRIPTION
  Run function in local environment

EXAMPLES
  $ emc dev run function

emc dev run topic

Run topic in local environment

USAGE
  $ emc dev run topic --project-dir <value> --test-data-file <value> -t <value> [--project-name <value>]
    [--env-file <value>]

FLAGS
  -t, --topic=<value>       (required) Topic to run
  --env-file=<value>        Environment variables file with JSON format
  --project-dir=<value>     (required) Project root directory
  --project-name=<value>    Sub project directory
  --test-data-file=<value>  (required) Test data file

DESCRIPTION
  Run topic in local environment

EXAMPLES
  $ emc dev run topic

emc dev start

Starts consumers in local environment

USAGE
  $ emc dev start --project-dir <value> [--project-name <value>] [-t <value>] [-T <value>] [-s <value>] [-S
    <value>] [--default-max-attempt <value>] [--env-file <value>] [--force]

FLAGS
  -S, --excluded-subscription=<value>...  [default: ] Subscription to exclude consuming
  -T, --excluded-topic=<value>...         [default: ] Topics to exclude consuming
  -s, --subscription=<value>...           [default: ] Subscription to consume
  -t, --topic=<value>...                  [default: ] Topics to consume
  --default-max-attempt=<value>           [default: 3] Default function execution attempts count
  --env-file=<value>                      Environment variables file with JSON format
  --force                                 Ignore issues and run anyway
  --project-dir=<value>                   (required) Project root directory
  --project-name=<value>                  Sub project directory

DESCRIPTION
  Starts consumers in local environment

EXAMPLES
  $ emc dev start

emc dev trigger-event

Publishes Event.

USAGE
  $ emc dev trigger-event --kafka-bootstrap-server <value> -t <value> -e <value> [--debug]

FLAGS
  -e, --event=<value>               (required) Topic body
  -t, --topic=<value>               (required) Topic to run
  --debug                           Activate debug mode.
  --kafka-bootstrap-server=<value>  (required) Kafka server for Fission MQT

DESCRIPTION
  Publishes Event.

EXAMPLES
  $ emc dev trigger-event

emc function create

Create Function blueprint

USAGE
  $ emc function create --project-dir <value> --namespace <value> --name <value> [--project-name <value>]

FLAGS
  --name=<value>          (required) Function name
  --namespace=<value>     (required) Function namespace
  --project-dir=<value>   (required) Project root directory
  --project-name=<value>  Sub project directory

DESCRIPTION
  Create Function blueprint

EXAMPLES
  $ emc function create

emc function list-topics

Lists topics

USAGE
  $ emc function list-topics --project-dir <value> [--project-name <value>] [--dump]

FLAGS
  --dump                  Dump as command option
  --project-dir=<value>   (required) Project root directory
  --project-name=<value>  Sub project directory

DESCRIPTION
  Lists topics

EXAMPLES
  $ emc function list-topics

emc function package generate NAME

Create Function project

USAGE
  $ emc function package generate [NAME] --project-dir <value> [--functions-dir <value>]

ARGUMENTS
  NAME  Project name

FLAGS
  --functions-dir=<value>  [default: functions] Functions root directory
  --project-dir=<value>    (required) Project root directory

DESCRIPTION
  Create Function project

EXAMPLES
  $ emc function package generate

emc function sync-dependencies

Syncs all detected functions dependencies to match to project one.

USAGE
  $ emc function sync-dependencies --project-dir <value> [--project-name <value>]

FLAGS
  --project-dir=<value>   (required) Project root directory
  --project-name=<value>  Sub project directory

DESCRIPTION
  Syncs all detected functions dependencies to match to project one.

EXAMPLES
  $ emc function sync-dependencies

emc function sync-version

Syncs all detected changed functions versions.

USAGE
  $ emc function sync-version --project-dir <value> [--project-name <value>]

FLAGS
  --project-dir=<value>   (required) Project root directory
  --project-name=<value>  Sub project directory

DESCRIPTION
  Syncs all detected changed functions versions.

EXAMPLES
  $ emc function sync-version

emc function validate

Validates functions in the project

USAGE
  $ emc function validate --project-dir <value> [--project-name <value>]

FLAGS
  --project-dir=<value>   (required) Project root directory
  --project-name=<value>  Sub project directory

DESCRIPTION
  Validates functions in the project

EXAMPLES
  $ emc function validate

emc help [COMMAND]

Display help for emc.

USAGE
  $ emc help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for emc.

See code: @oclif/plugin-help

emc platform generate-deploy

Generates deployment files.

USAGE
  $ emc platform generate-deploy --project-dir <value> --env-file <value> [--project-name <value>] [--is-GCF
    --functions-list-file <value>] [--is-fission --kafka-bootstrap-server <value>] [-t <value>]

FLAGS
  -t, --topic=<value>...            [default: ] Topics to deploy functions for
  --env-file=<value>                (required) Deployment environment file
  --functions-list-file=<value>     GCF deployed functions list
  --is-GCF                          Use GCF instructions
  --is-fission                      Use fission instructions
  --is-serverless-aws               Use serverless aws instructions
  --kafka-bootstrap-server=<value>  Kafka server for Fission MQT
  --aws-region                      AWS region
  --fission-namespace               Fission deployment namespace
  --event-manager-backend-host      Event manager backend host
  --project-dir=<value>             (required) Project root directory
  --project-name=<value>            Sub project directory

DESCRIPTION
  Generates deployment files.

EXAMPLES
  $ emc platform generate-deploy

emc plugins

List installed plugins.

USAGE
  $ emc plugins [--core]

FLAGS
  --core  Show core plugins.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ emc plugins

See code: @oclif/plugin-plugins

emc plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ emc plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ emc plugins:inspect myplugin

emc plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ emc plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.

  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.

ALIASES
  $ emc plugins add

EXAMPLES
  $ emc plugins:install myplugin 

  $ emc plugins:install https://github.com/someuser/someplugin

  $ emc plugins:install someuser/someplugin

emc plugins:link PLUGIN

Links a plugin into the CLI for development.

USAGE
  $ emc plugins:link PLUGIN

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Links a plugin into the CLI for development.

  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.

EXAMPLES
  $ emc plugins:link myplugin

emc plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ emc plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ emc plugins unlink
  $ emc plugins remove

emc plugins update

Update installed plugins.

USAGE
  $ emc plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.