create-mastra
create-mastra
コマンドは新しいスタンドアロンのMastraプロジェクトを作成します。このコマンドを使用して、専用ディレクトリに完全なMastraセットアップをスキャフォールドします。
使用方法
create-mastra [options]
オプション
--version?:
boolean
バージョン番号を出力する
--project-name?:
string
package.jsonとプロジェクトディレクトリ名に使用されるプロジェクト名
--default?:
boolean
デフォルト設定でクイックスタート(src、OpenAI、サンプルなし)
--components?:
string
コンポーネントのカンマ区切りリスト(agents、tools、workflows)
--llm?:
string
デフォルトのモデルプロバイダー(openai、anthropic、groq、google、またはcerebras)
--llm-api-key?:
string
モデルプロバイダーのAPIキー
--example?:
boolean
サンプルコードを含める
--no-example?:
boolean
サンプルコードを含めない
--template?:
string
テンプレートからプロジェクトを作成(テンプレート名、公開GitHub URL、または空白でリストから選択)
--timeout?:
number
パッケージインストールの設定可能なタイムアウト、デフォルトは60000ms
--dir?:
string
Mastraソースコードのターゲットディレクトリ(デフォルト:src/)
--mcp?:
string
コードエディター用のMCPサーバー(cursor、cursor-global、windsurf、vscode)
--help?:
boolean
コマンドのヘルプを表示する