LinuxCommandLibrary

copr-cli

Manage and build software using COPR repositories

TLDR

Show user logged in to copr

$ copr-cli whoami
copy

Build a local spec file on copr
$ copr-cli build [repository] [path/to/spec_file]
copy

Check status of builds
$ copr-cli list-builds [repository]
copy

Trigger a copr build of a spec-file from public (Git) repository
$ copr-cli buildscm [repository] --clone-url [https://git.example.org/repo] --spec [spec_file_name]
copy

SYNOPSIS

copr [options]

PARAMETERS

build
    Start a new build.

create
    Create a new Copr project.

delete
    Delete a Copr project.

enable-repo
    Enable a Copr repository.

disable-repo
    Disable a Copr repository.

list
    List Copr projects.

show
    Show detailed information about a Copr project or build.

monitor
    Monitor build(s) in a copr project.

--help
    Show help message and exit.

--version
    Show program's version number and exit.

DESCRIPTION

The copr-cli command is a command-line interface for interacting with the Fedora Copr (Cool Other Package Repo) build system. Copr allows users to build and distribute RPM packages for Fedora and other distributions from user maintained repositories. copr-cli enables users to manage Copr projects and builds directly from their terminal.

Using copr-cli you can perform various actions such as creating, listing, and deleting Copr projects.
You can also initiate and monitor builds within Copr projects.
It provides a convenient way to automate package building and distribution workflows on Copr's infrastructure.

The command simplifies working with Copr repositories, especially when integrating package builds into CI/CD pipelines or managing multiple Copr projects at once. With copr-cli, developers can efficiently build and share their software with the Fedora community.

CAVEATS

Requires a configured Fedora account and valid Copr authentication credentials to interact with the Copr service. Some operations may require elevated permissions or project ownership.

AUTHENTICATION

copr-cli uses the same authentication mechanism as other Fedora infrastructure tools. Usually you can login via kerberos or fedora accounts.

CONFIGURATION

The tool relies on configuration files to store API keys and project settings. Ensure that these files are properly configured for seamless interaction with Copr.

HISTORY

The copr-cli command was developed as a command-line tool for managing Fedora Copr repositories. It aimed to provide a more accessible and scriptable interface compared to the Copr web interface. The tool has evolved to support various Copr features, improving workflow automation for package builders.

SEE ALSO

rpmbuild(8), dnf(8)

Copied to clipboard