# tencentcloud/tencentmeeting-cli architecture

> Architecture diagram of the GitHub repository tencentcloud/tencentmeeting-cli, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tencentcloud/tencentmeeting-cli
- Repository: https://github.com/tencentcloud/tencentmeeting-cli

## Overview

tmeet is a command-line client for Tencent Meeting. Users invoke commands to authorize, manage meetings and invitees, inspect recordings and minutes, query contacts and attendance reports, and control live meetings; results are formatted for terminal output. A separate event subsystem supports event discovery, streaming subscriptions, and local bus management. OAuth credentials are stored locally using encrypted, platform-aware storage. The README documents the product capabilities and user workflow; sampled source confirms REST request construction and event-bus dispatch, but not every command’s internal calls.

Main entry points: [`cmd/root.go`](https://github.com/tencentcloud/tencentmeeting-cli/blob/main/cmd/root.go) (Command entry), [`internal/auth`](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/auth) (OAuth flow), [`cmd/meeting`](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/meeting) (Meeting management), [`cmd/event`](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/event) (Event commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI and output"]
  node_root["Command entry<br/>[root.go]"]
  node_format["Response formatting"]
  node_troubleshoot["Troubleshooting"]
  node_appconfig["App settings"]
  node_rest["REST client<br/>[client.go]"]
end

subgraph group_identity["Identity and storage"]
  node_authcmd["Login and logout"]
  node_oauth["OAuth flow"]
  node_credentials[("User credentials<br/>[user.go]")]
  node_keychain["Encrypted storage"]
end

subgraph group_meeting["Meeting operations"]
  node_meetingcmd["Meeting management"]
  node_livecontrol["Live controls"]
  node_contacts["Contacts"]
end

subgraph group_content["Records and reports"]
  node_records["Recording management"]
  node_minutes["Minutes"]
  node_reports["Attendance reports"]
end

subgraph group_events["Event streaming"]
  node_eventcmd["Event commands"]
  node_eventruntime["Event runtime"]
  node_eventbus["Local event bus"]
end

node_user(("CLI user"))
node_platform["Tencent Meeting platform"]
node_terminal["Terminal output"]

node_user -->|"runs commands"| node_root
node_root -->|"routes auth"| node_authcmd
node_root -->|"routes meetings"| node_meetingcmd
node_root -->|"routes controls"| node_livecontrol
node_root -->|"routes contacts"| node_contacts
node_root -->|"routes records"| node_records
node_root -->|"routes minutes"| node_minutes
node_root -->|"routes reports"| node_reports
node_root -->|"routes diagnostics"| node_troubleshoot
node_root -->|"routes settings"| node_appconfig
node_root -->|"routes events"| node_eventcmd
node_authcmd -->|"starts authorization"| node_oauth
node_oauth -->|"authorizes with"| node_platform
node_oauth -->|"saves credentials"| node_credentials
node_credentials -.->|"uses encrypted storage"| node_keychain
node_meetingcmd -->|"manages meetings"| node_platform
node_livecontrol -->|"controls meetings"| node_platform
node_contacts -->|"searches directory"| node_platform
node_records -->|"retrieves recordings"| node_platform
node_minutes -->|"retrieves minutes"| node_platform
node_reports -->|"retrieves reports"| node_platform
node_eventcmd -.->|"manages subscriptions"| node_eventruntime
node_eventruntime -.->|"dispatches events"| node_eventbus
node_eventcmd -->|"subscribes to events"| node_platform
node_meetingcmd -.->|"sends REST requests"| node_rest
node_rest -.->|"sends API requests"| node_platform
node_root -.->|"formats responses"| node_format
node_format -.->|"prints results"| node_terminal

click node_root "https://github.com/tencentcloud/tencentmeeting-cli/blob/main/cmd/root.go"
click node_format "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/output"
click node_authcmd "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/auth"
click node_oauth "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/auth"
click node_credentials "https://github.com/tencentcloud/tencentmeeting-cli/blob/main/internal/config/user.go"
click node_keychain "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/core/keychain"
click node_meetingcmd "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/meeting"
click node_livecontrol "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/control"
click node_contacts "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/contact"
click node_records "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/record"
click node_minutes "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/minutes"
click node_reports "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/report"
click node_troubleshoot "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/tshoot"
click node_appconfig "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/app"
click node_eventcmd "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/event"
click node_eventruntime "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/event"
click node_eventbus "https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/event/bus"
click node_rest "https://github.com/tencentcloud/tencentmeeting-cli/blob/main/internal/core/thttp/client.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_root,node_format,node_troubleshoot,node_appconfig,node_rest,node_user toneBlue
class node_authcmd,node_oauth,node_credentials,node_keychain toneAmber
class node_meetingcmd,node_livecontrol,node_contacts toneMint
class node_records,node_minutes,node_reports toneRose
class node_eventcmd,node_eventruntime,node_eventbus,node_platform,node_terminal toneIndigo
```

## Components

### CLI and output

- [Command entry](https://github.com/tencentcloud/tencentmeeting-cli/blob/main/cmd/root.go): `cmd/root.go`
- [Response formatting](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/output): `internal/output`
- [Troubleshooting](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/tshoot): `cmd/tshoot`
- [App settings](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/app): `cmd/app`
- [REST client](https://github.com/tencentcloud/tencentmeeting-cli/blob/main/internal/core/thttp/client.go): `internal/core/thttp/client.go`

### Identity and storage

- [Login and logout](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/auth): `cmd/auth`
- [OAuth flow](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/auth): `internal/auth`
- [User credentials](https://github.com/tencentcloud/tencentmeeting-cli/blob/main/internal/config/user.go): `internal/config/user.go`
- [Encrypted storage](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/core/keychain): `internal/core/keychain`

### Meeting operations

- [Meeting management](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/meeting): `cmd/meeting`
- [Live controls](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/control): `cmd/control`
- [Contacts](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/contact): `cmd/contact`

### Records and reports

- [Recording management](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/record): `cmd/record`
- [Minutes](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/minutes): `cmd/minutes`
- [Attendance reports](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/report): `cmd/report`

### Event streaming

- [Event commands](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/cmd/event): `cmd/event`
- [Event runtime](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/event): `internal/event`
- [Local event bus](https://github.com/tencentcloud/tencentmeeting-cli/tree/main/internal/event/bus): `internal/event/bus`

### Other components

- **CLI user**
- **Tencent Meeting platform**
- **Terminal output**

## Connections

- CLI user → Command entry: runs commands (evidence: `README.md`)
- Command entry → Login and logout: routes auth (evidence: `README.md`)
- Command entry → Meeting management: routes meetings (evidence: `README.md`)
- Command entry → Live controls: routes controls (evidence: `README.md`)
- Command entry → Contacts: routes contacts (evidence: `README.md`)
- Command entry → Recording management: routes records (evidence: `README.md`)
- Command entry → Minutes: routes minutes (evidence: `README.md`)
- Command entry → Attendance reports: routes reports (evidence: `README.md`)
- Command entry → Troubleshooting: routes diagnostics (evidence: `README.md`)
- Command entry → App settings: routes settings (evidence: `README.md`)
- Command entry → Event commands: routes events (evidence: `README.md`)
- Login and logout → OAuth flow: starts authorization (evidence: `README.md`)
- OAuth flow → Tencent Meeting platform: authorizes with (evidence: `README.md`)
- OAuth flow → User credentials: saves credentials (evidence: `internal/auth/auth.go`)
- User credentials → Encrypted storage: uses encrypted storage
- Meeting management → Tencent Meeting platform: manages meetings (evidence: `README.md`)
- Live controls → Tencent Meeting platform: controls meetings (evidence: `README.md`)
- Contacts → Tencent Meeting platform: searches directory (evidence: `README.md`)
- Recording management → Tencent Meeting platform: retrieves recordings (evidence: `README.md`)
- Minutes → Tencent Meeting platform: retrieves minutes (evidence: `README.md`)
- Attendance reports → Tencent Meeting platform: retrieves reports (evidence: `README.md`)
- Event commands → Event runtime: manages subscriptions
- Event runtime → Local event bus: dispatches events
- Event commands → Tencent Meeting platform: subscribes to events (evidence: `README.md`)
- Meeting management → REST client: sends REST requests
- REST client → Tencent Meeting platform: sends API requests
- Command entry → Response formatting: formats responses
- Response formatting → Terminal output: prints results
