# ai-command

> ai command

Latest version **0.0.4** (published 2023-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install ai-command
pnpm add ai-command
yarn add ai-command
bun add ai-command
```

Provides the command `aim`.

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-09-10 |
| First published | 2023-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.18 |
| Dependencies | 17 |
| Unpacked size | 106.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | dxiongya |
| Maintainers | dxiongya |
| Keywords | ai, chatgpt, openai, command, terminal, ai chat |

## Links

- npm: https://www.npmjs.com/package/ai-command
- Repository: https://github.com/chongqiangchen/ai-command
- Issues: https://github.com/chongqiangchen/ai-command/issues
- npm.io page: https://npm.io/package/ai-command

## Dependencies (17)

- [cac](https://npm.io/package/cac.md) ^6.7.14
- [ora](https://npm.io/package/ora.md) ^5.1.0
- [glob](https://npm.io/package/glob.md) ^10.2.3
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [debug](https://npm.io/package/debug.md) ^4.3.1
- [execa](https://npm.io/package/execa.md) ^5.0.0
- [dotenv](https://npm.io/package/dotenv.md) ^16.3.1
- [globby](https://npm.io/package/globby.md) ^11.0.3
- [joycon](https://npm.io/package/joycon.md) ^3.0.1
- [marked](https://npm.io/package/marked.md) ^4.3.0
- [openai](https://npm.io/package/openai.md) ^3.2.1
- [chokidar](https://npm.io/package/chokidar.md) ^3.5.1
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.6
- [tree-kill](https://npm.io/package/tree-kill.md) ^1.2.2
- [clipboardy](https://npm.io/package/clipboardy.md) ^2.3.0
- [resolve-from](https://npm.io/package/resolve-from.md) ^5.0.0
- [marked-terminal](https://npm.io/package/marked-terminal.md) ^5.2.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2023-09-10
- 0.0.3 — 2023-06-03
- 0.0.2 — 2023-06-03
- 0.0.1-aplha.1 — 2023-06-03
- 0.0.1 — 2023-06-03

## README

## AI COMMAND QUESTION

### How to use?

1. Install Command
```
npm install ai-command
```

2. Config OpenAI API Key
```
aim set openai_key {YOUR_OPENAI_KEY}

// ls config check
aim ls
```

3. Ask Command Question in Terminal
```
// Input
aim ask "How to query port 3000, and close it"

// Output
lsof -i:3000 | kill -9 {PID}
```

4. Chat with Ai in Terminal
```
aim chat
```

4. Auto Copy
```
default open copy to clipboard, if you want to disable it, use --no-copy or global disbaled: aim set auto_copy off
```

---
_Source: https://npm.io/package/ai-command · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
