Skip to content

About

https://packagecloud.io/ cli tool. gem-independent.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

67 Commits

Folders and files

Repository files navigation

packagecloud

simple packagecloud command line tool.

Install

go install github.com/atotto/packagecloud

or

curl -s https://packagecloud.io/install/repositories/atotto/debian-utils/script.deb.sh | os=any dist=any sudo -E bash
sudo apt install packagecloud

Usage

Pushing a package

packagecloud push example-user/example-repository/ubuntu/xenial /tmp/example.deb

Listing packages in a repository

packagecloud list example-user/example-repository example 1.0.0
packagecloud list -filter=deb example-user/example-repository

-filter narrows the result to one package type (deb, rpm, dsc, alpine, gem, python, nodejs, java, helm, files). Without a query, -filter, or dist, the packagecloud.io search API rejects the request, so pass at least one of them to list everything. Results are paginated automatically.

Deleting a package

packagecloud rm example-user/example-repository/ubuntu/xenial example_1.0.1-1_amd64.deb

Promoting packages between repositories

packagecloud promote example-user/repo1/ubuntu/xenial example_1.0-1_amd64.deb example-user/repo2

CircleCI

Configure environment variables

Set the $PACKAGECLOUD_TOKEN

create an environment variable with the name PACKAGECLOUD_TOKEN, containing the value of a packagecloud API token.

Use docker

jobs:
  deploy:
    docker:
      - image: atotto/packagecloud
    steps:
      - attach_workspace:
          at: /workspace
      - run: |
          packagecloud push atotto/repository/any/any my-debian-package_*.deb

Use debain package

    steps:
      - run:
          name: setup atotto packagecloud
          command: |
            curl -s https://packagecloud.io/install/repositories/atotto/debian-utils/script.deb.sh | os=any dist=any bash
            apt install -y packagecloud

About

https://packagecloud.io/ cli tool. gem-independent.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages