cli

command module
v3.0.0-beta.20240620 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 7 Imported by: 0

README ¶

bk - The Buildkite CLI

Latest Release

A command line interface for Buildkite.

Use bk to interact with your Buildkite organization without leaving the terminal 🙌.

[!NOTE]
The 3.x (default) branch is under current active development. If you'd like to use the most recent released version of the Buildkite CLI, please refer to the main branch and releases page for details and installation instructions.

Installing

bk is available as a downloadable binary from the releases page.

Usage

$ bk --help
Work with Buildkite from the command line.

Usage:
  bk [command]

Examples:
$ bk build view
$ bk agent stop <agent ID>


Available Commands:
  agent       Manage agents
  build       Manage pipeline builds
  completion  Generate the autocompletion script for the specified shell
  configure   Configure Buildkite API token
  help        Help about any command
  init        Initialize a pipeline.yaml file
  use         Select an organization

Flags:
  -h, --help   help for bk

Use "bk [command] --help" for more information about a command.
Configure

You'll need to run bk configure first to set up your organization and API token.

💬 Feedback

We'd love to hear any feedback and questions you might have. Please file an issue on GitHub and let us know!

🔨 Development

Developed using Golang 1.20+ with modules.

git clone git@github.com:buildkite/cli.git
cd cli/
export BUILDKITE_GRAPHQL_TOKEN="<token>"
go generate
go run cmd/bk/main.go --help

Documentation ¶

The Go Gopher

There is no documentation for this package.

Directories ¶

Path Synopsis
cmd
bk
internal
api
config
Package config contains the configuration for the bk CLI
Package config contains the configuration for the bk CLI
io
job
keys
Package keys provides types and function for defining user-configurable keymappings in bubbletea components.
Package keys provides types and function for defining user-configurable keymappings in bubbletea components.
pkg

Jump to

Keyboard shortcuts

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