aspire agent init command
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
aspire agent init - Initialize AI agent configuration for detected agent environments.
Synopsis
Section titled “Synopsis”aspire agent init [options]Description
Section titled “Description”The aspire agent init command initializes Aspire skills, companion tools, and MCP (Model Context Protocol) server configuration for your development environment. It presents an interactive multi-step flow to configure AI coding agent support:
- 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. - Select skills and tools — choose which Aspire workflow skills and companion tools to install. The Aspire workflow skills come from the Aspire skills bundle; optional companion tools such as
playwright-clianddotnet-inspectcan be selected explicitly. - 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.
Skills catalog and defaults
Section titled “Skills catalog and defaults”The Aspire skills bundle includes six workflow skills: aspire, aspire-init, aspire-orchestration, aspire-monitoring, aspire-deployment, and aspireify. The CLI reads the bundle catalog, so bundle-provided skills are available in the interactive prompt and through --skills by name.
Standalone aspire agent init pre-selects the bundle skills that are safe to add to an existing workspace: aspire, aspire-init, aspire-orchestration, aspire-monitoring, and aspire-deployment. The aspireify skill remains available but opt-in because it’s a one-time AppHost wiring workflow. When aspire init chains into agent setup, aspireify is pre-selected because it is the natural follow-up after adding an AppHost skeleton to an existing repository.
Remote bundle fetching is off by default in Aspire 13.4. To opt into downloading matching Aspire skills releases from GitHub, enable the preview feature:
aspire config set features.aspireSkillsRemoteFetchEnabled trueInstallation summary
Section titled “Installation summary”When one or more skill files are installed or updated, the command prints a single compact summary instead of one message per skill. For example, a standalone install of the default Aspire workflow skills into the standard workspace and user-level locations reports:
🤖 Installed Aspire agent skills: Skills: aspire, aspire-deployment, aspire-init, aspire-monitoring, aspire-orchestration Locations: .agents/skills, ~/.agents/skills✅ Agent environment configuration complete.If a skill install fails, the error message includes the exact skill path that failed. No-op runs, where every selected skill is already up to date, skip the skills and locations summary and print only the final completion message.
If bundle validation fails before skill installation, see Troubleshoot skill bundle errors.
Options
Section titled “Options”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, oropencode. Useallto configure all supported locations ornoneto skip skill location configuration. When not specified, the command prompts interactively. -
--skills <skills>Comma-separated list of skills to install. Aspire 13.4 includes the Aspire workflow skills
aspire,aspire-init,aspire-orchestration,aspire-monitoring,aspire-deployment, andaspireify; companion options can includeplaywright-cliand, for .NET AppHosts,dotnet-inspect. The available list can vary by Aspire CLI version and project type. Useallto install all available skills ornoneto skip skill installation. When not specified, the command prompts interactively. -
-?, -h, --helpPrints 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-interactiveRun the command in non-interactive mode, disabling all interactive prompts and spinners.
-
--nologoSuppress the startup banner and telemetry notice.
-
--bannerDisplay the animated Aspire CLI welcome banner.
-
--wait-for-debuggerWait for a debugger to attach before running a command.
Examples
Section titled “Examples”-
Initialize AI agent configuration for detected agent environments:
Aspire CLI aspire agent init -
Install all Aspire workflow skills from the Aspire skills bundle in the standard location:
Aspire CLI aspire agent init --skill-locations standard --skills aspire,aspire-init,aspire-orchestration,aspire-monitoring,aspire-deployment,aspireify -
Install all available skills and companion options 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