CLI for Buildify bundle publish server (machine Bearer auth)
Project description
buildify-publish-cli
Command-line client for the Buildify bundle publish HTTP API. Use it to check health, validate publish keys, query bundle metadata, and upload JAR bundles from your terminal or CI.
Requires: Python 3.10 or newer.
Install
From PyPI:
pip install buildify-publish-cli
Other installers:
pipx install buildify-publish-cli
uv tool install buildify-publish-cli
After install, the command is buildify-publish.
Authentication
The API uses Bearer credentials: Authorization: Bearer <keyId>.<secret>.
Set the full secret (both parts after Bearer) as:
- Environment variable
BUILDIFY_PUBLISH_API_KEY, or buildify-publish config set-api-key(reads from stdin — avoids putting the secret on the command line).
Publish keys are created and rotated in the Buildify console, not through this CLI.
Quick start
export BUILDIFY_PUBLISH_API_KEY='yourKeyId.yourSecret'
buildify-publish health
buildify-publish key test
buildify-publish bundle info --name 'my/group/plugin'
buildify-publish bundle upload \
--name 'my/group/plugin' \
--version '1.0.0-SNAPSHOT' \
--file ./plugin.jar \
--overwrite
API base URL
Default: https://publish.buildify.cn
Override for self-hosted or other environments:
export BUILDIFY_PUBLISH_BASE_URL='https://your-publish-host.example.com'
# or per invocation:
buildify-publish --base-url 'https://your-publish-host.example.com' health
Persist locally:
buildify-publish config set-base-url https://publish.buildify.cn
printf '%s' 'keyId.secret' | buildify-publish config set-api-key
buildify-publish config show
Config file: ~/.config/buildify/publish.toml (Unix) or %APPDATA%\buildify\publish.toml (Windows). Precedence: CLI flags → environment → config file → default base URL.
Built-in reference
Full Markdown reference (commands, env vars, HTTP mapping, exit codes, JSON schema):
buildify-publish help
Same content ships as usage.md inside the package.
Scripting and CI
Machine-readable output (one JSON object per run):
export BUILDIFY_PUBLISH_JSON=1
buildify-publish --json key test
Environment: BUILDIFY_PUBLISH_BASE_URL, BUILDIFY_PUBLISH_API_KEY, BUILDIFY_PUBLISH_JSON, NO_COLOR.
Global flags: --json, --api-key, --base-url, --quiet.
Developing from source
If you have the Git repository checked out:
cd tools/buildify-publish-cli
python3 -m venv .venv && source .venv/bin/activate
pip install -U pip
pip install .
Run without installing into the environment:
python -m buildify_publish --help
License
Same as the upstream project repository unless stated otherwise.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file buildify_publish_cli-1.0.0.tar.gz.
File metadata
- Download URL: buildify_publish_cli-1.0.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8a3fbdd02e719dbca57701ba75f10398b71e96c1d1a15c892365cac5efbfbfe
|
|
| MD5 |
8601191b1b4941f361ef2c4346a43f74
|
|
| BLAKE2b-256 |
9dc613c434323ddc7ad46250a00ec1f33568b61f07f5437fce29dcec59e1b6da
|
File details
Details for the file buildify_publish_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: buildify_publish_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f5b2980cf7e372c61a8feb78397422a1c8aba8cadd1173b043b9f14198b7a58
|
|
| MD5 |
ba0f8a328ea1f459d2ae309711822e47
|
|
| BLAKE2b-256 |
3b9e96a6b73949a5ab1a03a6477c1aceb47e3373de68067c9555c1a037c7c8af
|