New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@denyhs/cortex-cli

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@denyhs/cortex-cli

CLI tool to generate commit messages based on repository changes

  • 1.0.0-bata.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
82
decreased by-75.67%
Maintainers
0
Weekly downloads
 
Created
Source

Cortex CLI

A command-line tool to generate commit messages based on your repository changes.

Installation

npm install -g cortex-cli

Configuration

Before using the CLI, you need to set your API token as an environment variable:

export CORTEX_GENERATE_COMMIT_MESSAGE_TOKEN=your_token_here

Or create a .env file in your project root:

CORTEX_GENERATE_COMMIT_MESSAGE_TOKEN=your_token_here

Usage

cortex commit-message [options]

Options

  • No flags: Generate message for staged changes only (default)
  • --onlyStaged: Same as default, generate message for staged changes
  • --onlyUnstaged: Generate message for unstaged changes
  • --all: Generate message for all changes (staged and unstaged)
  • --header <text>: Add a custom header to the commit message (will be added above the generated message)
  • --commitStaged: After generating the message, prompt to commit staged changes
  • --commitAndPush: After generating the message, prompt to commit staged changes and push them to the remote repository

Examples

# Generate message for staged changes
cortex commit-message

# Generate message for all changes
cortex commit-message --all

# Generate message with a custom header
cortex commit-message --header="feat: new feature implementation"

# Generate message, commit, and push with a custom header
cortex commit-message --commitAndPush --header="fix: resolve critical bug"

# Generate message and commit if approved
cortex commit-message --commitStaged

Features

  • Generates commit messages based on git diff
  • Supports different scopes of changes (staged, unstaged, or all)
  • Copies generated message to clipboard
  • Optional custom header for commit messages
  • Optional automatic commit after message generation
  • Optional automatic push to remote after commit
  • Environment variable validation
  • Git repository validation

Keywords

FAQs

Package last updated on 19 Dec 2024

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