Skip to content

Commit b6d5f76

Browse files
authored
Merge pull request #2592 from mmahmed/docs/add-teams-cli-path
docs(add-teams): document Teams CLI as an auto credentials path
2 parents 5466109 + d2b6330 commit b6d5f76

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.claude/skills/add-teams/SKILL.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,47 @@ pnpm run build
5555

5656
## Credentials
5757

58+
Two paths — manual (Azure Portal) or auto (Teams CLI).
59+
60+
### Auto: Teams CLI
61+
62+
Requires Node.js 18+, a Microsoft 365 account with sideloading permissions, and a public HTTPS endpoint (ngrok, Cloudflare Tunnel, or similar).
63+
64+
1. Install the CLI:
65+
66+
```bash
67+
npm install -g @microsoft/teams.cli@preview
68+
```
69+
70+
2. Sign in and verify:
71+
72+
```bash
73+
teams login
74+
teams status
75+
```
76+
77+
3. Create the Entra app, client secret, and bot registration:
78+
79+
```bash
80+
teams app create \
81+
--name "NanoClaw" \
82+
--endpoint "https://your-domain/api/webhooks/teams"
83+
```
84+
85+
The CLI prints the credentials as `CLIENT_ID`, `CLIENT_SECRET`, and `TENANT_ID`. Map them to NanoClaw's env keys:
86+
87+
- `CLIENT_ID``TEAMS_APP_ID`
88+
- `CLIENT_SECRET``TEAMS_APP_PASSWORD`
89+
- `TENANT_ID``TEAMS_APP_TENANT_ID`
90+
91+
4. Pick **Install in Teams** from the post-create menu and confirm in the Teams dialog.
92+
93+
Continue to [Configure environment](#configure-environment).
94+
95+
---
96+
97+
The steps below describe the **manual Azure Portal path**.
98+
5899
### Step 1: Create an Azure AD App Registration
59100

60101
1. Go to [Azure Portal](https://portal.azure.com) > **App registrations** > **New registration**

0 commit comments

Comments
 (0)