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>.
One key belongs to one workspace. Set the full secret (both parts after Bearer) as:
- Environment variable
BUILDIFY_PUBLISH_API_KEY(ignores saved profiles), or buildify-publish config add-profile <name>(reads from stdin — avoids putting the secret on the command line). This does not change the default profile.
Publish keys are created and rotated in the Buildify console, not through this CLI. When several keys are saved, pass --profile <name> (or set BUILDIFY_PUBLISH_PROFILE). config use changes the machine default; agents should not run it unless asked.
Quick start
printf '%s' 'yourKeyId.yourSecret' | buildify-publish config add-profile acme
buildify-publish health
buildify-publish --profile acme key test
buildify-publish bundle info --name 'my/group/plugin'
buildify-publish bundle namespace create --name acme
buildify-publish bundle create --namespace acme --name plugin --display-name Plugin
buildify-publish bundle upload \
--name 'my/group/plugin' \
--version '1.0.0-SNAPSHOT' \
--file ./plugin.jar \
--overwrite \
--release-notes-file ./CHANGELOG.md
发布说明: bundle upload 支持 --release-notes-file(UTF-8 Markdown,通常为本仓库根目录 CHANGELOG.md),随 JAR 以 multipart 字段 releaseNote 提交至 POST /v1/bundles/versions;服务端写入 bundle_version_release_note(与控制台开发者上传、§十八 一致)。规范要求见 docs/spec/dev-spec.md §17.7。
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 in ~/.buildifyrc, section [publish]:
base_url— which publish API host to call (default host above if unset).api_key— single credentialkeyId.secret, listed as profiledefault.profiles.<name>— one key per workspace.add-profiledoes not change the default.
buildify-publish config set-key base_url https://publish.buildify.cn
printf '%s' 'keyId.secret' | buildify-publish config add-profile acme
buildify-publish --json config profiles
buildify-publish config show
config set-key api_key updates the current profile, or [publish].api_key when no current profile is set. Shortcuts config set-base-url and config set-api-key remain.
File: ~/.buildifyrc (Unix) or %USERPROFILE%\.buildifyrc (Windows), mode 600. Shared with buildify; publish settings stay in [publish] and are not written at the file root or into [openapi]. Key selection: --api-key / BUILDIFY_PUBLISH_API_KEY → --profile / BUILDIFY_PUBLISH_PROFILE → .buildify-workspace → [publish].current → the only saved key.
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_PROFILE, BUILDIFY_PUBLISH_JSON, BUILDIFY_PUBLISH_NO_PROMPT, NO_COLOR.
Global flags: --json, --api-key, --profile, --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.
Metadata
Release files for buildify-publish-cli 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| buildify_publish_cli-1.2.0.tar.gz | 26.1 kB | Without provenance | Details for buildify_publish_cli-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| buildify_publish_cli-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for buildify_publish_cli-1.2.0-py3-none-any.whl |
Total release size: 50.7 kB
Release files / buildify_publish_cli-1.2.0.tar.gz
| Download URL | buildify_publish_cli-1.2.0.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c62ce30c866bb3dfb3b781e8af863c37c7adca584c16f59a276dc6f5327c109d
|
|
BLAKE2b-256 checksum How to use checksums |
95576405b618ef9a042673b238e8701b769767a7eee2901d4e485d998d9696f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / buildify_publish_cli-1.2.0-py3-none-any.whl
| Download URL | buildify_publish_cli-1.2.0-py3-none-any.whl |
|---|---|
| Size | 24.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afcd00cc856bee8e050d722c9e6fcce0c7f37dae691403801f8651517ae8919e
|
|
BLAKE2b-256 checksum How to use checksums |
1a4c87054d53f9bf1ed4ce57ce0d4066bde0d1aabbe21f4cb7e173e9ced2b2d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for buildify-publish-cli 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.