1.11.0 • Published 2 months ago

czg v1.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago
  • 🤖 OpenAI Support. Let the AI generate your git commit message description.
  • ⚡️ Lightweight : Zero Dependencies (1.31MB)
  • 🤗 Simpler and Faster : No plugin, No adapter, No extra steps, You can use npx | npm script | global install... quick start CLI in your any project
  • 😎 Highly Customizable : Internally contains the core of cz-git. Extend all the features of cz-git. Same behavior, Same configuration loader... You can customize the commit CLI according to your need

demo

Quick start

  1. Now try it out, use npx czg in your any projects
  2. And then, let's try to simply configure it. Create a .czrc file in the project root directory
{
  "scopes": [
    "hello",
    "world"
  ]
}

Note More information about configure file and options. See → Config

Features and Help

$ czg --help
NAME:
    czg - Interactive Commitizen CLI that generate standardized git commit message

WEBSITE:
    https://cz-git.qbb.sh/cli/
    https://github.com/Zhengqbbb/cz-git

SYNOPSIS:
    czg [subcommand...] [options...] [git-commit-options...]

SUBCOMMAND:
    ai               Turn on OpenAI generate subject mode
    break            Turn on appends a ! after the type/scope
    emoji            Turn on output message with emoji mode
    checkbox         Turn on scope checkbox mode
    gpg              Turn on use GPG sign commit message

OPTIONS:
    :, --alias=      Directly submit the defined commit message
    --config=        Specify the configuration file to use

  OpenAI:
    -N=,--ai-num=    Sets AI return multiple subjects and Turn on choose mode
    -M=,--ai-model=  Sets AI model in this session
                     [default: "gpt-4o-mini"]
                     [example: "gpt-3.5-turbo", "gpt-4o", "gpt-4o-mini" ...]
    --api-key=       Setup request OpenAI API secret key to local (.config/.czrc)
    --api-model=     Setup request OpenAI API model      to local (.config/.czrc)
    --api-proxy=     Setup request OpenAI API proxy      to local (.config/.czrc)
    --api-endpoint=  Setup request OpenAI API endpoint   to local (.config/.czrc)
                     [default: "https://api.openai.com/v1"]

FLAG:
    -r, --retry      Directly retry submit by the last message
    --no-ai          Turn off AI prompt mode in this session
    --unset-proxy    Unset request API proxy on local configure
    -h, --help       Show help
    -v, --version    Show version

EXAMPLES:
    czg
    czg emoji
    czg :fd
    czg --config="./config/cz.json"
    czg --api-key="sk-XXXXX"
    czg ai -N=3 -M="gpt-4o"

Extends 'git commit' options.
See 'git commit --help' for more information.

Installation

「czg」 requires Node >=v12.20

npm install -g czg

MacOS:

brew install czg

⇒ Get Started (more installation and usage)

Configure

⇒ Configure Template

⇒ Show Related

⇒ Engineering Related

Recipes

⇒ Recipes

FAQ

⇒ FAQ

Projects using czg CLI

LICENSE

MIT Copyright (c) 2022-present Qiubin Zheng zhengqbbb@gmail.com (https://github.com/Zhengqbbb)

1.11.0

2 months ago

1.11.0-beta.2

2 months ago

1.11.0-beta.1

2 months ago

1.10.1-beta.1

3 months ago

1.10.0-beta.5

3 months ago

1.10.0-beta.4

3 months ago

1.10.0-beta.3

3 months ago

1.10.0-beta.2

3 months ago

1.10.0-beta.1

3 months ago

1.10.1

3 months ago

1.10.0

3 months ago

1.9.4

5 months ago

1.9.4-beta.1

5 months ago

1.9.3-beta.1

7 months ago

1.9.3

7 months ago

1.9.2

7 months ago

1.9.2-beta.1

7 months ago

1.9.1

9 months ago

1.9.0

10 months ago

1.8.1-beta.3

10 months ago

1.8.0

1 year ago

1.8.1-beta.2

1 year ago

1.6.2

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.8.1-beta.1

1 year ago

1.6.2-beta.8

1 year ago

1.6.2-beta.6

1 year ago

1.6.2-beta.5

2 years ago

1.6.2-beta.4

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.6.2-beta.1

2 years ago

1.6.2-beta.3

2 years ago

1.6.2-beta.2

2 years ago

1.6.1-beta.1

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.2-beta.10

2 years ago

1.4.2-beta.8

2 years ago

1.4.2-beta.9

2 years ago

1.4.2-beta.4

2 years ago

1.4.2-beta.5

2 years ago

1.4.2-beta.6

2 years ago

1.4.2-beta.7

2 years ago

1.4.2-beta.1

2 years ago

1.4.2-beta.2

2 years ago

1.4.1-beta.2

2 years ago

1.4.2-beta.3

2 years ago

1.4.1-beta.1

2 years ago

1.4.0

2 years ago

1.3.12-beta.1

2 years ago

1.3.12

2 years ago

1.3.11

2 years ago

1.3.11-beta.1

2 years ago

1.3.10

2 years ago

1.3.10-beta.1

2 years ago

1.3.9

2 years ago

1.3.9-beta.1

2 years ago

1.3.8

2 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.6-beta.1

3 years ago

1.3.5

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago