For AI agents: the complete documentation index is available at https://docs.hod.sh/llms.txt, the full documentation bundle is available at https://docs.hod.sh/llms-full.txt, and this page is available as Markdown at https://docs.hod.sh/reference/cli.md.

hod command reference

The same text as hod <command> --help. just cli-docs generates this page from the command tree: don't edit it by hand.

hod

Hod CI: validate, plan and run pipelines

Usage: hod <COMMAND>

Pipelines, on this machine:
  validate    Compile a pipeline and report problems; -o json prints the compiled pipeline (hod.v1.Pipeline)
  plan        Show what a pipeline would do for an event, without running it
  schema      Print a file's JSON Schema, for editors to complete and check it
  local       Run a pipeline on this machine, in Docker containers: `hod local run`
  component   Write, test and publish step components, and lock the published ones a pipeline uses (hod.lock)

Runs on a server:
  login       Log in to a server through the browser and save a personal token, so other commands need neither --server nor HOD_TOKEN
  logout      Forget a saved server and revoke its personal tokens
  token       Personal tokens: create one through the browser, list and revoke them
  ui          Open the server's web UI in a browser, already signed in
  run         List, follow, trigger, rerun and cancel a server's runs
  view        Show a run's jobs and, for failed ones, the failing step (hod run view)
  watch       Follow a run until it ends, then exit with its result (hod run watch)
  logs        Print a run's job logs; -f follows them until the run ends (hod run logs)
  schedule    Run a project's pipeline on a cron: create, list, pause and run schedules
  secret      Store secrets on a server for pipelines to use: set, list and delete them; values are never shown

Server admin:
  runner      Run jobs for a server, and manage runner registration tokens
  github      Connect a Hod server to GitHub: `hod github setup` registers its GitHub App
  webhook     See the webhook deliveries a server received

Other:
  completion  Print the line that turns on shell completion, with run numbers and job names from the server
  version     Print the version
  help        Print this message or the help of the given command

Options:
  -h, --help     Print help
  -V, --version  Print version

Pipelines, on this machine

hod validate

Compile a pipeline and report problems; -o json prints the compiled pipeline (hod.v1.Pipeline)

Usage: hod validate [OPTIONS]

Options:
  -f, --file <FILE>
          Pipeline file [default: .hod/pipeline.yaml in the current directory or the repository root]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hod validate
  hod validate -o json | jq '.jobs[].name'

hod plan

Show what a pipeline would do for an event, without running it

Usage: hod plan [OPTIONS]

Options:
  -f, --file <FILE>
          Pipeline file [default: .hod/pipeline.yaml in the current directory or the repository root]

      --expand
          Also show what cache presets and templates expand to: a template's inputs, and which of its steps came from the pipeline

      --event-file <FILE>
          JSON file with a hod.v1.Event; overrides the event flags below

      --event <EVENT>
          Event type

          [default: push]
          [possible values: push, pull_request, tag, manual, schedule]

      --ref <REF>
          Branch or tag name, or a full ref (manual: a tag needs refs/tags/) [default: the current git branch]

      --base <BASE>
          pull_request: the base branch

          [default: main]

      --changed <FILES>
          Comma-separated changed files [default: none for push and tag; for pull_request, `git diff --name-only BASE...HEAD`]

      --from-fork
          pull_request: the head branch is in a fork

      --schedule <NAME>
          schedule: the schedule's name (event.name)

  -h, --help
          Print help

Examples:
  hod plan                                     a push of this branch
  hod plan --event pull_request --base main    a pull request into main
  hod plan --event tag --ref v1.2.0 --expand   a tag, with cache presets and templates expanded

hod schema

Print a file's JSON Schema, for editors to complete and check it

Usage: hod schema <FILE>

Arguments:
  <FILE>
          Which file's schema

          Possible values:
          - pipeline: .hod/pipeline.yaml
          - jobs:     A job group's file, under .hod/jobs/

Options:
  -h, --help
          Print help (see a summary with '-h')

Examples:
  hod schema pipeline > .hod/pipeline.schema.json
      then start .hod/pipeline.yaml with
      # yaml-language-server: $schema=pipeline.schema.json
  hod schema jobs > .hod/jobs.schema.json
      for the job group files under .hod/jobs/

hod local

Run a pipeline on this machine, in Docker containers: `hod local run`

Usage: hod local <COMMAND>

Commands:
  run   Run a pipeline on this machine, in Docker containers
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

hod local run

Run a pipeline on this machine, in Docker containers

Usage: hod local run [OPTIONS]

Options:
  -f, --file <FILE>
          Pipeline file [default: .hod/pipeline.yaml in the current directory or the repository root]

      --event-file <FILE>
          JSON file with a hod.v1.Event; overrides the event flags below

      --event <EVENT>
          Event type

          [default: push]
          [possible values: push, pull_request, tag, manual, schedule]

      --ref <REF>
          Branch or tag name, or a full ref (manual: a tag needs refs/tags/) [default: the current git branch]

      --base <BASE>
          pull_request: the base branch

          [default: main]

      --changed <FILES>
          Comma-separated changed files [default: none for push and tag; for pull_request, `git diff --name-only BASE...HEAD`]

      --from-fork
          pull_request: the head branch is in a fork

      --schedule <NAME>
          schedule: the schedule's name (event.name)

      --job <NAME>
          Run only this job and the jobs it needs; repeat for several

  -j, --parallel <N>
          How many jobs run at once [default: the number of CPUs, up to 4]

      --no-cache
          Run every step: don't use or fill the step cache

      --keep-workspaces
          Keep job workspaces in the run directory, for debugging

      --files <DIR>
          Copy each job's `files:` into DIR/<job>/, and its `outputs:` into DIR/<job>.outputs.json, when the run ends

      --default-image <IMAGE>
          Image for jobs without `image:` (that don't target macOS or Windows)

          [default: debian:12-slim]

      --network <NAME>
          Docker network for job containers, e.g. `host` when containers on the default bridge network can't reach the internet

      --dind-image <IMAGE>
          Image of the Docker daemon that `docker: true` jobs get

          [env: HOD_DIND_IMAGE]
          [default: docker:29.9.2-dind]

      --secret <NAME=SOURCE>
          Where a secret the pipeline grants comes from: NAME=env:VAR, NAME=file:PATH or NAME=cmd:COMMAND; repeat for several. A granted secret without one is asked for on a terminal. Values must be 8 bytes or more, to be masked in the logs

      --identity <NAME=SOURCE>
          Where an OIDC token a step is granted with `identity:` comes from: NAME=cmd:COMMAND, run again before the token expires, or NAME=file:PATH, read again; NAME is the grant's name, `token` by default. Nothing signs tokens locally, so every grant needs one

      --service-logs
          Print services' output as it comes. Without it, a service's last lines are printed when its job fails; all of it is in the run's logs

  -h, --help
          Print help

Examples:
  hod local run                   every job a push of this branch would run
  hod local run --job test        test and the jobs it needs
  hod local run --network host    when containers can't reach the internet

hod component

Write, test and publish step components, and lock the published ones a pipeline uses (hod.lock)

Usage: hod component <COMMAND>

Commands:
  init     Write a new component: a component.yaml with an example, and an entrypoint script
  test     Run a component's examples (`examples:` in its component.yaml) on this machine, and check the outputs and exports they expect
  publish  Publish a component to an OCI registry, signed with a P-256 key (design/components.md, section 8)
  update   Resolve the published components the pipeline uses and write hod.lock: the highest version in each range that is signed and, for third-party components, 3 days old
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

hod component init

Write a new component: a component.yaml with an example, and an entrypoint script

Usage: hod component init [OPTIONS] <DIR>

Arguments:
  <DIR>
          The component's directory, in the repository

Options:
      --runs <RUNS>
          How it runs

          Possible values:
          - job:       Inside the job's container, so it can change the job (setup, auth)
          - container: In a container of its own, out of reach of the job's other steps

          [default: job]

  -h, --help
          Print help (see a summary with '-h')

Examples:
  hod component init .hod/components/setup-tool
  hod component init .hod/components/notify --runs container

hod component test

Run a component's examples (`examples:` in its component.yaml) on this machine, and check the outputs and exports they expect

Usage: hod component test [OPTIONS] [DIR]

Arguments:
  [DIR]
          The component's directory, in the repository

          [default: .]

Options:
      --image <IMAGE>
          The image the example jobs run in

          [default: debian:12-slim]

      --network <NAME>
          Docker network for the containers, e.g. `host`

      --secret <NAME=SOURCE>
          Where a secret the component needs comes from: NAME=env:VAR, NAME=file:PATH or NAME=cmd:COMMAND; repeat for several

  -h, --help
          Print help

Examples:
  hod component test .hod/components/setup-tool
  hod component test .hod/components/notify --secret SLACK_TOKEN=env:SLACK_TOKEN

hod component publish

Publish a component to an OCI registry, signed with a P-256 key (design/components.md, section 8)

Usage: hod component publish [OPTIONS] --to <REPOSITORY:VERSION> [DIR]

Arguments:
  [DIR]
          The component's directory, in the repository

          [default: .]

Options:
      --to <REPOSITORY:VERSION>
          Where to publish: a repository with its registry host, and an exact semver version

      --key <FILE>
          A P-256 private key in PEM to sign with

      --no-sign
          Publish without a signature (for cosign sign, or a source policy allows unsigned)

  -h, --help
          Print help

Examples:
  hod component publish components/setup-go --to ghcr.io/acme/components/setup-go:1.2.0 --key signing.pem
  hod component publish . --to localhost:5000/tools/notify:0.1.0 --no-sign

The key is a P-256 key in PEM (openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256).
For a keyless signature, publish with --no-sign from GitHub or GitLab CI and run
`cosign sign` (v3) on the printed digest. Credentials come from ~/.docker/config.json
(without credential helpers), or HOD_REGISTRY_AUTH=user:token for the --to registry.

hod component update

Resolve the published components the pipeline uses and write hod.lock: the highest version in each range that is signed and, for third-party components, 3 days old

Usage: hod component update [OPTIONS] [REFS]...

Arguments:
  [REFS]...
          Only these components (as `uses:` writes them); default: all

Options:
  -f, --file <FILE>
          Pipeline file [default: .hod/pipeline.yaml in the current directory or the repository root]

      --signer <SIGNER>
          Who may sign the third-party components: key:<PEM file>, keyless:<issuer>=<identity glob>, or unsigned; repeat for several

      --now
          Take versions younger than the cooldown, for an urgent fix

      --reason <TEXT>
          Why the cooldown was skipped; recorded in hod.lock

      --verify
          Change nothing; fail if hod.lock isn't what update would write

  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod component update
  hod component update hod/setup-go@v1
  hod component update ghcr.io/acme/deploy@v3 --signer keyless:https://token.actions.githubusercontent.com=https://github.com/acme/*/.github/workflows/release.yml@refs/tags/*
  hod component update --now --reason "CVE-2026-1234 fix"
  hod component update --verify      in CI: fail if hod.lock isn't current

A locked version whose tag now points at another digest is refused: a moved
tag is a probable compromise, not an update.

Runs on a server

hod login

Log in to a server through the browser and save a personal token, so other commands need neither --server nor HOD_TOKEN

Usage: hod login [OPTIONS] [URL]

Arguments:
  [URL]
          The server's URL [default: --server or HOD_SERVER]

Options:
      --with-token
          Read a token from stdin instead of getting one through the browser: a personal token (hod_pat_) or the admin token

      --web
          Get a token through the browser even without a terminal

      --role <ROLE>
          The most the token may do [default: the most your org role allows]

          Possible values:
          - read:   Read runs, logs and files
          - run:    Also trigger, cancel and rerun runs
          - manage: Also change project settings, secrets and schedules
          - owner:  Also the org's secrets, runners, members and settings

      --days <DAYS>
          How many days it lasts [default: 30, at most what the org allows]

      --no-open
          Print the address to open instead of opening a browser

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod login https://ci.example.com                     approve a token in the browser
  hod login https://ci.example.com --org beta --role read
  echo "$TOKEN" | hod login https://ci.example.com --with-token

hod logout

Forget a saved server and revoke its personal tokens

Usage: hod logout [URL]

Arguments:
  [URL]
          The server to forget [default: the current one]

Options:
  -h, --help
          Print help

hod token

Personal tokens: create one through the browser, list and revoke them

Usage: hod token [OPTIONS] <COMMAND>

Commands:
  create  Get a personal token through the browser and print it, once
  list    List your personal tokens in the org, without their secrets
  revoke  Revoke a personal token: it stops working at once
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod token create

Get a personal token through the browser and print it, once

Usage: hod token create [OPTIONS]

Options:
      --name <NAME>
          What it is for [default: hod token on <this machine>]

      --role <ROLE>
          The most the token may do [default: the most your org role allows]

          Possible values:
          - read:   Read runs, logs and files
          - run:    Also trigger, cancel and rerun runs
          - manage: Also change project settings, secrets and schedules
          - owner:  Also the org's secrets, runners, members and settings

      --days <DAYS>
          How many days it lasts [default: 30, at most what the org allows]

      --no-open
          Print the address to open instead of opening a browser

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod token create --role run --days 7 > token.txt
  hod token create --name deploy-bot --role read

hod token list

List your personal tokens in the org, without their secrets

Usage: hod token list [OPTIONS]

Options:
      --all
          Everyone's tokens in the org (owners only)

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod token revoke

Revoke a personal token: it stops working at once

Usage: hod token revoke [OPTIONS] <ID>

Arguments:
  <ID>
          The token's ID, from `hod token list`

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod ui

Open the server's web UI in a browser, already signed in

Usage: hod ui [OPTIONS]

Options:
      --no-open
          Print the sign-in link instead of opening a browser: it works once, within a minute

  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod run

List, follow, trigger, rerun and cancel a server's runs

Usage: hod run [OPTIONS] <COMMAND>

Commands:
  list     List recent runs: this checkout's project, or with --all the org's
  view     Show a run's jobs and, for failed ones, the failing step
  watch    Follow a run until it ends, then exit with its result
  logs     Print a run's job logs; -f follows them until the run ends
  trigger  Start a run: in a checkout, of HEAD on this branch
  rerun    Rerun an ended run's failed jobs, or all of them, as its next attempt
  cancel   Cancel a run
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

To run the pipeline on this machine instead: hod local run

hod run list

List recent runs: this checkout's project, or with --all the org's

Usage: hod run list [OPTIONS]

Options:
      --project <PROJECT>
          Only this project's runs [default: this checkout's project]

      --all
          The whole org's runs, not only this checkout's project

      --branch <BRANCH>
          Only runs for this branch, or a full ref such as refs/tags/v1.0

      --limit <LIMIT>
          How many runs to show, newest first

          [default: 20]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod run list                         this project's runs
  hod run list --all --branch main     the org's runs on main
  hod run list -o json | jq '.runs[0]'

hod run view

Show a run's jobs and, for failed ones, the failing step

Usage: hod run view [OPTIONS] [PROJECT#NUMBER]

Arguments:
  [PROJECT#NUMBER]
          The run, as <project>#<number>, for example hod#12 [default: the newest run on this checkout's branch; outside a checkout, a picker]

Options:
  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod view                 the newest run on this branch
  hod view hod#12 -o json

hod run watch

Follow a run until it ends, then exit with its result

Usage: hod run watch [OPTIONS] [PROJECT#NUMBER]

Arguments:
  [PROJECT#NUMBER]
          The run, as <project>#<number>, for example hod#12 [default: the run of HEAD on this checkout's branch, waiting up to 30s for it]

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  git push && hod watch && ./deploy   follow the push's run; deploy if it passed
  hod watch hod#12                    follow run 12 of project hod

hod run logs

Print a run's job logs; -f follows them until the run ends

Usage: hod run logs [OPTIONS] [PROJECT#NUMBER]

Arguments:
  [PROJECT#NUMBER]
          The run, as <project>#<number>, for example hod#12 [default: the newest run on this checkout's branch; outside a checkout, a picker]

Options:
      --job <JOB>
          Only this job's log

  -f, --follow
          Keep following until the run ends

      --service <NAME>
          A service's log instead of the job's, for each job that has it

  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod logs --job test      the newest run on this branch, one job
  hod logs hod#12 -f       follow a run until it ends

hod run trigger

Start a run: in a checkout, of HEAD on this branch

Usage: hod run trigger [OPTIONS]

Options:
      --repo <REPO>
          Repository URL, for example https://github.com/acme/app [default: this checkout's origin]

      --sha <SHA>
          Full commit SHA to build: the ref's current tip, or the server refuses the run [default: this checkout's HEAD; with --repo, or a --ref other than this checkout's branch, the ref's tip]

      --ref <REF>
          Branch or tag the run is for (main, refs/tags/v1.0) [default: this checkout's branch; with --repo, the repository's default branch]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod run trigger && hod watch
  hod run trigger --repo https://github.com/acme/app --ref main

hod run rerun

Rerun an ended run's failed jobs, or all of them, as its next attempt

Usage: hod run rerun [OPTIONS] [PROJECT#NUMBER]

Arguments:
  [PROJECT#NUMBER]
          The run, as <project>#<number>, for example hod#12 [default: the newest run on this checkout's branch; outside a checkout, a picker]

Options:
      --all
          Rerun every job, not only the ones that didn't succeed and the jobs that need them

  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod run cancel

Cancel a run

Usage: hod run cancel [OPTIONS] [PROJECT#NUMBER]

Arguments:
  [PROJECT#NUMBER]
          The run, as <project>#<number>, for example hod#12 [default: the newest run on this checkout's branch; outside a checkout, a picker]

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod view

Show a run's jobs and, for failed ones, the failing step (hod run view)

Usage: hod view [OPTIONS] [PROJECT#NUMBER]

Arguments:
  [PROJECT#NUMBER]
          The run, as <project>#<number>, for example hod#12 [default: the newest run on this checkout's branch; outside a checkout, a picker]

Options:
  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod view                 the newest run on this branch
  hod view hod#12 -o json

hod watch

Follow a run until it ends, then exit with its result (hod run watch)

Usage: hod watch [OPTIONS] [PROJECT#NUMBER]

Arguments:
  [PROJECT#NUMBER]
          The run, as <project>#<number>, for example hod#12 [default: the run of HEAD on this checkout's branch, waiting up to 30s for it]

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  git push && hod watch && ./deploy   follow the push's run; deploy if it passed
  hod watch hod#12                    follow run 12 of project hod

hod logs

Print a run's job logs; -f follows them until the run ends (hod run logs)

Usage: hod logs [OPTIONS] [PROJECT#NUMBER]

Arguments:
  [PROJECT#NUMBER]
          The run, as <project>#<number>, for example hod#12 [default: the newest run on this checkout's branch; outside a checkout, a picker]

Options:
      --job <JOB>
          Only this job's log

  -f, --follow
          Keep following until the run ends

      --service <NAME>
          A service's log instead of the job's, for each job that has it

  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod logs --job test      the newest run on this branch, one job
  hod logs hod#12 -f       follow a run until it ends

hod schedule

Run a project's pipeline on a cron: create, list, pause and run schedules

Usage: hod schedule [OPTIONS] <COMMAND>

Commands:
  list     List schedules: when each fires next and what its last fire did
  view     Show one schedule
  create   Create a schedule; every pipeline runs on its project's schedules
  edit     Change a schedule; flags not given stay as they are
  delete   Delete a schedule; its runs stay
  pause    Stop a schedule firing until it is resumed
  resume   Resume a paused schedule from its next slot; missed slots don't run
  run      Run a schedule now, paused or not
  history  A schedule's fires, newest first: skipped and failed slots too
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod schedule list

List schedules: when each fires next and what its last fire did

Usage: hod schedule list [OPTIONS]

Options:
      --project <PROJECT>
          Only this project's schedules [default: this checkout's project]

      --all
          The whole org's schedules, not only this checkout's project

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod schedule view

Show one schedule

Usage: hod schedule view [OPTIONS] <NAME>

Arguments:
  <NAME>
          The schedule's name

Options:
      --project <PROJECT>
          The project [default: this checkout's project]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod schedule create

Create a schedule; every pipeline runs on its project's schedules

Usage: hod schedule create [OPTIONS] --cron <CRON> <NAME>

Arguments:
  <NAME>
          Its name: event.name and HOD_SCHEDULE in its runs

Options:
      --cron <CRON>
          When it fires: five fields (minute hour day-of-month month day-of-week), H for a hashed value, or @hourly, @daily, @weekly, @monthly, @yearly

      --timezone <TIMEZONE>
          The IANA time zone the cron is read in

          [default: UTC]

      --branch <BRANCH>
          The branch it runs [default: the repository's default branch]

      --overlap <OVERLAP>
          What a run does while the previous one still runs

          [default: skip]

      --catch-up <CATCH_UP>
          How late a slot may still fire after the server was down: 1m to 7d

          [default: 1h]

      --only-if-changed
          Skip a slot when the branch hasn't moved since the last run

      --project <PROJECT>
          The project [default: this checkout's project]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Examples:
  hod schedule create nightly --cron '0 3 * * *'
  hod schedule create nightly --cron 'H 3 * * 1-5' --timezone Europe/Berlin
  hod schedule create release-check --cron @daily --branch release/1.x --only-if-changed

H in a field is one value hashed from the schedule, the same every time:
'H 3 * * *' fires at one fixed minute past 3, so schedules spread out.

hod schedule edit

Change a schedule; flags not given stay as they are

Usage: hod schedule edit [OPTIONS] <NAME>

Arguments:
  <NAME>
          The schedule's name

Options:
      --cron <CRON>
          When it fires

      --timezone <TIMEZONE>
          The IANA time zone

      --branch <BRANCH>
          The branch; "" for the repository's default branch

      --overlap <OVERLAP>
          What a run does while the previous one still runs

      --catch-up <CATCH_UP>
          How late a slot may still fire

      --only-if-changed <BOOL>
          Skip a slot when the branch hasn't moved

          [possible values: true, false]

      --project <PROJECT>
          The project [default: this checkout's project]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod schedule delete

Delete a schedule; its runs stay

Usage: hod schedule delete [OPTIONS] <NAME>

Arguments:
  <NAME>
          The schedule's name

Options:
      --project <PROJECT>
          The project [default: this checkout's project]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod schedule pause

Stop a schedule firing until it is resumed

Usage: hod schedule pause [OPTIONS] <NAME>

Arguments:
  <NAME>
          The schedule's name

Options:
      --project <PROJECT>
          The project [default: this checkout's project]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod schedule resume

Resume a paused schedule from its next slot; missed slots don't run

Usage: hod schedule resume [OPTIONS] <NAME>

Arguments:
  <NAME>
          The schedule's name

Options:
      --project <PROJECT>
          The project [default: this checkout's project]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod schedule run

Run a schedule now, paused or not

Usage: hod schedule run [OPTIONS] <NAME>

Arguments:
  <NAME>
          The schedule's name

Options:
      --project <PROJECT>
          The project [default: this checkout's project]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod schedule history

A schedule's fires, newest first: skipped and failed slots too

Usage: hod schedule history [OPTIONS] <NAME>

Arguments:
  <NAME>
          The schedule's name

Options:
      --limit <LIMIT>
          How many fires to show, newest first

          [default: 20]

      --project <PROJECT>
          The project [default: this checkout's project]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod secret

Store secrets on a server for pipelines to use: set, list and delete them; values are never shown

Usage: hod secret [OPTIONS] <COMMAND>

Commands:
  list    List secrets, without values: what this checkout's project sees, or the whole org's
  set     Store a secret, or replace its value
  edit    Change a secret's rule, keeping its value
  delete  Delete a secret
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod secret list

List secrets, without values: what this checkout's project sees, or the whole org's

Usage: hod secret list [OPTIONS]

Options:
      --project <PROJECT>
          What this project's runs see: its secrets and the org's [default: this checkout's project]

      --all
          The whole org's secrets

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod secret set

Store a secret, or replace its value

Usage: hod secret set [OPTIONS] <NAME>

Arguments:
  <NAME>
          The secret's name, as pipelines grant it: secrets: [NAME]

Options:
      --file <PATH>
          Read the value from this file, as it is

      --rule <CEL>
          Release it only to runs this CEL rule holds for, such as 'event.is_default_branch'; "" for none [default: the current rule]

      --component <NAME>
          Release it only to steps running this published component (such as hod/deploy), with no env: or dir: of their own; repeat for several [default: the current ones]

      --no-components
          Release it to any step granted it again

      --with <NAME=VALUE>
          With --component: steps get it only when their component's input NAME is exactly VALUE (such as registry=https://npm.acme.internal/); repeat for more inputs, or for more values of one. A component's destination inputs with no pin take only their default [default: the current pins, or none if --component names other components]

      --no-with
          Remove the input pins

      --project <PROJECT>
          The project [default: this checkout's project]

      --org-wide
          An org-wide secret, for every project that has none of the same name

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

The value is read from --file, else from stdin, else asked for:
  hod secret set NPM_TOKEN < token.txt
  gh auth token | hod secret set GH_TOKEN --org-wide
  hod secret set DEPLOY_KEY --file deploy_key --rule 'event.is_default_branch'

From stdin, one trailing newline is dropped; a --file is taken as it is.
A rule is CEL over the run's event; the secret is released only to runs it
holds for.

hod secret edit

Change a secret's rule, keeping its value

Usage: hod secret edit [OPTIONS] <--rule <CEL>|--no-rule> <NAME>

Arguments:
  <NAME>
          The secret's name

Options:
      --rule <CEL>
          The new rule: CEL over the run's event

      --no-rule
          Remove the rule: release it to every run of its projects

      --project <PROJECT>
          The project [default: this checkout's project]

      --org-wide
          An org-wide secret, for every project that has none of the same name

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod secret delete

Delete a secret

Usage: hod secret delete [OPTIONS] <NAME>

Arguments:
  <NAME>
          The secret's name, such as NPM_TOKEN

Options:
      --project <PROJECT>
          The project [default: this checkout's project]

      --org-wide
          An org-wide secret, for every project that has none of the same name

  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Server admin

hod runner

Run jobs for a server, and manage runner registration tokens

Usage: hod runner [OPTIONS] <COMMAND>

Commands:
  start    Run jobs for a Hod server with hod-runner (needs HOD_RUNNER_TOKEN to register)
  install  Install the server's own hod-runner for this machine, for `hod runner start`
  tokens   Create, list and revoke runner registration tokens
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod runner start

Run jobs for a Hod server with hod-runner (needs HOD_RUNNER_TOKEN to register)

Usage: hod runner start [OPTIONS] [ARGS]...

Arguments:
  [ARGS]...
          Arguments for `hod-runner start`, such as --labels, --slots and --ephemeral

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Arguments after `start` go to `hod-runner start`; `hod runner start --help` lists them. Without hod-runner on PATH, this installs the server's own build first: it asks on a terminal, and elsewhere needs `hod runner install` first.

Examples:
  HOD_RUNNER_TOKEN=hod_reg_… hod runner start --server https://ci.example.com
  hod runner start --labels linux,amd64,gpu --slots 2
  hod runner start --ephemeral          take one job, then exit

hod runner install

Install the server's own hod-runner for this machine, for `hod runner start`

Usage: hod runner install [OPTIONS]

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod runner tokens

Create, list and revoke runner registration tokens

Usage: hod runner tokens [OPTIONS] <COMMAND>

Commands:
  create  Create a registration token and print its secret, once
  list    List registration tokens, without their secrets
  revoke  Delete a registration token; runners that used it keep running
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod runner tokens create

Create a registration token and print its secret, once

Usage: hod runner tokens create [OPTIONS] --trust <TRUST>

Options:
      --pool <POOL>
          The pool runners join with it

          [default: default]

      --trust <TRUST>
          Which runs its runners take: protected (the default branch and tags) or unprotected (pull requests, other branches). Keep the two kinds on separate machines

          [possible values: protected, unprotected]

      --one-time
          It registers one runner only

      --expires-in <EXPIRES_IN>
          How long it works, such as 30m, 12h or 7d [default: forever]

  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod runner tokens list

List registration tokens, without their secrets

Usage: hod runner tokens list [OPTIONS]

Options:
  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod runner tokens revoke

Delete a registration token; runners that used it keep running

Usage: hod runner tokens revoke [OPTIONS] <ID>

Arguments:
  <ID>
          The token's ID, from `hod runner tokens list`

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod github

Connect a Hod server to GitHub: `hod github setup` registers its GitHub App

Usage: hod github [OPTIONS] <COMMAND>

Commands:
  setup  Register a GitHub App for a Hod server (GitHub's manifest flow) and write its credentials for the server's config. --server is the server's public URL, which GitHub sends webhooks to
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod github setup

Register a GitHub App for a Hod server (GitHub's manifest flow) and write its credentials for the server's config. --server is the server's public URL, which GitHub sends webhooks to

Usage: hod github setup [OPTIONS]

Options:
      --github-org <ORG>
          Register the App under this GitHub organization [default: your personal account]

      --name <NAME>
          The App's name, unique on GitHub (you can change it before creating the App) [default: Hod and the server's host]

      --webhook-url <URL>
          Send webhooks here instead of to the server, such as a relay that forwards them to a server GitHub can't reach

      --github-url <GITHUB_URL>
          GitHub's URL (a GitHub Enterprise Server's, untested)

          [default: https://github.com]

      --out <DIR>
          Where to write github-app.pem and github-app.env

          [default: .]

      --no-browser
          Don't open a browser; print the URL to open instead

  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod webhook

See the webhook deliveries a server received

Usage: hod webhook [OPTIONS] <COMMAND>

Commands:
  deliveries  List the webhook deliveries the server received, and what each did
  help        Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

hod webhook deliveries

List the webhook deliveries the server received, and what each did

Usage: hod webhook deliveries [OPTIONS]

Options:
      --limit <LIMIT>
          How many deliveries to show, newest first

          [default: 20]

  -o, --output <OUTPUT>
          Output format

          Possible values:
          - table: Columns for people
          - json:  The API's JSON
          - yaml:  The API's fields as YAML

          [default: table]

  -h, --help
          Print help (see a summary with '-h')

Server options:
      --server <URL>
          Hod server URL

          [env: HOD_SERVER]

      --org <ORG>
          Org [default: the server's org]

          [env: HOD_ORG]

      --ca-cert <FILE>
          A CA certificate (PEM) to trust for the server, besides the system's

          [env: HOD_CA_CERT]

      --insecure-http
          Allow plain http to a server on another machine. Tokens then cross the network in the clear: only for networks you trust

          [env: HOD_INSECURE_HTTP]

Other

hod completion

Print the line that turns on shell completion, with run numbers and job names from the server

Usage: hod completion <SHELL>

Arguments:
  <SHELL>
          The shell

          [possible values: bash, zsh, fish, elvish, powershell]

Options:
  -h, --help
          Print help

Examples:
  source <(hod completion bash)    try it in this shell
  hod completion zsh >> ~/.zshrc   for every new shell

hod version

Print the version

Usage: hod version

Options:
  -h, --help
          Print help