mcpField
Z
zeabur-template-publish

zeabur-template-publish

github.com/zeaburクラウド・DevOps39157 回インストール7 週間前に更新
リポジトリ

zeabur-template-publish について

zeabur-template-publishは、テンプレートのYAMLファイルをZeaburマーケットプレイスに公開し、既存テンプレートを更新するスキルです。npx経由でZeabur CLIを使い、削除や確認も行えます。

主な機能

  1. 01テンプレートYAMLの公開
  2. 02既存テンプレートの更新
  3. 03テンプレートの削除
  4. 04確認用のYAML取得
  5. 05npx経由でZeabur CLIを使用

活用シーン

  1. 01新しいマーケットプレイステンプレートの公開
  2. 02コードを指定したテンプレート更新
  3. 03マーケットプレイスからテンプレートを削除

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/zeabur/agent-skills --skill zeabur-template-publish

インストール後、Claude Code で/zeabur-template-publishを入力して読み込まれたか確認します。

詳細

Zeabur テンプレートの公開

Zeabur CLI の実行には、必ず npx zeabur@latest を使用してください。 zeabur を直接実行したり、ほかのインストール方法を使用したりしないでください。npx を利用できない場合は、先に Node.js をインストールしてください。

テンプレート YAML ファイルを Zeabur マーケットプレイスに公開するか、既存のテンプレートを更新します。

新しいテンプレートを作成する

npx zeabur@latest template create -f <template-file>.yaml

YAML ファイルがアップロードされ、テンプレートコード(例:VTZ4FX)が返されます。このコードは今後の更新に必要になるため、保存しておいてください。

既存のテンプレートを更新する

npx zeabur@latest template update -c <TEMPLATE_CODE> -f <template-file>.yaml

テンプレートコードは、テンプレート URL https://zeabur.com/templates/<TEMPLATE_CODE> に含まれる識別子です。

テンプレートを削除する

npx zeabur@latest template delete -c <TEMPLATE_CODE>

確認する

公開または更新した後、テンプレートページを確認します。

https://zeabur.com/templates/<TEMPLATE_CODE>

または、YAML を取得して確認します。

npx zeabur@latest template get -c <TEMPLATE_CODE> --raw

フラグ

template create
フラグ説明
-f, --file公開するテンプレート YAML ファイル
template update
フラグ説明
-c, --code更新するテンプレートコード
-f, --file変更を含むテンプレート YAML ファイル
template delete
フラグ説明
-c, --code削除するテンプレートコード

ワークフロー

# First time: create and note the returned code (use the `zeabur-template` skill to create the YAML first)
npx zeabur@latest template create -f zeabur-template-myapp.yaml
# → Template created: VTZ4FX

# Later: update with changes
npx zeabur@latest template update -c VTZ4FX -f zeabur-template-myapp.yaml

# Verify
npx zeabur@latest template get -c VTZ4FX --raw

コメント