DrGPT is an interactive Command-Line Interface (CLI) tool that leverages the GPT model for various tasks such as answering questions, executing shell commands, and more.
To install DrGPT on a Linux system, use the following commands:
# Download the .deb package
wget https://github.com/DrDataYE/DrGPT/releases/download/drgpt/drgpt_1.0_beta_all_linux.deb
# Install the package
sudo dpkg -i drgpt_1.0_beta_all_linux.deb
After installation, drgpt
can be used from the command line as follows:
-
Generate and Execute Shell Commands:
drgpt --shell "update my system"
-
Describe Shell Commands:
drgpt --describe-shell "ls -hl | grep drgpt"
-
Generate Code Only:
drgpt --code "give me an example of using flask in python"
-
Open Text Editor for Prompt Input:
drgpt --editor
-
Show Version:
drgpt --version
-
Follow a Conversation by ID:
drgpt --chat <chat_id>
-
Save Output to File:
drgpt --output <file_path>
For more detailed information, run drgpt --help
.
Here are some examples of how to use DrGPT:
-
Shell Command Generation:
drgpt --shell "install the metasploit framework on my system"
-
Code Generation:
drgpt --code "give me python code for a reverse shell"
-
Conversation Follow-up:
drgpt "how do I use my system in the command line?"
- Ensure Python 3 and other necessary dependencies are installed on your system.
- You may need root permissions to install the package.
This project is licensed under the MIT License - see the LICENSE file for details.
Enjoy using DrGPT! 🚀