HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

hut — A CLI tool for sourcehut. More information: <https://manned.org/hut>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandhutclimoretoolsourcehutfor

Problem

How to use the hut command: A CLI tool for sourcehut. More information: <https://manned.org/hut>.

Solution

hut — A CLI tool for sourcehut. More information: <https://manned.org/hut>.

Initialize hut's configuration file (this will prompt for an OAuth2 access token, which is required to use hut):
hut init


List Git/Mercurial repositories:
hut {{git|hg}} list


Create a public Git/Mercurial repository:
hut {{git|hg}} create {{name}}


List jobs on <https://builds.sr.ht>:
hut builds list


Show the status of a job:
hut builds show {{job_id}}


SSH into a job container:
hut ssh {{job_id}}

Code Snippets

Initialize `hut`'s configuration file (this will prompt for an OAuth2 access token, which is required to use `hut`)

hut init

List Git/Mercurial repositories

hut {{git|hg}} list

Create a public Git/Mercurial repository

hut {{git|hg}} create {{name}}

List jobs on <https://builds.sr.ht>

hut builds list

Show the status of a job

hut builds show {{job_id}}

Context

tldr-pages: common/hut

Revisions (0)

No revisions yet.