Skip to content

Add about force option of publish command #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ npx qiita publish 記事のファイルのベース名
npx qiita publish --all
```

`--force`オプションを用いることで、強制的に記事ファイルの内容を Qiita に反映させます。

```console
npx qiita publish 記事ファイルのベース名 --force
# -f は --force のエイリアスとして使用できます。
npx qiita publish 記事ファイルのベース名 --force
```

### 記事の削除

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

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

```console
npx qiita pull --force
Expand Down