Alias¶
Save a long jira invocation under a short name. Aliases live in the
profile config (~/.config/jira-cli/config.toml under [aliases]),
expand on every jira call, and apply across every profile.
jira alias set inbox "issue list --assignee me --status 'To Do,In Progress'"
jira inbox # expands to the issue list call above
set¶
Create or replace an alias. The expansion is the rest of a jira
command line — quote any embedded arguments so the parent shell passes
them through verbatim.
jira alias set inbox "issue list --assignee me --status 'To Do,In Progress'"
jira alias set my-bugs "search jql 'project = <PROJECT_KEY> AND type = Bug AND assignee = currentUser()'"
Setting an alias with an existing name overwrites the previous
expansion without a confirmation prompt — there's no --force here.
list¶
Print every alias the active config defines.
The Human formatter collapses the alias map to a {...} placeholder;
use --output=json to see the actual names and expansions.
An empty alias table renders as INF ℹ️ value={} (Human) or
data: {} (JSON).
delete¶
Drop a single alias by name.
import¶
Load aliases from a YAML file. Each top-level key is the alias name; the value is the expansion string.
# aliases.yaml
inbox: issue list --assignee me --status 'To Do,In Progress'
my-bugs: search jql 'project = <PROJECT_KEY> AND type = Bug AND assignee = currentUser()'
standup: search saved standup-jql
jira alias import aliases.yaml
jira alias import aliases.yaml --clobber # overwrite existing names
cat aliases.yaml | jira alias import - # read from stdin
Without --clobber, the import skips any name that already exists and
reports each conflict under data.skipped as a map of name → reason
(currently always "name already taken"). With --clobber, conflicts
are overwritten and data.skipped comes back empty.
Fresh import:
Re-import without --clobber (every name already taken):
See also¶
- Configuration › Aliases — the
[aliases]TOML key the alias commands read and write. - Search › search saved — for queries you reuse repeatedly, a saved JQL file beats an alias because it lives outside the shell-quoting layer.