Skip to main content

Usage

With a configuration in place, simply invoke PackageGuard like this:

packageguard --config-path <path-to-config-file> <path-to-solution-file-or-project>

If you pass a directory, PackageGuard will try to find the .sln, .slnx or package.json files there. But you can also specify a specific .csproj or package.json to scan.

If everything was configured correctly, you'll get something like:

Console output of a PackageGuard scan

The exit code indicates either 0 for success or 1 for failure.

Where to next?