sq ping

Ping data sources to check connection health. If no arguments provided, the
active data source is pinged. Provide the handles of one or more sources
to ping those sources, or --all to ping all sources.

The exit code is 1 if ping fails for any of the sources.

  sq ping [@HANDLE [@HANDLE_N]] [flags]

  # ping active data source
  $ sq ping

  # ping all data sources
  $ sq ping --all

  # ping @my1 and @pg1
  $ sq ping @my1 @pg1

  # ping @my1 with 2s timeout
  $ sq ping @my1 --timeout=2s

  # output in TSV format
  $ sq ping --tsv @my1

  -t, --table              Output text table
  -c, --csv                Output CSV
  -T, --tsv                Output TSV
  -j, --json               Output JSON
      --timeout duration   Max time to wait for ping (default 10s)
  -a, --all                Ping all sources
      --help               help for ping

Global Flags:
  -M, --monochrome   Don't colorize output
  -v, --verbose      Print verbose output, if applicable