Skip to content

MZhao-ouo/CMDGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简体中文 | English

Logo

CMDGPT | 用自然语言操作命令行

Release Version Pypi

cmdgpt录屏

安装

pip install cmdgpt

如果遇到报错 command not found: cmdgpt

请将以下内容添加到您的/.bashrc/.zshrc文件中:

export PATH=$PATH:~/.local/bin

然后运行source ~/.bashrcsource ~/.zshrc重新加载文件。

用法

设置 OpenAI api-key:

cmdgpt --key "sk-xxx……xxx"

自然语言交互

cmdgpt "创建一个名为www的文件夹,里面有一个index.html文件"

Chat模式

cmdgpt --chat

指定api_host

你只需要填host即可,例如:

cmdgpt --api_host "api.openai.com"

已知问题

  • 无法使用cdsource等命令。

本地调试

  1. Clone本仓库
git clone https://github.com/MZhao-ouo/CMDGPT.git
cd CMDGPT
  1. 修改代码,代码位于cmdgpt文件夹
  2. 运行:

先卸载旧版本

pip uninstall cmdgpt -y

生成python模块

python setup.py sdist bdist_wheel

安装本地python模块(注意版本号要与./cmdgpt/VERSION一致,且不小于当前版本)

pip install dist/cmdgpt-0.2.3-py3-none-any.whl

或者你可以一键执行(注意版本号要与./cmdgpt/VERSION一致,且不小于当前版本)

pip uninstall cmdgpt -y | python setup.py sdist bdist_wheel && pip install dist/cmdgpt-0.2.3-py3-none-any.whl

About

用自然语言操作命令行 | Interact with the command line using natural language.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages