Skip to content

Manifest CLI Quickstart Guide

villacaball edited this page Apr 11, 2023 · 6 revisions

Install

First, install the Manifest cli locally. There are many ways to install listed on the README.

brew install manifest

Generate an API Key

Next, generate an API Key so you can send the SBOM to the Manifest app.

  1. Login to the Manifest app (app.manifestcyber.com)
  2. Click on the button in the top right of the app with your organization name.
Screen Shot 2023-04-10 at 9 04 55 PM
  1. Click 'Create New API Token'
  2. Give your token a Label, description, and scope. For scope, select upload sbom and click 'Confirm.'
  3. Copy your API token into your secrets manager (e.g. Github Secrets, or keep it handy to pass into the cli)

Run the cli

Generate your first SBOM and send it to Manifest. Simply run the following command, and make sure the -p parameter points to a source code repository/folder or a container.

manifest sbom -p=./route/to/folder,alpine:latest --generator=trivy --publish=true

In the command above, the command will generate two SBOMs: one for the project located at ./route/to/folder, and the other for the latest version of the Alpine container image. It will use the Trivy SBOM generator, and will publish the SBOM (send it to the Manifest app).

View for results

Login to the Manifest app, and navigate to the SBOMs page. The SBOMs may take a few minutes to upload and process. When they're ready to view, you can either click on the Asset name in the SBOM page, or go to the Assets page.

Clone this wiki locally