/ai-command

ask ai about command question in terminal

Primary LanguageTypeScript

AI COMMAND QUESTION

How to use?

  1. Install Command
npm install ai-command
  1. Config OpenAI API Key
aim set openai_key {YOUR_OPENAI_KEY}

// ls config check
aim ls
  1. Ask Command Question in Terminal
// Input
aim ask "How to query port 3000, and close it"

// Output
lsof -i:3000 | kill -9 {PID}
  1. Chat with Ai in Terminal
aim chat
  1. Auto Copy
default open copy to clipboard, if you want to disable it, use --no-copy or global disbaled: aim set auto_copy off