Skip to content

Commit e0aa7ce

Browse files
authored
Merge pull request #38 from ebenjs/add-miscelleanous-files
updated readme
2 parents 60517a3 + 7afd160 commit e0aa7ce

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

README.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,46 +16,58 @@ The app is a command line client for chat gpt. It allows users to ask gpt questi
1616
- [Table of Contents](#table-of-contents)
1717
- [Prerequisites](#prerequisites)
1818
- [Installation](#installation)
19-
- [Common steps](#common-steps)
20-
- [Linux and MacOS](#linux-and-macos)
21-
- [Windows](#windows)
19+
- [Automatic install on debian based distros](#automatic-install-on-debian-based-distros)
20+
- [Manual install from sources](#manual-install-from-sources)
21+
- [Common steps](#common-steps)
22+
- [Linux and MacOS](#linux-and-macos)
23+
- [Windows](#windows)
2224
- [Usage](#usage)
2325
- [Configuration](#configuration)
2426
- [Contributing](#contributing)
2527

2628
## Prerequisites
2729

28-
Any recent version of nodejs.
30+
gpt-shell is a command line tool that can be installed on any operating system. However, it requires any recent version of Node.js to be installed.
2931

3032
<!-- Installation section here. -->
3133

3234
## Installation
3335

34-
### Common steps
36+
Choose your preferred installation method below. Unix based systems (Linux, macOS) users can install gpt-shell via the command line with the following scripts:
37+
38+
### Automatic install on debian based distros
39+
40+
```bash
41+
curl -s https://raw.githubusercontent.com/ebenjs/gpt-shell/develop/install-scripts/install-script-deb.sh | sudo bash bash
42+
```
43+
44+
### Manual install from sources
45+
46+
#### Common steps
3547

3648
```bash
3749
git clone https://github.com/ebenjs/gpt-shell.git
3850
cd gpt-shell
3951
npm install
4052
```
4153

42-
### Linux and MacOS
54+
#### Linux and MacOS
4355

4456
```bash
4557
cp .env.example .env
4658
sudo chmod +x index.js
47-
ln -s "$(pwd)/index.js" /usr/local/bin/gptshell
59+
ln -s "$(pwd)/index.js" /usr/local/bin/gpts
4860
```
4961

50-
### Windows
62+
#### Windows
5163

5264
On windows, first you need to copy the `.env.example` file to `.env`.
5365

5466
```cmd
5567
copy .env.example .env
5668
```
5769

58-
Then you need to create a `gptshell.cmd` file in `C:\Windows\System32` with the following content:
70+
Then you need to create a `gpts.cmd` file in `C:\Windows\System32` with the following content:
5971

6072
```cmd
6173
@echo off
@@ -67,13 +79,13 @@ node "C:\path\to\gpt-shell\index.js" %*
6779
## Usage
6880

6981
```bash
70-
gptshell ask -p "What is the meaning of life?"
82+
gpts ask -p "What is the meaning of life?"
7183
```
7284

7385
## Configuration
7486

7587
```bash
76-
gptshell config -k YOUR_API_KEY -m MODEL_NAME -u API_URL
88+
gpts config -k YOUR_API_KEY -m MODEL_NAME -u API_URL
7789
```
7890

7991
`-k` or `--key` is your openai api key.

0 commit comments

Comments
 (0)