https://github.com/raideno/cli-template
https://github.com/raideno/cli-template
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/raideno/cli-template
- Owner: raideno
- Created: 2021-11-20T21:51:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-21T09:32:31.000Z (over 4 years ago)
- Last Synced: 2024-12-29T08:26:42.154Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Template Cli
### 1-Clone the repo:
Install Git and clone the Repo or Download the zip file.
```
git clone https://github.com/Raiden-56/Cli-Template.git cli && cd cli
```
### 2-Edit the CLI Settings:
Go to the **[./package.json](package.json)** file and then edit the **prefix** with your own **prefix**.
```
"bin": {
"prefix": "./bin/index.js"
},
```
### 3-Install Modules and The CLI:
#### 1-First of all you need to install the required modules for the CLI, for this you can use this command.
```
npm install
```
#### 2-And then install the CLI globaly in your computer using this command.
(For this command you will need permissions, don't forget to prefix with sudo if you are on Linux)
```
npm install -g
```
This command will allow you to use the cli in the Terminal in any place simply by taping the **prefix** you puted before
### 4-Finaly
Now you can enjoy yout CLI and start creating commands by adding them into the **[./commands](commands)** folder.
### 5-Need Help ?
You can find me on Discord !
**raiden#7988**