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
サンプルコードを含めない
--timeout?:
number
パッケージインストールのタイムアウトを設定(デフォルトは60000ms)
--dir?:
string
Mastraソースコードのターゲットディレクトリ(デフォルト: src/)
--mcp?:
string
コードエディタ用のMCPサーバー(cursor、cursor-global、windsurf、vscode)
--help?:
boolean
コマンドのヘルプを表示