Lifecycle and atk CLI
purpose
M365 Agents Toolkit lifecycle configuration (m365agents.yml) and full atk CLI command reference for provisioning, deploying, and managing M365 agents (declarative agents, custom engine agents, Teams bots/tabs/message extensions, Copilot connectors, Office add-ins).
rules
- m365agents.yml is the lifecycle manifest. Every Agents Toolkit project has an
m365agents.ymlat the project root for dev/cloud deployment, and typically anm365agents.local.ymlfor local development. They define theprovision,deploy, andpublishlifecycle stages — each stage is an ordered list of actions.atk provision --env localrunsm365agents.local.yml;atk provision --env devrunsm365agents.yml. - Lifecycle stages run in order: provision → deploy → publish. Provision creates cloud resources (Azure Bot, App Registration, resource groups). Deploy pushes app code to compute targets. Publish submits the app package to the Teams catalog.