Skip to content

Commit 8d19bb6

Browse files
committed
docs: fix cli bin
1 parent 3602e4c commit 8d19bb6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727

2828
`npm install -g @sinedied/devto-cli`
2929

30-
If you only want to synchronize a GitHub repository with dev.to, you can follow this [quickstart tutorial](#create-a-new-github-repository-synchronized-with-dev.to) and use `npx @sinedied/devto-cli init` without installing the CLI.
30+
If you only want to synchronize a GitHub repository with dev.to, you can follow this [quickstart tutorial](#create-a-new-github-repository-synchronized-with-dev.to) without installing the CLI.
3131

3232
## Usage
3333

3434
```
35-
Usage: devto <init|new|push|stats> [options]
35+
Usage: dev <init|new|push|stats> [options]
3636
3737
Commands:
3838
i, init Init current dir as an article repository
@@ -57,7 +57,7 @@ General options:
5757

5858
### Init
5959

60-
`devto init` initializes the current folder as a repository for all your articles.
60+
`dev init` initializes the current folder as a repository for all your articles.
6161

6262
It does 3 things:
6363

@@ -71,11 +71,11 @@ There are a few more step needed to finish the setup on GitHub, see the [quickst
7171

7272
### New
7373

74-
`devto new <file>` creates a new markdown file with front matter properties prepared for you.
74+
`dev new <file>` creates a new markdown file with front matter properties prepared for you.
7575

7676
### Push
7777

78-
`devto push [files]` pushes all updates for the specified files to dev.to (`posts/***/*.md` by default, globs supported).
78+
`dev push [files]` pushes all updates for the specified files to dev.to (`posts/***/*.md` by default, globs supported).
7979

8080
This command only updates articles that have changes.
8181

@@ -115,7 +115,7 @@ Using the `--dry-run` option the whole push process will be executed, but withou
115115

116116
### Stats
117117

118-
`devto stats` allows you to see the stats for your latest *published* articles.
118+
`dev stats` allows you to see the stats for your latest *published* articles.
119119

120120
Only the latest 10 are shown by default, but you can change that number using the `--number` option.
121121

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import fs from 'fs-extra';
88
import { init, createNew, push, showStats } from './commands/index.js';
99

1010
const __dirname = dirname(fileURLToPath(import.meta.url));
11-
const help = `Usage: devto <init|new|push|stats> [options]
11+
const help = `Usage: dev <init|new|push|stats> [options]
1212
1313
Commands:
1414
i, init Init current dir as an article repository

0 commit comments

Comments
 (0)