@gitcafe/cli
v0.5.0
Published
cafe, the gitcafe CLI: device-flow auth, git credentials, repos, pull requests, issues, SSH/GPG keys
Readme
@gitcafe/cli
cafe is the command-line interface for GitCafe.
Install
Requires Bun 1.2 or newer. The CLI does not run under Node.
bun install -g @gitcafe/cli
# or run without installing:
bunx @gitcafe/cli --helpQuick start
cafe auth login # device-flow login (also sets up git credentials)
cafe repo create my-app # create a repository
cafe pr create # open a pull request from the current branch
cafe issue list # list issuesUpgrading from a CLI configured for api.gitcafe.dev? Copy that login to the
new canonical host and configure Git credentials for new git.cafe remotes:
cafe legacy migrateThe legacy login and existing gitcafe.dev remotes are preserved.
Pull request stacks
From a repository clone, preview stack publication and restacking before the write:
cafe stack submit --name my-change --dry-run
cafe stack list --state completed
cafe stack status --stack <number>
cafe stack restack --stack <number> --dry-run
cafe stack merge --stack <number> --dry-runStacks work with Git, jj, and Sapling. Run cafe stack --help and
cafe stack restack --help for submit, link, current and completed stack
history, restack, merge, operation resume, and cancellation options.
Persist a strict workspace default globally or for the current repository:
cafe config set stack.vcs jj --global
cafe config set stack.vcs sapling --repo-scopeAn explicit --vcs git|jj|sapling wins for one command. Otherwise Cafe uses
repository, host, then global configuration before auto-detection.
Run cafe --help for the full command tree, including SSH/GPG key management
under cafe signing and the Git credential helper.
