kusari-cli

module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2025 License: MIT

README

Kusari CLI

Command line interface for Kusari.

Installation

  1. Have Go installed.

  2. go install github.com/kusaridev/kusari-cli/kusari@latest

Alternatively, you can install pre-built binaries for supported platforms from the GitHub releases page.

Usage

For detailed information, see the Kusari Documentation.

kusari auth login

Logs into Kusari. Default parameters are good for most use cases. Access token is stored in $HOME/.kusari/tokens.json.

kusari repo scan

Scans a diff on a git repository using Kusari Inspector. This will scan a set of changes, so a git revision is needed to compare to. Usage:

kusari repo scan <directory> <git-rev>

Where <directory> is the directory of the git repository you wish to scan, and <git-rev> is the git revision to compare with the working tree to generate the set of changes. See Git documentation, for examples of git revisions. The revision must be a single revision to compare the working tree against, not a range.

Examples:

kusari repo scan ~/git/guac HEAD^

Will scan my ~/git/guac repository and compare the working tree with the commit before the most recent commit.

kusari repo scan ~/git/guac origin/main

Will scan my ~/git/guac repository and compare the working tree with the main branch from the remote origin.

Kusari Inspector results will be stored and displayed in the Kusari Console.

Directories

Path Synopsis
api
cmd
pkg
url

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL