---
slug: "slack-channel-open-command"
title: "Opening Slack Channel Links with Command Line, Raycast, and Alfred"
description: "Convert a Slack web URL into the slack:// scheme to open a specific channel directly from the command line, Raycast Quicklink, or Alfred."
url: "https://www.ytyng.com/en/blog/slack-channel-open-command"
publish_date: "2022-09-30T00:50:07Z"
created: "2022-09-30T00:50:07Z"
updated: "2026-05-11T12:03:28.207Z"
categories: []
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/2e92c066d5f74cb59adfb24c9a07b873.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# Opening Slack Channel Links with Command Line, Raycast, and Alfred

When you open Slack on the web, the URL becomes:

```
https://app.slack.com/client/<TEAM-ID>/<CHANNEL-ID>
```

To open it from the command line, use:

```
open "slack://channel?team=<TEAM-ID>&id=<CHANNEL-ID>"
```

To open it from Raycast's Quicklink, set the Link to `slack://channel?team=<TEAM-ID>&id=<CHANNEL-ID>` and set Open with to `Slack`.
