Skip to content

Commands

Every qwik command, in one place. For narrative guides, start at Quick Start.

Terminal window
qwik [COMMAND] [ARGS...]
qwik -r NAME [ARGS...] # run an alias
qwik -l # quick list
qwik -s QUERY # quick search
qwik # interactive picker

Global options: --version / -v, --help / -h, and --no-color (disable colored output for this invocation).

Terminal window
qwik add gs "git status"
qwik add gs "git status" --tag git --description "Repo status"
qwik add gs "git status" --group git
qwik add gs "git status" --force # overwrite existing
qwik add # interactive mode

Runs conflict detection on the name.

Terminal window
qwik rm gs
qwik rm gs --yes # skip confirmation
Terminal window
qwik rename gs gstat # preserves stats
Terminal window
qwik edit gs

Opens a TOML snippet (command, tag, group, description, enabled) in your $EDITOR. Save and quit to apply.

enable / disable — Toggle without deleting

Section titled “enable / disable — Toggle without deleting”
Terminal window
qwik disable gs # hides from shell hook
qwik enable gs # re-enables
Terminal window
qwik list # all aliases (or: qwik -l)
qwik list --tag git # filter by tag
qwik list --group git # filter by group
qwik list --search stat # filter by query
Terminal window
qwik show gs # full metadata
Terminal window
qwik search "git"
qwik search "git" --group git # restrict to a group
Terminal window
qwik run gs
qwik run gs --short # pass extra args
qwik -r gs --short # shortcut flag

Argument behavior (append mode, template mode, quoting) is documented in Alias Templates & Arguments.

Terminal window
qwik # bare invocation opens the picker
qwik pick # explicit

Keys: filter by typing, ↑/↓ navigate, Enter run, Ctrl+E edit, Ctrl+D delete, Esc cancel.

Terminal window
qwik tag gs git
qwik untag gs work
Terminal window
qwik group gs git # assign primary group
qwik ungroup gs # remove the group

One group per alias, many tags — see Organizing Aliases.

Terminal window
qwik export ~/aliases.toml # share / backup
qwik import ~/aliases.toml # merge
qwik import ~/aliases.toml --overwrite # replace the whole store (preview + confirm)

sync — Git-based machine-to-machine sync

Section titled “sync — Git-based machine-to-machine sync”
Terminal window
qwik sync init --remote <git-url>
qwik sync push [-m "msg"]
qwik sync pull [-y]
qwik sync status
Terminal window
qwik overlay add --url https://github.com/team/qwik-aliases --branch main
qwik overlay list
qwik overlay update
qwik overlay copy --name gs
qwik overlay remove

All of these show a trust-boundary preview before applying incoming commands — see Sharing & Syncing.

Terminal window
qwik stats # totals, most used, busiest group, time saved
qwik stats --top 5 # five most-used aliases
qwik stats --unused # aliases never run
qwik stats --unused --since 7d # not run in the last 7 days (7h, 2w…)
qwik stats --unused --prune # remove unused user aliases after confirmation
qwik stats --json # machine-readable output

Overlay aliases are read-only: --prune reports them and skips them.

suggest — Alias suggestions from shell history

Section titled “suggest — Alias suggestions from shell history”
Terminal window
qwik suggest # review candidates interactively
qwik suggest --dry-run # print candidates, create nothing
qwik suggest --min-count 5 --limit 3 # stricter filters
qwik suggest --since 30d # only recent history
qwik suggest --history-file ~/.bash_history # parse exactly this file
qwik suggest --json # machine-readable candidates

Frequent commands are ranked by estimated keystrokes saved. Secret-shaped commands are never suggested, and every candidate is conflict-checked against builtins, existing aliases, and $PATH binaries before it is offered — see Conflict Detection.

Terminal window
qwik undo --list # list available backups
qwik undo # diff + confirm, then restore the newest
qwik undo --diff # show what the newest restore would change
qwik undo --to 20260815-1418 # restore a specific (partial) stamp
qwik undo --yes # skip confirmation

The restore itself writes a backup of the pre-restore store, so a restore can be undone — see Store & Backups.

Terminal window
qwik init bash # print hook to stdout
qwik init bash --install # append to rc file with backup
Terminal window
qwik completion bash
qwik completion zsh --install
Terminal window
qwik doctor # shell, hook, store, conflicts, sync repo
qwik doctor --fix # apply safe repairs (with confirmations)
qwik doctor --fix --yes # skip fix confirmations
qwik doctor --json # machine-readable findings; always exits 0

--fix applies only the safe repairs: restoring the store from a backup, removing a stale lock file or crashed temp files, resetting the overlay repo, and installing the hook. Anything that could shadow a binary or change an alias command is never auto-fixed. Exit codes: 0 clean or all fixed, 1 unfixed errors remain, 2 a fix attempt failed. See Insights & Recovery.

Every qwik invocation defers importing prompt_toolkit (used only by the interactive pick screen) and caches shell-renderer discovery instead of re-scanning installed-package metadata on each call — so a qwik call your shell hook makes on every prompt, like qwik init, isn’t paying for either.