1.0.0 • Published 4 months ago

justins-ai-cli v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

Justin's AI CLI

A command-line interface for interacting with various AI services.

Installation

Install the package globally using npm:

npm install -g justins-ai-cli

Or using pnpm:

pnpm install -g justins-ai-cli

Usage

The CLI can be accessed using the ai command.

Commands

Configure API Keys

Store API keys securely for different AI services:

ai config <service> <apiKey>

Supported services:

  • anthropic
  • google-studio
  • openai

Example:

ai config anthropic sk-ant-xxxxx

List Configured Services

View which services are configured:

ai config-list

This will show a list of all supported services and whether they have been configured.

Summarize Text

Summarize text using AI (coming soon):

ai summarize "Your text here"

Collect TypeScript Files

Collect and concatenate TypeScript files for AI processing:

ai collect [path]

This command will:

  • Search for .ts and .tsx files recursively in the specified directory
  • Concatenate them into a single file in the tmp folder
  • Open the folder containing the output file
  • Exclude test files and files in node_modules/dist directories

Example:

ai collect ./src

If no path is specified, the current directory will be used.

Version

Current version: 1.0.0

License

ISC

Requirements

Node.js version 18 or higher is required due to dependencies.