mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-04 10:14:47 +08:00
docs(add-teams): add CLI path as auto setup option
- @microsoft/teams.cli registers bots via the Teams Developer Portal, skipping the Azure subscription requirement that blocks users on locked-down corporate tenants
This commit is contained in:
@@ -55,6 +55,41 @@ pnpm run build
|
|||||||
|
|
||||||
## Credentials
|
## Credentials
|
||||||
|
|
||||||
|
Two paths — manual (Azure Portal) or auto (Teams CLI).
|
||||||
|
|
||||||
|
### Auto: Teams CLI
|
||||||
|
|
||||||
|
Requires Node.js 18+, a Microsoft 365 account with sideloading permissions, and a public HTTPS endpoint (ngrok, Cloudflare Tunnel, or similar).
|
||||||
|
|
||||||
|
1. Install the CLI:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install -g @microsoft/teams.cli@preview
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Sign in and verify:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
teams login
|
||||||
|
teams status
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Create the Entra app, client secret, and bot registration:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
teams app create \
|
||||||
|
--name "NanoClaw" \
|
||||||
|
--endpoint "https://your-domain/api/webhooks/teams"
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Pick **Install in Teams** from the post-create menu and confirm in the Teams dialog.
|
||||||
|
|
||||||
|
Continue to [Configure environment](#configure-environment).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
The steps below describe the **manual Azure Portal path**.
|
||||||
|
|
||||||
### Step 1: Create an Azure AD App Registration
|
### Step 1: Create an Azure AD App Registration
|
||||||
|
|
||||||
1. Go to [Azure Portal](https://portal.azure.com) > **App registrations** > **New registration**
|
1. Go to [Azure Portal](https://portal.azure.com) > **App registrations** > **New registration**
|
||||||
|
|||||||
Reference in New Issue
Block a user