Перейти до вмісту
Docs Try Aspire
Docs Try

aspire agent init command

Цей контент ще не доступний вашою мовою.

aspire agent init - Initialize AI agent configuration for detected agent environments.

Aspire CLI
aspire agent init [options]

The aspire agent init command initializes skill files and MCP (Model Context Protocol) server configuration for your development environment. It presents an interactive multi-step flow to configure AI coding agent support:

  1. Select skill locations — choose where skill files are installed (Standard .agents/skills/, Claude Code .claude/skills/, GitHub Skills .github/skills/, OpenCode .opencode/skill/). The Standard location is the only option that defaults as pre-selected.
  2. Select skills and tools — choose which skills to install (Aspire skill, Playwright CLI, dotnet-inspect skill). All options are pre-selected by default.
  3. Apply selections — installs the chosen skills into each selected location and sets up the MCP server connection.

The command also removes skill files from any locations that were deselected, keeping your workspace clean.

The following options are available:

  • --workspace-root <workspace-root>

    Path to the workspace root directory. When not specified, the current directory is used as the workspace root.

  • --skill-locations <skill-locations>

    Comma-separated list of skill locations to configure, such as standard, claudecode, github, or opencode. Use all to configure all supported locations or none to skip skill location configuration. When not specified, the command prompts interactively.

  • --skills <skills>

    Comma-separated list of skills to enable, such as aspire, aspireify, playwright-cli, or dotnet-inspect. Use all to enable all available skills or none to skip skill installation. When not specified, the command prompts interactively.

  • -?, -h, --help

    Prints help and usage documentation for the available commands and options.

  • -l, --log-level <Critical|Debug|Error|Information|None|Trace|Warning>

    Set the minimum log level for console output. Use this option to increase diagnostics while troubleshooting or reduce output in scripted runs.

  • --non-interactive

    Run the command in non-interactive mode, disabling all interactive prompts and spinners.

  • --nologo

    Suppress the startup banner and telemetry notice.

  • --banner

    Display the animated Aspire CLI welcome banner.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

  • Initialize AI agent configuration for detected agent environments:

    Aspire CLI
    aspire agent init
  • Install all supported Aspire skills in all supported skill locations:

    Aspire CLI
    aspire agent init --skills all --skill-locations all
  • Initialize agent configuration from a specific workspace root:

    Aspire CLI
    aspire agent init --workspace-root ./src