General-purpose Forgejo CLI scripts
  • Shell 99.2%
  • Makefile 0.8%
Find a file
crueter 520bf4e57d
idk
Signed-off-by: crueter <crueter@eden-emu.dev>
2026-05-13 16:09:47 -04:00
.ci test debug (#14) 2026-03-31 20:33:37 -04:00
.forgejo/workflows feat: unit tests (#12) 2025-11-22 04:18:56 -05:00
fjcli idk 2026-05-13 16:09:47 -04:00
tests test debug (#14) 2026-03-31 20:33:37 -04:00
.gitignore feat: unit tests (#12) 2025-11-22 04:18:56 -05:00
.shellcheckrc makefile 2025-11-14 22:19:30 -05:00
fj.sh repo create 2026-03-28 18:39:33 -04:00
LICENSE init 2025-11-11 21:45:05 -05:00
Makefile fix install 2025-11-20 16:14:30 -05:00
README.md Add external asset command 2026-03-31 16:56:26 -04:00

Forgejo CLI

WIP POSIX Shell script CLI for Forgejo. Notable features:

  • Automatic repo/instance detection via configs
  • Fork detection
  • PR merging and creating
  • Release upload, creation, deletion
  • Actions management (WIP)

This is very WIP and has many missing features and broken things. Notably, OAuth support is missing (and is unlikely to be added), and tons of useful operations such as issue management, release/PR editing, PR closing, and more are missing. Stay tuned, or submit patches!

Installation

sudo make install

You may specify:

  • DESTDIR: the root to install to (e.g. make install DESTDIR=${pkgdir})
  • prefix: the prefix; default is /usr/local (e.g. make install DESTDIR=${pkgdir} prefix=/usr)
  • BIN: what to install fj.sh as (e.g. make install BIN=forgejo)
  • SCRIPTS: what to install the scripts directory as (e.g. make install BIN=fjcli SCRIPTS=fj)

Note that BIN and SCRIPTS must be different.

TODO

  • Rewrite in C++, and provide musl/windows binaries