Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

commitizen-cli

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commitizen-cli

Command-line interface tool that helps enforce standardized commit message formats in Git repositories.

  • 2.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
increased by180%
Maintainers
1
Weekly downloads
 
Created
Source

Commitizen CLI

build license npm release

Command-line interface tool that helps enforce standardized commit message formats in Git repositories.

Features

  • Standardized Commit Messages: Enforce consistent commit message structure by guiding users through prompts and validating against specified formats.
  • Conventional Commit Support: Easily generate commit messages following popular commit conventions like Conventional Commits.
  • User-Friendly Interface: Interactive prompt-based interface for creating compliant commit messages without worrying about format details.
  • Integration with Git: Seamlessly commit changes directly from the CLI, ensuring compliance with the chosen commit message convention.
  • Emoji Support: Add emojis to your commit messages to express the nature of the changes or provide additional context.
  • Ticket Support: Set ticket reference to your commit messages to link directly the changes with your task.
  • Specific Pattern: Commit pattern is flexible and customisable to provide a better commit message convention.
  • Configuration Support: Get or Set specific configuration like pattern config.

Installation

To install commitizen-cli, use:

npm install -g commitizen-cli

or if you don't like to install it globaly, use:

npx commitizen-cli

Usage

Navigate to your Git repository.

Run the following command:

commitizen-cli

or use the minified command:

cocli

Configuration

Pattern is defined like this: ':type(:ticket): :commit'

  • :type: Type of commit (feature, bugfix, documentation, ...)
  • :ticket: Reference of ticket (if ticket is defined)
  • :commit: Commit message

Get or Set configuration directly to save specific config, use:

commitizen-cli config get PATTERN
commitizen-cli config set PATTERN='specific pattern'

or using the minified command:

cocli config get PATTERN
cocli config set PATTERN='specific pattern'

Update

To update to the latest version, use:

commitizen-cli update

or using the minified command:

cocli update

Follow the prompts to generate a standardized commit message.

The CLI will execute the Git command to commit your changes with the generated message.

Support

Commitizen CLI is an MIT-licensed open source project. It can grow thanks to the sponsors and support.

License

Commitizen CLI is MIT licensed.

Keywords

FAQs

Package last updated on 08 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc