The Linq CLI is a command-line tool that provides terminal-based access to the Linq messaging API, enabling users to perform messaging operations such as authenticating with API tokens, creating chats, sending messages, listing messages, marking messages as read, starting and stopping typing indicators, sending message reactions with emojis, and sending messages with visual effects like confetti.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
You Can Send iMessages From Your Terminal | Linq CLI TutorialAdded:
Hey everybody, I'm Patrick. I'm one of the co-founders and the CTO at Link.
[music] I'm excited to show you our CLI today. The CLI gives you unlimited access to our API all from within your terminal.
>> [music] >> You can use it for free for up to 20 contacts. And you can start using it today. So, let's jump in and get started. The first thing I'm going to do is actually run install. So, I'm going to go grab that command. You can see the GitHub repo here.
Um I'm going to grab this brew install command. I'm going to put it in my terminal.
I'm going to kick that off. So, the install just finished. I'm going to clear out my terminal. And the first thing I'll do is just run the Link command. And you'll see the CLI will run and you'll get all of the commands that you can uh run using our CLI. The first thing I'm going to do is just log in. I already have a sandbox account and I'm going to use that API token from the sandbox account. If you don't already have an account, you can sign up within the CLI as well just using your phone number and email address and you can get access to a Link number right then uh without any other uh kind of steps. I'm going to go over to my sandbox dashboard. If you're signed up for the Link sandbox, you got an API token right here and we will use that. So, we'll say Link init.
I will enter in my API token and I'll be authenticated in. It will give me a few commands that I can start with here. The first one is to create a chat. I'm going to go ahead and do that with my personal phone number um that I've got pulled up over here you can see. So, I'm going to type in my phone number.
Then I'll send a message. I can be like What up? Hello world.
And you can see that that popped up.
Make a note, it gives you the chat ID here once you create the chat and send the first message in there. What I'm going to demo next is kind of a conversational flow. So, I'll show you how to start typing indicators, mark as read, all those kind of things. So, first step I'm going to say, "Hey there.
How are you?"
No question mark. Now, that message that I just sent is in the chat and we can actually use the chat ID to see all the messages in the chat. So, we [music] can say link messages list, give it the chat ID.
[music] I'm going to say limit two, so we'll only get the last two messages.
And you can see those messages there, both the initial message that I sent and then the one inbound message that we got as well. We can grab those message IDs later to use those. So, up next, I want to, you know, as [music] a bot might do, mark that message that it got read.
We're going to go link Uh let's make [music] sure that the docs say read.
link chats read. [music] Yeah, link chats read is the command for that one.
Read, and then we'll just give it that chat ID that we used at the beginning.
And you [music] can see immediately that that message is marked as read. That mark as read will just mark the latest message in the chat read. And then, what would we do next? Um let's start typing indicators. [music] So, we'll go over to the docs again.
And we'll find typing. [music] So, the way to start typing indicators in the chat using the CLI is just link chats typing with the chat ID.
So, we [music] will do that and then give it the chat ID.
And then [music] we'll see that the typing indicator started. Pretty cool.
If you want to stop the typing indicators, you can do that with just {dash} [music] {dash} stop on the end.
And you can see over here that the typing indicators [music] will stop.
Let's say that the bot really liked that message and wants to kind of react with a >> [music] >> an emoji or or a kind of a reaction. So, we'll go reactions and you can see you need to give it the message ID and the [music] type of reaction that you want to do. So, we will do link messages react.
We will get the message ID of the message that [music] we want to react to. What up? Hello world. Get that dash dash type.
We'll say love.
That will send that reaction and you'll see it pop up. Oh, but I gave it the wrong message ID.
I'll grab this message ID actually.
And you'll see both of them are love now. Up next, [music] to kind of wrap up the demo, I want to send a final message with an effect.
Effects are a really fun thing that we support through our API.
>> [music] >> Uh we'll go over here and see the effects syntax here. So, dash dash effect confetti. So, we will say link messages send and we will give it the uh chat ID that we want to send the [music] message in, that one that we had earlier. We'll say dash dash message and we'll say thanks [music] for the chat.
Dot dot dot, make it a little mysterious [music] on the end. Uh dash dash effect confetti and then I'm going to run that command.
And you will see that.
Hooray!
Okay, so that was the CLI. Remember, you can use it today for free with up to 20 contacts. Excited to see what y'all build with it.
>> [music] >> I'll see you in the next one.
Related Videos
Agentforce NOW AMA: Build with React and Salesforce Multi-Framework
SalesforceDevs
490 views•2026-05-28
How agent o11y differs from traditional o11y — Phil Hetzel, Braintrust
aiDotEngineer
450 views•2026-05-28
WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanation💯✅
LearnwithSahera
1K views•2026-05-29
More tests are always better? How to use AI to identify tests that bring little value
Alliance4Qualification
335 views•2026-05-29
Search Algorithms Explained in 60 Seconds! 🤖💨
samarthtuliofficial
218 views•2026-06-01
People of Game of Thrones using JavaScript DOM
AltCampus
296 views•2026-05-30
Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA
ascensionix
107 views•2026-05-29
🚀 BCS613C Compiler Design | Module 1 to 5 Schema Evaluation 🔥 | VTU 6th Sem 💯 #VTU #bcs613c #exam
Pranavaa-y4y
104 views•2026-06-02











