pagure-cli: Pagure client

[ gpl, program, utility ] [ Propose Tags ]

A command-line Pagure client for querying projects and users.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1, 0.2, 0.2.1
Change log
Dependencies aeson, aeson-pretty, base (<5), bytestring, filepath, optparse-applicative, pagure (>=0.1.1), semigroups, simple-cmd-args (>=0.1.6), text, unordered-containers, yaml [details]
License GPL-2.0-only
Copyright 2019-2020,2022 Jens Petersen
Author Jens Petersen <>
Maintainer Jens Petersen <>
Category Utility
Home page
Bug tracker
Source repo head: git clone
Uploaded by JensPetersen at 2022-02-17T19:55:05Z
Distributions Fedora:0.2.1, LTSHaskell:0.2.1, NixOS:0.2.1, Stackage:0.2.1
Executables pagure
Downloads 791 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2022-02-17 [all 1 reports]

Readme for pagure-cli-0.2.1

[back to package description]


Hackage GPL-2 license Stackage Lts Stackage Nightly

A pagure client for querying projects and users.


By default it uses the Pagure server instance (aka Fedora dist-git), but this can be overriden by the --server option.

List/search for repos

$ pagure list emacs\*

Note by default 'orphan' owned packages are excluded.

One can also filter by owner or committer.

List user's projects

Count projects of a user:

$ pagure user -s --count mattdm

List groups:

$ pagure groups

More commands

  • branches lists the git branches of a repo

  • issues to query and list issues

  • users to list usernames of users

  • username shows the fullname of a user

  • git-url shows the git urls for a repo


Use --help to get help on individual commands:

$ pagure list --help
Usage: pagure list [-s|--server SERVER] [-c|--count] [(-j|--json) | (-y|--yaml)]
                   [(-F|--only-forks) | (-f|--include-forks)]
                   [-n|--namespace NAMESPACE]
                   [(-o|--owner OWNER) | (-u|--username USERNAME)] [PATTERN]
  list projects

Available options:
  -s,--server SERVER       Pagure server
  -c,--count               Show number only
  -j,--json                Output JSON
  -y,--yaml                YAML output
  -F,--only-forks          Only list forks
  -f,--include-forks       Include forks [default: ignore forks]
  -n,--namespace NAMESPACE Specify project repo namespace
  -o,--owner OWNER         Projects with certain owner
  -u,--username USERNAME   Projects to which username can commit
  -h,--help                Show this help text


To build the latest release you will need cabal-install and ghc, or stack:

stack install pagure-cli or cabal new-install pagure-cli.

Or to build from the git source, run directly without the package name.


pagure-cli is packaged in Fedora (since F34).


Pagure rest API can be found on pagure servers: eg There are still many unsupported commands and options. Please open a ticket or PR to request adding more.

Other clients

After writing the initial version I discovered that Ricky Elrod (relrod) had made

I discovered a client in Rust by decathorpe.