phylum parse

Parse lockfiles and output their packages as JSON

Usage: phylum parse [OPTIONS] [LOCKFILE]...

Arguments

[LOCKFILE]
The package lockfiles to submit

Options

-t, --lockfile-type <type>
Lockfile type used for all lockfiles (default: auto)
Accepted values: npm, yarn, pnpm, gem, pip, poetry, pipenv, mvn, gradle, nugetlock, msbuild, go, cargo, spdx, cyclonedx, auto

-v, --verbose...
Increase the level of verbosity (the maximum is -vvv)

-q, --quiet...
Reduce the level of verbosity (the maximum is -qq)

-h, --help
Print help

Examples

# Parse a lockfile
$ phylum parse package-lock.json

# Parse the `Cargo.lock` and `lockfile` files as cargo lockfiles
$ phylum parse --lockfile-type cargo Cargo.lock lockfile