LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

fj

Forgejo CLI for the terminal

TLDR

Authenticate against a Forgejo instance
$ fj auth login
copy
List the instances you are already logged in to
$ fj auth list
copy
Show which account the current instance sees
$ fj whoami
copy
Clone a repository
$ fj repo clone [owner]/[repo]
copy
Fork a repository into your own account
$ fj repo fork [owner]/[repo]
copy
Print a repository's README without leaving the terminal
$ fj repo readme [owner]/[repo]
copy
Star a repository
$ fj repo star [owner]/[repo]
copy
Search the issues of the current repository
$ fj issue search
copy
Open a new issue
$ fj issue create
copy
Read a single issue
$ fj issue view [42]
copy
Comment on an issue
$ fj issue comment [42]
copy
Close an issue
$ fj issue close [42]
copy
Open a pull request from the current branch
$ fj pr create
copy
Check the CI status of a pull request
$ fj pr status
copy
Check out a pull request branch locally
$ fj pr checkout [7]
copy
Merge a pull request
$ fj pr merge [7]
copy
Show a published release
$ fj release view [v1.2.0]
copy

SYNOPSIS

fj [global options] command [subcommand] [options]

DESCRIPTION

fj is the command-line interface for Forgejo, a self-hosted Git forge (a community-driven fork of Gitea). It lets you interact with Forgejo instances without leaving the terminal: authenticate against one or more servers, manage repositories, and work with issues, pull requests, and releases.Commands are grouped into nouns such as auth, repo, issue, pr, and release, each with its own subcommands and flags. Once authenticated, fj reads the remote of the current Git repository to determine which instance and project to act on, so most commands can be run from inside a clone without extra arguments.

PARAMETERS

auth

Manage authentication. Use fj auth login to store credentials for an instance and fj auth logout to remove them.
repo
Work with repositories, including clone, create, and view.
issue
Create, list, view, and browse issues.
pr
Create, list, check out, and review pull requests.
release
List and manage repository releases.
whoami
Display the user account that is currently logged in.

CAVEATS

fj is under active development and its command surface still changes between releases. It targets Forgejo's API; some operations may not work against older Forgejo or Gitea servers.

SEE ALSO

tea(1), gh(1), glab(1), git(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid