Thank you for considering contributing to the Harness CLI! Contributions fall into a couple of categories:
To report a bug or request a feature enhancement, create a GitHub issue.
To propose a change to the codebase, open a pull request. A maintainer will be happy to triage and ask clarifying questions as needed. We also ask that you build and test proposed changes yourself, and include any relevant output and/or screenshots in the PR.
The Harness CLI is a Go module that interacts heavily with the Harness API. Most functionality requires authentication to a Harness account (SaaS or self-managed). You can sign up for a free account here.
- Ensure you have Go version 1.19 or later installed.
- Fork this repository, then clone locally.
- Navigate into the project directory.
cd harness-cli/
- Make your desired changes to the source code.
- From the
harness-cli/
directory, compile a new executable with your changes.
go build -o harness
- Run and test your changes.
./harness [global options] command [command options] [arguments...]
- If contributing, push to your fork and submit a pull request. Include relevant output and/or screenshots from local tests.