teams file share
Auto-generated reference
This page is generated from checked-in CLI metadata for release v0.3.0. Do not edit it by hand.
Create a sharing link for a file.
Synopsis
teams file share --team TEAM_ID --channel CHANNEL_ID --file-id FILE_ID [--link-type view|edit|embed] [--scope anonymous|organization]
Options
| Option | Value | Required | Env | Default | Description |
|---|---|---|---|---|---|
--team | TEAM_ID | yes | Team ID | ||
--channel | CHANNEL_ID | yes | Channel ID | ||
--file-id | FILE_ID | yes | File ID | ||
--link-type | LINK_TYPE | no | view | Link type (view, edit, or embed) | |
--scope | SCOPE | no | organization | Link scope (anonymous or organization) |
Examples
No command-specific examples are published yet.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | success |
| 2 | invalid input |
| 3 | authentication error |
| 4 | permission denied |
| 6 | rate limited |