https://github.com/MagicCube/cli-gpt
Translate human language to command line using ChatGPT.
https://github.com/MagicCube/cli-gpt
Last synced: 7 months ago
JSON representation
Translate human language to command line using ChatGPT.
- Host: GitHub
- URL: https://github.com/MagicCube/cli-gpt
- Owner: MagicCube
- License: mit
- Created: 2023-03-07T08:04:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T07:22:56.000Z (almost 3 years ago)
- Last Synced: 2025-04-10T16:32:19.478Z (10 months ago)
- Language: TypeScript
- Size: 7.76 MB
- Stars: 106
- Watchers: 1
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gpt - cli-gpt
README
# cli-gpt
Translate human language to command line using ChatGPT.
## Usage
```sh-session
$ npm install -g magiccube-cli-gpt
$ export OPENAI_API_KEY="***your-openai-api-key***"
$ cgpt clone react from github and switch to a new branch named feature/gpt
Translating your words into command line...... done
git clone https://github.com/facebook/react.git && cd react && git checkout -b feature/gpt
$ cgpt delete all the docker untitled images
Translating your words into command line...... done
docker rmi $(docker images -f "dangling=true" -q)
CAUTION: This command is dangerous!
$ cgpt 删除所有文件和文件夹
Translating your words into command line...... done
rm -rf *
CAUTION: This command is dangerous!
```

## Documents
请参考[中文文档](docs/index.md)