Skip to main content

teams file share

Auto-generated reference

This page is generated from checked-in CLI metadata for release v0.9.0. Do not edit it by hand.

Create a sharing link for a file

Synopsis​

teams file share [OPTIONS] --team <TEAM> --channel <CHANNEL> --file-id <FILE_ID>

Options​

OptionValueRequiredEnvDefaultDescription
--teamTEAMyesTeam ID
--channelCHANNELyesChannel ID
--file-idFILE_IDyesFile ID
--link-typeLINK_TYPEnoviewLink type (view, edit, embed)
--scopeSCOPEnoorganizationLink scope (anonymous, organization)

Examples​

No command-specific examples are published yet.

Exit Codes​

CodeMeaning
0success
2invalid input
3authentication error
4permission denied
6rate limited

See Also​