Skip to main content

CLI for Gentoo Build Publisher

Introduction

This is a command-line interface for Gentoo Build Publisher, a system that combines Gentoo Linux and CI/CD so that updating a Gentoo predictable and consistent.

This is a pip-installable Python package:

$ pip install gbpcli

Usage

The full command set supported:

https://raw.githubusercontent.com/enku/screenshots/refs/heads/master/gbpcli/usage.svg

The URL for the Gentoo Build Publisher may be provided via the command line or by using the BUILD_PUBLISHER_URL environment variable.

Additional commands may be provided by plugins.

To list the machines which have builds use gbp machines:

https://raw.githubusercontent.com/enku/screenshots/refs/heads/master/gbpcli/machines.svg

The "Latest" column shows the latest build ID for the given machine. If the ID is in bold it that denotes that the latest build is published (available for emerges).

To list the available builds for a given machine us gbp list <machine>:

https://raw.githubusercontent.com/enku/screenshots/refs/heads/master/gbpcli/list.svg

In the above example, the P output for build 52 signifies that this build is currently published. The * flag means that the respective build has new binary packages. The K for build 1 means that the build is marked for keeping and will not be removed during the purge process. Build 52 has also been given "hello" and "world" tags. The N flag for builds means that the builds have notes attached.

https://raw.githubusercontent.com/enku/screenshots/refs/heads/master/gbpcli/status.svg

Edit/delete build notes using the gbp notes command.

The status subcommand displays metadata about a given build. If the build number is not given, it defaults to the latest build for that machine.

The diff subcommand display differences between two builds.

https://raw.githubusercontent.com/enku/screenshots/refs/heads/master/gbpcli/diff.svg

If the second build number is not given, it defaults to the latest build for that machine. If the first build number is not given, it defaults to the published build for that machine.

The publish subcommand makes the given build available for syncing and updating/downgrading.

$ gbp publish arm64-base 151

If the build number is not given, it defaults to the latest build for that machine.

The build subcommand can schedule a build in CI/CD for the given machine, e.g.:

$ gbp build babette

Configuration

In addition to the command-line flags, gbpcli can also be configured using a configuration file. If a the file ~/.config/gbpcli.toml exists it will be read and used to configure gbpcli. This file should be toml formatted. For example:

[gbpcli]
url = "http://gbpbox/"
my_machines = ["babette", "lighthouse", "polaris"]
auth = { user = "marduk", api_key = "myapikey" }

The url setting can be used in place of the --url command-line option or the BUILD_PUBLISHER_URL environment variable. The my_machines settings can be used in place of the --my-machines command-line option or the GBPCLI_MYMACHINES environment variable. The auth setting can only be supplied through the configuration file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gbpcli-3.5.0.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gbpcli-3.5.0-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file gbpcli-3.5.0.tar.gz.

File metadata

  • Download URL: gbpcli-3.5.0.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for gbpcli-3.5.0.tar.gz
Algorithm Hash digest
SHA256 64573bee9116004074018ddf0dba43b53b8b8430aa3276e257631d6a5d6128d3
MD5 55ae16176ea23f61930452012e4a6dea
BLAKE2b-256 a1fd4bc61679f4310c5f06c238fc69c826ffbe8cf9f777f00a4105234ee433b3

See more details on using hashes here.

File details

Details for the file gbpcli-3.5.0-py3-none-any.whl.

File metadata

  • Download URL: gbpcli-3.5.0-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for gbpcli-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7604c812506537bd3f0d978fc1dda9541357e47d1f992f202f44462afe7668d5
MD5 0da1f0c7cc30add673e72e064ed09a79
BLAKE2b-256 80fffbb60a33d0154acb16e78f8e4ee26e4f351e13dedef7b3fcb8b610285721

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.5.0 This release

2 files

3.4.0

2 files

3.3.0

2 files

3.2.0

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.1

2 files

3.0.0

2 files

2.5.0

2 files

2.4.1

2 files

2.4.0

2 files

2.3.0

2 files

2.2.1

2 files

2.2.0

2 files

2.1.1

2 files

2.1.0

2 files

2.0.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.1

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page