# Install cbonsai with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Console Bonsai is a bonsai tree generator, written in C using ncurses. Version 1.4.2 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:cbonsai
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cbonsai
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cbonsai
```

  Evidence: MacPorts ports tree: games/cbonsai/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add cbonsai
```

  Evidence: Alpine Linux edge package indexes: cbonsai from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install cbonsai
```

  Evidence: Debian stable package indexes: cbonsai from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cbonsai
```

  Evidence: Fedora Rawhide package metadata: cbonsai from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cbonsai
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cb/cbonsai/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install cbonsai
```

  Evidence: openSUSE Tumbleweed package metadata: cbonsai from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:cbonsai
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cbonsai>
- **Version:** 1.4.2
- **Source summary:** Console Bonsai is a bonsai tree generator, written in C using ncurses
- **Homepage:** <https://gitlab.com/jallbrit/cbonsai>
- **Repository:** <https://gitlab.com/jallbrit/cbonsai>
- **Upstream docs:** <https://gitlab.com/jallbrit/cbonsai#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://gitlab.com/jallbrit/cbonsai/-/archive/v1.4.2/cbonsai-v1.4.2.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cbonsai (cli)
- cbonsai (alias)

## Dependencies

- ncurses

## Build dependencies

- pkgconf
- scdoc

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.4.2
- Local data: ok
- Upstream repository: https://gitlab.com/jallbrit/cbonsai
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

cbonsai is a small terminal-art program: a C/ncurses bonsai tree generator with static and live growth modes.

### Project history

The official README describes cbonsai as a newer C version of the author's earlier bonsai.sh project, which itself ported a JavaScript bonsai tree generator.

### Adoption history

The upstream README points users to a Repology packaging chart and separately calls out Homebrew, MacPorts, Fedora COPR, and Snap availability. The supplied package facts also show distro/package-manager entries for apk, Debian, Fedora, Nix, Ubuntu, zypper, Homebrew, and MacPorts.

### How it is used

cbonsai is used as a terminal visual toy, screensaver, shell-startup flourish, or message display. Its manual documents options for live mode, infinite mode, screensaver mode, seed selection, colors, leaves, and saving/loading progress from ~/.cache/cbonsai.

### Why package nerds care

It is the sort of tiny C/ncurses program package managers like carrying because it is self-contained, portable across Unix-like systems, and useful for testing terminal colors and ncurses behavior while also being a fun demo package.

### Related projects

- bonsai.sh and the JavaScript bonsai generator named by the upstream README.

### Sources

- <https://gitlab.com/jallbrit/cbonsai>
- <https://gitlab.com/jallbrit/cbonsai#readme>
- <https://gitlab.com/jallbrit/cbonsai/-/blob/master/cbonsai.scd>
- <https://formulae.brew.sh/api/formula/cbonsai.json>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cbonsai
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - cbonsai - 1.3.1-1: normalized package name match | Debian stable package indexes: cbonsai from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | terminal-based bonsai tree generator | https://gitlab.com/jallbrit/cbonsai
- Nix - cbonsai: normalized package name match | nixpkgs package indexes: pkgs/by-name/cb/cbonsai/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cbonsai - 1.3.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: cbonsai from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | terminal-based bonsai tree generator | https://gitlab.com/jallbrit/cbonsai
- apk - cbonsai - 1.4.2-r0: normalized package name match | Alpine Linux edge package indexes: cbonsai from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Grow bonsai trees in your terminal | https://gitlab.com/jallbrit/cbonsai
- apk - cbonsai-bash-completion - 1.4.2-r0: normalized package name match | Alpine Linux edge package indexes: cbonsai-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for cbonsai | https://gitlab.com/jallbrit/cbonsai
- apk - cbonsai-doc - 1.4.2-r0: normalized package name match | Alpine Linux edge package indexes: cbonsai-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Grow bonsai trees in your terminal (documentation) | https://gitlab.com/jallbrit/cbonsai
- dnf - cbonsai - 1.3.1-11.fc44: normalized package name match | Fedora Rawhide package metadata: cbonsai from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Grow bonsai trees in your terminal | https://gitlab.com/jallbrit/cbonsai
- zypper - cbonsai - 1.4.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cbonsai from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A bonsai tree generator for your terminal | https://gitlab.com/jallbrit/cbonsai
- zypper - cbonsai-bash-completion - 1.4.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cbonsai-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash Completion for cbonsai | https://gitlab.com/jallbrit/cbonsai
- MacPorts - cbonsai: normalized package name match | MacPorts ports tree: games/cbonsai/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [ncurses](https://www.automicvault.com/pkg/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [scdoc](https://www.automicvault.com/pkg/brew/scdoc/) - Build dependency declared by Homebrew.
- [sc-im](https://www.automicvault.com/pkg/brew/sc-im/) - Shares av.db curated category or tags: cli, ncurses, productivity, terminal.
- [tty-clock](https://www.automicvault.com/pkg/brew/tty-clock/) - Shares av.db curated category or tags: cli, ncurses, productivity, terminal.
- [vim](https://www.automicvault.com/pkg/brew/vim/) - Shares av.db curated category or tags: cli, ncurses, productivity, terminal.
- [byobu](https://www.automicvault.com/pkg/brew/byobu/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [eless](https://www.automicvault.com/pkg/brew/eless/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [nvimpager](https://www.automicvault.com/pkg/brew/nvimpager/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [page](https://www.automicvault.com/pkg/brew/page/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [sheets](https://www.automicvault.com/pkg/brew/sheets/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [mutt](https://www.automicvault.com/pkg/brew/mutt/) - Local package facts share a topical domain. Shared terms: cli, ncurses, productivity, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/cbonsai.yml](https://github.com/automic-vault/db/blob/main/combined/cbonsai.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
