Debugging the Vonage CLI

Flags

The Vonage CLI provides a set of global flags that are available for all commands. The following flags are useful when debugging, showing additional information that can help you understand the behavior of the CLI in your environment:

  • --verbose: Details the steps the command is taking.
  • --debug: Print debug information.

verbose and debug information will be written to STDERR to allow piping output into other programs.

Note: When using the debug flag, private key information will be logged. You must not use this flag on production systems to ensure your private key is secure.

Exit Codes

The CLI will return different exit codes depending on the outcome of a command. These are listed in the Exit Code reference.