@riebeckite/cli 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,7 +11,8 @@ the site.
11
11
  `@riebeckite/cli` provides the `riebeckite` binary. It resolves the application
12
12
  root from the current working directory and reports command failures safely with
13
13
  a non-zero exit code. `check`, `doctor`, `inspect`, and `profile` are read-only;
14
- only `build` and `dev` mutate output or start a server.
14
+ `build` and `dev` write output or start a server, and `clean` removes
15
+ Riebeckite-managed state and build output.
15
16
 
16
17
  ## Installation
17
18
 
@@ -35,6 +36,7 @@ riebeckite dev
35
36
  riebeckite check
36
37
  riebeckite doctor
37
38
  riebeckite build [--full]
39
+ riebeckite clean [--output | --all]
38
40
  riebeckite profile [--full]
39
41
  riebeckite inspect [config | plugins | content [--list] | graph | build]
40
42
  ```
@@ -47,13 +49,19 @@ riebeckite inspect [config | plugins | content [--list] | graph | build]
47
49
  | `check` | Validate app configuration, plugins, and capability resolution | no |
48
50
  | `doctor` | Diagnose environment, configuration, plugins, content, diagnostics, and build state | no |
49
51
  | `build` | Run the build path; `--full` bypasses incremental reuse | yes, on success |
52
+ | `clean` | Remove managed state (`.riebeckite/`); `--output` removes only the build output, `--all` removes both | no |
50
53
  | `profile` | Run tracing-based performance reporting; `--full` uses a full path | build-dependent |
51
54
  | `inspect` | Display factual resolved state (`config`, `plugins`, `content`, `graph`, `build`) | no |
52
55
 
53
56
  `doctor` continues independent checks where possible and exits unsuccessfully
54
57
  when health checks fail. `inspect` is deliberately read-only and never triggers
55
- a build or writes state. See [Diagnostics](../../docs/en/docs/framework/diagnostics.md) and
56
- [Framework Inspector](../../docs/en/docs/framework/inspector.md) for how to interpret output.
58
+ a build or writes state. See [Diagnostics](../../docs/docs/framework/diagnostics.en.md) and
59
+ [Framework Inspector](../../docs/docs/framework/inspector.en.md) for how to interpret output.
60
+
61
+ `clean` deletes only Riebeckite-managed artifacts: with no options the managed
62
+ state root (`.riebeckite/`), with `--output` the build output, and with `--all`
63
+ both. Missing targets are not an error, so it is safe to run from scripts and CI.
64
+ Run `clean --all` before `build` to force a cold build (a cache directory configured outside `.riebeckite/` is not removed).
57
65
 
58
66
  ## Typical workflow
59
67
 
@@ -66,7 +74,7 @@ pnpm exec riebeckite build
66
74
 
67
75
  ## See also
68
76
 
69
- - [CLI Reference](../../docs/en/docs/reference/cli.md)
70
- - [Build System](../../docs/en/docs/framework/build-system.md)
71
- - [Diagnostics](../../docs/en/docs/framework/diagnostics.md) / [Framework Inspector](../../docs/en/docs/framework/inspector.md)
77
+ - [CLI Reference](../../docs/docs/reference/cli.en.md)
78
+ - [Build System](../../docs/docs/framework/build-system.en.md)
79
+ - [Diagnostics](../../docs/docs/framework/diagnostics.en.md) / [Framework Inspector](../../docs/docs/framework/inspector.en.md)
72
80
 
package/README_ja.md CHANGED
@@ -6,7 +6,7 @@ Riebeckite のコマンドラインインターフェースです。プロジェ
6
6
 
7
7
  ## 概要
8
8
 
9
- `@riebeckite/cli` は `riebeckite` バイナリを提供します。カレントディレクトリからアプリケーションルートを解決し、コマンドの失敗は非ゼロの終了コードで安全に報告します。`check`、`doctor`、`inspect`、`profile` は読み取り専用で、出力を書き換えたりサーバーを起動するのは `build` と `dev` だけです。
9
+ `@riebeckite/cli` は `riebeckite` バイナリを提供します。カレントディレクトリからアプリケーションルートを解決し、コマンドの失敗は非ゼロの終了コードで安全に報告します。`check`、`doctor`、`inspect`、`profile` は読み取り専用です。出力を書き換えたりサーバーを起動するのは `build` と `dev`、Riebeckite が管理する状態や Build 出力を削除するのは `clean` です。
10
10
 
11
11
  ## インストール
12
12
 
@@ -29,6 +29,7 @@ riebeckite dev
29
29
  riebeckite check
30
30
  riebeckite doctor
31
31
  riebeckite build [--full]
32
+ riebeckite clean [--output | --all]
32
33
  riebeckite profile [--full]
33
34
  riebeckite inspect [config | plugins | content [--list] | graph | build]
34
35
  ```
@@ -41,10 +42,13 @@ riebeckite inspect [config | plugins | content [--list] | graph | build]
41
42
  | `check` | アプリの設定、Plugin、capability の解決を検証する | いいえ |
42
43
  | `doctor` | 環境、設定、Plugin、コンテンツ、診断、ビルド状態を診断する | いいえ |
43
44
  | `build` | ビルドを実行する。`--full` は差分の再利用を行わない | 成功時に書く |
45
+ | `clean` | 管理対象の状態(`.riebeckite/`)を削除する。`--output` は Build 出力のみ、`--all` は両方を削除する | いいえ |
44
46
  | `profile` | トレースに基づく性能レポートを実行する。`--full` は全体を対象にする | ビルドの実行による |
45
47
  | `inspect` | 解決済みの状態を事実として表示する(`config`、`plugins`、`content`、`graph`、`build`) | いいえ |
46
48
 
47
- `doctor` は独立したチェックを可能な限り続行し、ヘルスチェックに失敗すると非ゼロで終了します。`inspect` は読み取り専用で、ビルドの実行や状態の書き込みは行いません。出力の読み方は [Diagnostics](../../docs/ja/docs/framework/diagnostics.md) と [Framework Inspector](../../docs/ja/docs/framework/inspector.md) を参照してください。
49
+ `doctor` は独立したチェックを可能な限り続行し、ヘルスチェックに失敗すると非ゼロで終了します。`inspect` は読み取り専用で、ビルドの実行や状態の書き込みは行いません。出力の読み方は [Diagnostics](../../docs/docs/framework/diagnostics.md) と [Framework Inspector](../../docs/docs/framework/inspector.md) を参照してください。
50
+
51
+ `clean` は Riebeckite が管理する成果物だけを削除します。option なしでは managed state root(`.riebeckite/`)、`--output` では Build 出力、`--all` では両方を削除します。対象が存在しなくてもエラーにならないため、script や CI から安全に実行できます。cold build を行う場合は `clean --all` の後に `build` を実行します(cache directory を別の場所に設定している場合、その場所は削除対象に含まれません)。
48
52
 
49
53
  ## 典型的な流れ
50
54
 
@@ -57,7 +61,7 @@ pnpm exec riebeckite build
57
61
 
58
62
  ## 関連資料
59
63
 
60
- - [CLI Reference](../../docs/ja/docs/reference/cli.md)
61
- - [Build System](../../docs/ja/docs/framework/build-system.md)
62
- - [Diagnostics](../../docs/ja/docs/framework/diagnostics.md) / [Framework Inspector](../../docs/ja/docs/framework/inspector.md)
64
+ - [CLI Reference](../../docs/docs/reference/cli.md)
65
+ - [Build System](../../docs/docs/framework/build-system.md)
66
+ - [Diagnostics](../../docs/docs/framework/diagnostics.md) / [Framework Inspector](../../docs/docs/framework/inspector.md)
63
67