Skip to content

Commit 7c4071d

Browse files
authored
Merge pull request #45 from increments/add-publish-force-option-to-readme
Add about force option of publish command
2 parents 392ac3d + 3f7bc3a commit 7c4071d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ npx qiita publish 記事のファイルのベース名
162162
npx qiita publish --all
163163
```
164164

165+
`--force`オプションを用いることで、強制的に記事ファイルの内容を Qiita に反映させます。
166+
167+
```console
168+
npx qiita publish 記事ファイルのベース名 --force
169+
# -f は --force のエイリアスとして使用できます。
170+
npx qiita publish 記事ファイルのベース名 --force
171+
```
172+
165173
### 記事の削除
166174

167175
Qiita CLI、Qiita Preview から記事の削除はできません。
@@ -201,7 +209,7 @@ Qiita 上で更新を行い、手元で変更を行っていない記事ファ
201209
npx qiita pull
202210
```
203211

204-
`--force`オプションを用いることで、記事ファイルをを全て強制的に Qiita と同期します
212+
`--force`オプションを用いることで、強制的に Qiita 上の内容を記事ファイルに反映させます
205213

206214
```console
207215
npx qiita pull --force

0 commit comments

Comments
 (0)