GitKraken CLI

gk ai changelog

Use AI and create a changelog between two commits or branches

Synopsis

Use this command to generate a changelog between two commits or branches in your repository. If no base or head is provided, it uses the current branch and the last commit as the base.

MODEL SELECTION

Pass –model to override the active provider's configured/default model for this invocation only. The flag does not change saved settings. Without it, the active provider's configured model is used; GitKraken AI falls back to its backend default when no global override is set.

Run “gk ai provider show” to inspect the active provider and configured model. For GitKraken-hosted AI, “gk ai models” lists available ids and marks the backend default with *. With the GitKraken provider, –model “” bypasses a saved global override for this invocation and uses the backend default.

gk ai changelog [flags]

Examples


  gk ai changelog
  gk ai changelog --model <MODEL_ID>
  gk ai changelog -p <REPO_PATH>
  gk ai changelog -p <REPO_PATH> --base <BASE_BRANCH_OR_COMMIT_SHA> --head <HEAD_BRANCH_OR_COMMIT_SHA>

Options

      --base string    (Optional) Base branch name or SHA commit
      --head string    (Optional) Branch name or SHA commit to compare with base branch
  -h, --help           help for changelog
      --model string   AI model id for this invocation (does not change saved settings)
  -p, --path string    (Optional) Repository path

Options inherited from parent commands

      --json             Emit machine-readable JSON on stdout (GK_OUTPUT=json sets it session-wide)
      --no-telemetry     Disable telemetry (OTel spans, Sentry) for this invocation
      --session string   (Optional) Isolate auth and cache under a named session

SEE ALSO

  • gk ai - Use AI in the CLI
Auto generated by spf13/cobra on 16-Sep-2026

© 2023 Axosoft, LLC DBA GitKraken