gitmoji-cli guides git commits with gitmoji emoji from the terminal. It offers interactive prompts, search, hooks, and local configuration for message format.
Overview
gitmoji-cli is a command-line client for picking gitmoji icons when writing Git commit messages. Instead of scrolling the gitmoji catalog by hand, you run an interactive flow that builds a title and body from prompts.
You can commit in client mode for a quick session or install a Git hook that starts prompts whenever you commit staged changes. Hook mode integrates better with other tooling; direct client mode is faster for one-off commits. Flags can prefill title, message, and scope fields.
Additional commands search gitmojis by keyword, print the full list, refresh the cached gitmoji data for offline use, and open a configuration wizard. Settings cover automatic git add before commit, emoji format, whether to ask for an extended message, and a custom gitmoji API URL.
Configuration loads from package.json, .gitmojirc.json files, parent directories, or global CLI preferences, falling back to defaults when nothing is set. Installation paths include npm and Homebrew.
Key features
- Interactive gitmoji commit prompts
- Git hook integration mode
- Search and list gitmoji catalog
- Offline gitmoji cache updates
- Configurable title, scope, and message flags
- Optional automatic git add
- Custom gitmoji API URL setting
Use cases
- Standardizing commit messages with gitmoji
- Speeding up emoji selection during commits
- Enforcing gitmoji via a repository commit hook
- Browsing gitmojis from the terminal
- Customizing commit prompt defaults per project