Skip to content

Commit 089f23e

Browse files
committed
feat: Add ipd as shorter binary alias
1 parent 91f291a commit 089f23e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ npm install --save-dev @agentofuser/ipfs-deploy
6363
npm install -g @agentofuser/ipfs-deploy
6464
```
6565

66-
You might want to alias that in your terminal. I added this to my `~/.bashrc`:
66+
You can call it either as `ipd` or as `ipfs-deploy`:
6767

6868
```bash
69-
alias ipd='ipfs-deploy public'
69+
ipd plublic/
70+
ipfs-deploy public/
7071
```
7172

7273
### No install:
@@ -118,13 +119,13 @@ Assuming your website's production build is at the `public` subdirectory
118119
the project's root:
119120

120121
```bash
121-
ipfs-daemon public
122+
ipd public
122123
```
123124

124125
To see more details about command line usage, run:
125126

126127
```bash
127-
ipfs-deploy --help
128+
ipd --help
128129
```
129130

130131
You can optionally add a deploy command to your `package.json`:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
},
2727
"main": "index.js",
2828
"bin": {
29-
"ipfs-deploy": "bin/ipfs-deploy.js"
29+
"ipfs-deploy": "bin/ipfs-deploy.js",
30+
"ipd": "bin/ipfs-deploy.js"
3031
},
3132
"dependencies": {
3233
"@pinata/sdk": "^1.0.16",

0 commit comments

Comments
 (0)