Skip to content
datadog-labsPublic

About

Bits in the Terminal

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Bits CLI

Bits CLI brings Bits Chat and its built-in Datadog tools to your terminal. It adds coding tools that run in your local workspace, so Bits can inspect and edit code, run commands, and help implement and verify fixes using your Datadog context. Start a new conversation or continue one you started in Datadog.

Note

Bits CLI is currently in preview. Features and interfaces may change.

Installation

macOS

Install with Homebrew:

brew tap datadog-labs/pack
brew install datadog-labs/pack/bits

Linux

Install with Homebrew:

brew tap datadog-labs/pack
brew install datadog-labs/pack/bits

Or download the standalone binary from GitHub Releases:

VERSION="0.0.7"
case "$(uname -m)" in
  x86_64)        ARCH="amd64" ;;
  arm64|aarch64) ARCH="arm64" ;;
  *) echo "Unsupported architecture: $(uname -m)" >&2; exit 1 ;;
esac

ASSET="bits_${VERSION}_linux_${ARCH}.tar.gz"
curl -fL \
  "https://github.com/datadog-labs/bits-cli/releases/download/v${VERSION}/${ASSET}" \
  -o "/tmp/${ASSET}"
tar -xzf "/tmp/${ASSET}" bits
sudo install -m 755 bits /usr/local/bin/
rm -f "/tmp/${ASSET}" bits

Get started

Launch Bits from the project you want to work on:

cd your-project
bits

On first launch, choose your Datadog site and sign in through your browser. You'll need a Datadog account with the Bits Chat Access permission.

Bits CLI running Bits Chat in the terminal

Datadog integration

Sign in to use the Datadog tools available through Bits Chat. The integration is built in, with no separate Datadog tool server to configure or API keys to manage for browser sign-in.

Reference services, monitors, incidents, and dashboards directly in your conversation. Type @ to search your Datadog entities and attach the relevant context to your question.

An investigation started in Datadog can continue against your local code. Use /resume to select a conversation, or open it by ID:

bits --conversation YOUR_CONVERSATION_ID

Use /web to reopen the active conversation in Datadog.

Bits asks for permission before reading workspace files, editing files, or executing commands. Run bits --help for available commands.

Contributing

See CONTRIBUTING.md for development setup and the contribution workflow.

License

Bits CLI is released under the Apache-2.0 License. Third-party components and their licenses are listed in LICENSE-3rdparty.csv.

About

Bits in the Terminal

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages