bashgpt-cli

1.2.1 • Public • Published

BashGPT

BashGPT is a Node.js CLI tool that uses OpenAI's ChatGPT API to generate BASH command suggestions and explanations for a given task.

Prerequisites

  • Node.js (v14 or higher)
  • An OpenAI account and API key

Installation

  1. Install the BashGPT package globally using npm:
npm install -g bashgpt-cli

Configuration

You can set the OPENAI_API_KEY environmental variable in your shell, for example, at the end of your .bashrc file.

export OPENAI_API_KEY=your_api_key_here

If OPENAI_API_KEY is not set for your environment, you will be prompted to provide it.

Usage

Run the bashgpt command followed by your query without quotes:

bashgpt list all files in the current directory

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i bashgpt-cli

    Weekly Downloads

    1

    Version

    1.2.1

    License

    ISC

    Unpacked Size

    7.08 kB

    Total Files

    3

    Last publish

    Collaborators

    • wbruntra