2.4.0 • Published 6 months ago

carotte-cli v2.4.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 months ago

carotte-cli

CircleCI

npm version

Install

# 1. install latest version yarn or npm
npm i -g carotte-cli
yarn global add carotte-cli

# 2. read help
carotte help

# 3. add autocomplete (or ~/.bashrc)
carotte completion >> ~/.zshrc
carotte-bulk completion >> ~/.zshrc

Usage carotte help

carotte <cmd> [args]

Commands:
  carotte completion            Generate completion script to be added to your
                                shell startup
  carotte invoke <qualifier>    Publish a message and await response
  carotte publish <qualifier>   Publish a message
  carotte describe <qualifier>  Describe consumer behind this qualifier

Options:
  --version  Show version number                                       [boolean]
  --help     Show usage instructions.                                  [boolean]

carotte help invoke

carotte invoke <qualifier>

Publish a message and await response

Positionals:
  qualifier  Message qualifier to be published e.g. user.read:v1 or
             topic/user.created:v1                           [string] [required]

Options:
  --version                 Show version number                        [boolean]
  --help                    Show usage instructions.                   [boolean]
  -r, --reporter            Listens to task suite events and formats input /
                            output.
                               [choices: "dotted", "simple"] [default: "simple"]
  -y, --bypassConfirmation  Bypass user confirmation prompt.
                                                      [boolean] [default: false]
  -c, --context             Context given to published message. File path
                            allowed.                                    [string]
  -p, --payload             Payload given to published message. If none, payload
                            will be read from stdin. File path allowed. [string]
  --timeout                 Carotte invoke timeout in milliseconds.
                                                       [number] [default: 10000]
  -t, --template            Template used to assemble payload into JSON
                            payloads. If none, payload will be assumed to be
                            JSON payloads.                              [string]
  --bulk                    Bulk process all lines in given payload. Use in
                            conjunction with --template (mandatory).
                                                      [boolean] [default: false]
  --concurrency             Maximum concurrency calls.    [number] [default: 50]
  -b, --break-on-error      Abort run suite on first task error.
                                                      [boolean] [default: false]
  -f, --force               Force call thus bypassing schema validation.
                                                      [boolean] [default: false]

Environment variables

CAROTTE_HOST                              set to your local broker endpoint e.g. amqp:5672
CAROTTE_DEFAULT_CONCURRENCY               set to an integer to have it configured by default
CAROTTE_CLI_BYPASS_CONFIRMATION           set to "true" if you want to bypass always
CAROTTE_CLI_BYPASS_RESPONSE_VALIDATION    set to "true" if you want to bypass response validation
CAROTTE_CLI_DD_API_KEY                    set to Datadog API Key to enable its log transport
COLUMN_SEPARATOR                          set the column separator for CSV file (e.g. `COLUMN_SEPARATOR="\n"`)
CAROTTE_CLI_DD_SOURCE                     log DD source configuration
CAROTTE_CLI_DD_LOG_DELAY                  log DD delay waiting for logs to be pushed
CAROTTE_CLI_USER                          log DD user appended to each log
2.4.0

6 months ago

2.3.1

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

5 years ago

2.0.0

5 years ago

2.0.0-beta.2

5 years ago

2.0.0-beta.1

5 years ago

2.0.0-alpha.1

5 years ago

1.2.0

5 years ago

1.1.3

6 years ago

1.1.1

7 years ago