How to: open MS-Teams meeting from command line/Terminal
To open a Microsoft Teams meeting from the command line or terminal, you can use the url scheme msteams:/
protocol, followed by specific commands depending on your needs.
To join a meeting, append l/meetup-join/
to the protocol. To join a Teams chat, use l/chat-join/
. Next, you will need to include the meeting ID in this format: 19:meeting_<Meeting ID>@thread.v2/0?
. It is important to provide the context information of the meeting, which includes the tenant ID (tid
) and organization ID (oid
) in a UUID format.
Example format: context={tid:"{uuid}", oid: "<<org UUID>>"}
.
Since the Teams application is no longer available for Linux, the only option left is to use a browser. This means you’ll just open the meeting URL directly.
For MacOS, use the open
command followed by the meeting link. Here’s an example command:
open “msteams:/l/meetup-join/19:meeting_YRigSq1WPM24JmxeTd5ZstIhXb69jpykDacE0nHNGK7BrAwl@thread.v2/0?context=%7B%22Tid%22%3A%221f2d6a0a-a86e-4975–848f-9af3a8de1449%22%2C%22Oid%22%3A%220f187114-bcab-4b30–887f-cb3c32bc886d%22%7D”
For Windows, replace open
with start
in the command. The rest of the process remains the same.
Note
The link provided in the example does not lead to an actual meeting but serves to illustrate the format.
If you only wish to open a chat, the context information is not required. Use the following format for chat
open “msteams:/l/chat-join/19:meeting_YRigSq1WPM24JmxeTd5ZstIhXb69jpykDacE0nHNGK7BrAwl@thread.v2/”
Happy Coding.