Skip to content

smarter-sh/smarter-cli

Repository files navigation

Smarter Command-line Interface

The Smarter command-line interface for working with Smarter resources. Available on Windows, macOS, Linux and DockerHub.

Usage

smarter --help

Build

Windows

go get -v -t -d .
$VERSION = Get-Content -Path .\VERSION
$env:VERSION = $VERSION
go build -ldflags "-X main.Version=$env:VERSION" -o "./smarter-windows-${env:VERSION}.exe"

macOS / Linux

go get -v -t -d .
export VERSION=$(cat VERSION)
go build -v -ldflags "-X main.Version=$VERSION" -o "./smarter-linux-$VERSION"

CI/CD

The GitHub Actions workflow .github/workflows/build.yml publishes semantically-versioned releases to https://github.com/smarter-sh/smarter-cli/releases which includes binaries for Windows, macOS, Linux and Docker.

Semantic version numbers are controlled by npm package semantic-release which itself is governed by these git commit comment guidelines.

Package versions for Go lang, NPM and GitHub Actions are monitored by Dependabot and Mergify and are automatically updated and merged to the alpha branch of this repo.

Cobra

This cli is built on the Cobra and Viper frameworks for Go lang. See also:

Contributing

Please see ./doc/CONTRIBUTING.md