Help us shape the future of Go! Take the 2026 Go Developer Survey

cloudsmith

command
v1.0.49458 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Command cloudsmith publishes Linux packages (.deb and .rpm) to a Cloudsmith repository via the public REST API.

Like cmd/packagecloud, this is a small release-time tool: goreleaser can't push to Cloudsmith without a Pro licence, so we drive the API directly instead.

Uploading a package is a two-step flow:

  1. PUT the file to upload.cloudsmith.io with a Content-Sha256 header. The response returns an identifier for the stored blob.
  2. POST that identifier to api.cloudsmith.io/v1/packages/.../upload/<format>/ along with the target distribution.

Every package is published to the generic "any-distro/any-version" distribution, so a single upload serves every distro and version.

Usage:

CLOUDSMITH_API_KEY=... go run ./cmd/cloudsmith push deb --repo circleci-deps/public dist/*.deb
CLOUDSMITH_API_KEY=... go run ./cmd/cloudsmith push rpm --repo circleci-deps/public dist/*.rpm

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL