Inspect Function CLI

Hi, just wondering if the ‘inspect’ function can output to a text file of some sort? If it has a command line interface, or some sort of output functionality that I haven’t discovered, that would be great to know about :slight_smile:
Especially because whenever I click on a different button on PIO home, the inspect feature needs to be rerun which can be sometimes annoying.

Thanks!

There is pio check on the CLI, and also as a shortcut in the command palette (Ctrl+Shift+P). But this does only static analysis, no size analysis.

Thanks Max, that is a shame that we can’t get a text based output. I may work on webscraping the output as the information is really great.

PIO check does support outputting in machine-readable JSON.

>pio check --help
Usage: pio check [OPTIONS]

Options:
  -e, --environment TEXT
  -d, --project-dir PATH
  -c, --project-conf FILE
  -f, --src-filters TEXT
  --flags TEXT
  --severity [low|medium|high]
  -s, --silent
  -v, --verbose
  --json-output
  --fail-on-defect [low|medium|high]
  --skip-packages
  -h, --help                      Show this message and exit.