Skip to content

Install locally

David Knise edited this page Apr 8, 2022 · 1 revision

The Microsoft.Security.DevOps.Cli is available for download from nuget.org.

To easily access it from the command line, add the tools directory of the nuget package to your path. It can then be accessed via it's codename guardian through either the shell or cmd launchers, decided by your operating system.

Basic Commands

Note: [..] blocks indicate optional parameters.

Initialize MSDO in your repo

guardian init

Run MSDO with tools configured by the Microsoft policy (default experience)

guardian run [-p Microsoft]

Run MSDO with tools configured specifically for GitHub

guardian run -p GitHub

Run MSDO with only Infrastructure as Code analyzers

guardian run --categories IaC

Advanced Commands

Each stage of guardian run can be executed independently. To see what commands are available, check the command line help.

See command line help

guardian
guardian help
guardian --help

Interactively configure a tool

guardian configure -t binskim

Run the tool with the custom configuration

guardian run -c binskim
Clone this wiki locally