Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLIコマンド

グローバルオプション

rudis-cms --config <CONFIG> <COMMAND>
オプション短縮形説明
--config-c設定ファイルのパス(必須)

コマンド

batch

Cloudflareにコンテンツをデプロイ。

rudis-cms -c config.yaml batch [OPTIONS]
オプション短縮形説明
--force-fすべてのオブジェクトを強制的に再アップロード
--preview-pプレビューデータベースにデプロイ

例:

# 通常のデプロイ
rudis-cms -c config.yaml batch

# すべてを強制的に再アップロード
rudis-cms -c config.yaml batch -f

# プレビューデータベースにデプロイ
rudis-cms -c config.yaml batch --preview

dump

開発/テスト用にローカルファイルにエクスポート。

rudis-cms -c config.yaml dump --storage <PATH> --db <PATH>
オプション説明
--storageストレージファイルのディレクトリ
--dbSQLiteデータベースのディレクトリ

例:

rudis-cms -c config.yaml dump --storage ./local-storage --db ./local-db

show-schema

生成されたスキーマを表示。

rudis-cms -c config.yaml show-schema <SUBCOMMAND>

show-schema sql

SQL DDL文を表示。

rudis-cms -c config.yaml show-schema sql [OPTIONS]
オプション説明
--fetch-objectsオブジェクト取得クエリを含める

show-schema typescript

TypeScript型定義を生成。

rudis-cms -c config.yaml show-schema typescript [OPTIONS]
オプション説明
--save <DIR>ディレクトリに保存
--valibotValibotスキーマを生成

例:

# 標準出力に表示
rudis-cms -c config.yaml show-schema typescript

# Valibotバリデーション付きで保存
rudis-cms -c config.yaml show-schema typescript --save ./generated --valibot

終了コード

コード説明
0成功
1エラー

環境変数

必要な環境変数についてはインストールを参照してください。