glab templates accept file paths with --template
Introduced 2026-10-20 · score 0.95
HOW TO USE IT
When creating an issue or merge request with a description template, pass its file path to `--template`.
glab issue create -t "<title>" --template "<repository-file-path>"glab mr create -t "<title>" --template "<repository-file-path>"WHY THIS HELPS
Render output using a template stored in a repository file.
REQUIREMENTS AND LIMITATIONS
- Version: v1.124.0
- --template <path> (required): Pre-populates the description. An absolute path or a value containing a path separator is read as a file path.
- -t, --title <title>: Sets the issue title.
- -t, --title <title>: Sets the merge request title.
- Prerequisite: For a path relative to the repository, run the command from that local repository; the docs specify that templates are looked up in its template directory or read as a file path.
FIRST-PARTY EVIDENCE
- https://gitlab.com/gitlab-org/cli/-/releases/v1.124.0
- https://docs.gitlab.com/cli/issue/create/
- https://docs.gitlab.com/cli/mr/create/
Check the installed version and the source before using it. Entry JSON