Global Options
These options can be used with any command:Show help message and exit
Show program version number and exit
Path to alternative configuration file (default:
~/.config/copr)Enable debug output for troubleshooting
Disable colored output
Authentication Commands
whoami
Print the username that the client authenticates with.new-api-token
Generate a new API token and update the configuration file.new-webhook-secret
Regenerate webhook secret for a project.Project Management
list
List all projects of a user or group.Username or @groupname to list projects for. If omitted, lists your own projects.
create
Create a new project.Required Parameters
The name of the project to create. Can be just the name (creates in your namespace) or
username/project or @groupname/project.Chroot to enable for this project. Can be specified multiple times. At least one is required.
Optional Parameters
Description of the project
Installation instructions for users
Additional repository to enable during builds. Can be specified multiple times.
Repository that will be automatically enabled when users enable this project. Can be specified multiple times.
Disable automatic repository metadata generation (values:
true/false)Enable networking for builds in this projectOptions:
on, off (default: off)Hide project from Copr home pageOptions:
on, offMake project and builds undeletable (admin only)
Enable automatic deletion of obsolete buildsOptions:
on (default), off (admin only)Build isolation methodOptions:
simple, nspawn, default (default: default)Configure Mock’s bootstrap featureOptions:
default- Use pre-configured setup from mock-core-configson- Enable bootstrapoff- Disable bootstrapimage- Use container image for bootstrap
Automatically delete project after specified days
Allow 32-bit packages on 64-bit architecturesOptions:
on, off (default: off)Allow packages to override module streamsOptions:
on, off (default: off)Run fedora-review tool on builds (doesn’t fail build if review fails)
Generate AppStream metadataOptions:
on, off (default: off)Auto-create chroots for new Fedora branchesOptions:
on (default), offSet DNF priority for this repository (see
man dnf.conf)Storage backend for this project (admin only)Options:
backend, pulpForge project allowed to build via Packit (format:
github.com/org/repo). Supports wildcards. Can be specified multiple times.modify
Modify an existing project. Accepts the same options ascreate (except --persistent and --storage).
get
Get detailed information about a project.delete
Delete an entire project and all its builds.fork
Fork a project and all its packages.Source project to fork (format:
owner/project)Destination project name (format:
owner/project)Confirm forking into an existing project
regenerate-repos
Manually regenerate repository metadata.Build Commands
build
Build packages from SRPM files or URLs.Project to build in. Format:
project, owner/project, or @group/project. Can also use project:tag for side repositories.One or more SRPM files (local paths or URLs)
Build Options
Build only for specific chroot(s). Can be specified multiple times.
Exclude specific chroot(s). Can be specified multiple times.
Build timeout in seconds (default: 18000 = 5 hours)
Don’t wait for build completion
Run build at lower priority
Isolation method:
simple, nspawn, default, unchanged (default: unchanged)Enable networking:
on, offBootstrap mode:
unchanged, default, on, off, image (default: unchanged)Build after the specified build ID completes
Build in the same batch as the specified build ID
buildscm
Build from a Git/SVN repository.Git or SVN repository URL
Branch name, tag name, or git hash
Subdirectory containing the package
Path to .spec file relative to subdirectory
Version control system:
git (default), svnSRPM build method:
rpkg (default), tito, tito_test, make_srpmbuildpypi
Build a Python package from PyPI.Name of the PyPI package
Specific version to build (default: latest)
Python versions to build for (default: 3 2)
Tool for generating spec file:
pyp2rpm, pyp2spec (default: pyp2spec)Custom spec template file
buildgem
Build a Ruby gem from rubygems.org.build-distgit
Build from a DistGit repository.Package name in DistGit
DistGit instance (e.g.,
fedora)Branch, tag, or commit hash
DistGit namespace (e.g.,
@copr/copr)buildcustom
Build using a custom script.Script file to generate sources
Mock chroot to run script in
Space-separated list of build dependencies
Directory where script outputs results (default:
.)Space-separated list of additional repository URLs
status
Get build status by build ID.cancel
Cancel a running build.watch-build
Watch build progress in real-time.delete-build
Delete one or more builds.download-build
Download build artifacts.Destination directory (default:
.)Download only specific chroot(s). Can be specified multiple times.
Download only RPM files
Download only .spec file
Download only .log files
Download only fedora-review files
list-builds
List all builds in a project.Output format:
json, text, text-row (default: text-row)Chroot Commands
list-chroots
List all available chroots.edit-chroot
Edit chroot configuration.Upload comps.xml file
Delete existing comps.xml
Space-separated packages to add to buildroot
Space-separated additional repository URLs
Comma-separated modules to enable/disable (e.g.,
module1:stream,!module2:stream)rpmbuild —with option. Can be specified multiple times.
rpmbuild —without option. Can be specified multiple times.
Isolation method:
simple, nspawn, defaultBootstrap mode:
unchanged, default, on, off, imageCustom container image for bootstrap (implies
--bootstrap=image)Reset specific fields to defaults. Can be specified multiple times.
get-chroot
Get chroot configuration.Package Management
add-package-scm
Add a package with SCM source.Package name
Git/SVN repository URL
Branch, tag, or commit
Subdirectory path
Path to .spec file
VCS type:
git, svnBuild method:
rpkg, tito, tito_test, make_srpmEnable auto-rebuild:
on, offKeep only N newest builds (0 = unlimited)
Build timeout in seconds (default: 18000)
edit-package-scm
Edit an existing SCM package. Uses same options asadd-package-scm.
add-package-pypi / edit-package-pypi
Add or edit a PyPI package.add-package-rubygems / edit-package-rubygems
Add or edit a RubyGems package.add-package-distgit / edit-package-distgit
Add or edit a DistGit package.add-package-custom / edit-package-custom
Add or edit a custom package.list-packages
List all packages in a project.Include latest build info
Include latest successful build info
Include all builds info
Output format:
json, text, text-rowlist-package-names
List only package names (one per line).get-package
Get detailed package information.delete-package
Delete a package and all its builds.reset-package
Clear package source configuration.build-package
Build a package from its configured source.build command.
Example:
Monitoring
monitor
Monitor package build states.Project subdirectory name (e.g.,
foo:pr:125)Comma-separated list of fields to display. Default:
name,chroot,build_id,state,pkg_versionAvailable fields: name, chroot, build_id, state, pkg_version, url_build_log, url_backend_log, url_buildOutput format:
json, text, text-rowPermissions
edit-permissions
Edit user permissions for a project.Set admin role for user. Format:
USERNAME[=VALUE] where VALUE is approved, request, or nothingSet builder role for user. Format:
USERNAME[=VALUE] where VALUE is approved, request, or nothinglist-permissions
List all permissions for a project.request-permissions
Request permissions for yourself.Request admin permissions:
request (default), nothingRequest builder permissions:
request (default), nothingUtility Commands
mock-config
Get Mock configuration for a chroot.Project Name Formats
Most commands accept projects in these formats:project- Your own project (requires authentication)username/project- Another user’s project@groupname/project- Group projectproject:tag- Side repository (for build commands)