1.0.0 • Published 11 months ago
justins-ai-cli v1.0.0
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-cliOr using pnpm:
pnpm install -g justins-ai-cliUsage
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-xxxxxList Configured Services
View which services are configured:
ai config-listThis 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
.tsand.tsxfiles recursively in the specified directory - Concatenate them into a single file in the
tmpfolder - Open the folder containing the output file
- Exclude test files and files in node_modules/dist directories
Example:
ai collect ./srcIf 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.
1.0.0
11 months ago