How to Send SMS With Gemini CLI (DataFlows SMS Extension)

How to Send SMS With Gemini CLI (DataFlows SMS Extension)

Learn how to send SMS with Gemini CLI using the DataFlows SMS extension. Install it, sign in with /mcp auth dataflows-sms, then send, preview, schedule and track business texts from your terminal, with a confirmation step before every send.

If you spend your working day in a terminal, switching to a web dashboard just to send a text message breaks your flow. You might need to tell a customer their order has shipped, ping a contractor about a site visit, or schedule a reminder for tomorrow morning. With the DataFlows SMS extension for Gemini CLI, you can do all of that by asking in plain language, right where you already work.

This guide shows you how to send SMS with Gemini CLI from start to finish. You will install the extension, sign in with your DataFlows account, try real example prompts, and learn how previews, confirmations, scheduling, delivery status and replies work. If you use Antigravity CLI, there is a section for you too.

What Is the DataFlows SMS Extension for Gemini CLI?

The DataFlows SMS extension for Gemini CLI is a connector that lets Gemini CLI send, schedule and track business SMS from your own DataFlows account when you ask it in plain language. It is built on MCP (Model Context Protocol), the open standard that gives an AI assistant a set of tools it can call. Once installed, Gemini CLI can send a message to up to 10 numbers at once, send a campaign to one of your DataFlows contact groups, preview costs before anything goes out, schedule messages for later, and check delivery status and replies. You sign in with your normal DataFlows login, so there is no API key to copy or paste. Every send uses your own sender ID or number and follows the same sender ID registration, opt-out and blocklist rules as the DataFlows dashboard. The assistant always asks you to confirm before any message is sent, so nothing leaves your account without your approval.

Why It Matters for Australian Businesses

Australian businesses already rely on SMS for reminders, alerts and quick customer updates. The problem for technical teams is that the people who notice an issue are often in a terminal, not in a marketing tool. Giving them a fast, safe way to send a text from the command line removes a step.

Compliance also matters here. DataFlows is an ACMA-registered Originating Telco and is listed on the ACMA SMS Sender ID Register. Messaging is designed around the Spam Act 2003, and STOP or UNSUBSCRIBE style replies are handled automatically across the platform, so an opted-out number is blocked from future sends. Because the Gemini CLI extension follows the same rules as the dashboard, sending from your terminal does not create a back door around those protections.

Cost is predictable too. DataFlows is pay as you go, with no monthly fees on any plan. You buy SMS credits, top up when you need to, and credits never expire.

Key Benefits

  • Stay in your terminal: Send, schedule and check messages without opening a browser tab or leaving your current task.
  • No API key handling: You sign in with your DataFlows login and click Allow Access. There is no secret to store in a config file or shell history.
  • Confirm before send: Gemini CLI asks you to confirm before any message is sent, so a vague prompt cannot fire off texts on its own.
  • Clear previews: See recipients, SMS parts, credits needed and warnings for emoji, long messages, a missing opt-out line or blocked words before you commit.
  • Scheduling built in: Schedule messages for later, list what is queued and cancel anything before it sends.
  • Delivery and replies in one place: Check delivery status, read replies, see campaign results and get a usage summary with messages sent, credits used and delivery rate.
  • Same rules as the dashboard: Sender ID registration, opt-out handling and blocklists apply exactly as they do everywhere else in DataFlows.

Step-by-Step: How to Send SMS With Gemini CLI

Step 1: Make sure you have a DataFlows account

You need a DataFlows account to sign in. If you do not have one yet, create a free account at dataflows.com.au. The free trial runs for 2 weeks with 3 credits, needs no credit card, and sends only to your own verified mobile numbers, which is perfect for testing this setup. Every plan, including the trial, includes a free business name Sender ID.

Step 2: Install the DataFlows SMS extension

With Gemini CLI installed, run this command in your terminal:

gemini extensions install https://github.com/dataflows-au/dataflows-sms-gemini

This adds the DataFlows SMS extension, which connects Gemini CLI to the DataFlows MCP server at https://sms.dataflows.com.au/mcp/gemini. You can review the extension source in the public GitHub repository before you install it.

Step 3: Sign in with /mcp auth dataflows-sms

Start Gemini CLI, then run:

/mcp auth dataflows-sms

A browser window opens with the DataFlows sign-in page. Log in with your usual DataFlows email and password, then click Allow Access. That links Gemini CLI to your account. You never paste an API key, and you can review what the assistant can see in the AI Assistant Connections section of the DataFlows Privacy Policy.

Step 4: Check your balance and senders

A good first prompt is a read-only one. Try something like:

"What is my DataFlows credit balance, and which senders can I use?"

Gemini CLI will return your current credit balance and the sender IDs or numbers available on your account. This confirms the connection works before you send anything.

Step 5: Send your first SMS

Now ask for a real send. Use your own mobile number first:

"Send an SMS to 0412 345 678 from my business sender ID saying "Test from Gemini CLI. Reply STOP to opt out.""

Gemini CLI prepares the message and shows you a preview. It then asks you to confirm. Only after you say yes does the message go out. You can send to up to 10 numbers in one request, for example:

"Text these three numbers that the delivery window tomorrow is 9am to 12pm: 0412 345 678, 0423 456 789, 0434 567 890."

Step 6: Read the preview before you confirm

The preview is your safety check. It lists the recipients, how many SMS parts the message will use, and how many credits are needed. It also warns you about things that commonly cause problems:

  • Emoji: These can change the encoding and increase the number of parts.
  • Long messages: Longer text is split into multiple parts, each using credits. See SMS character limits explained for the detail.
  • Missing opt-out line: Marketing messages should give recipients a way to opt out.
  • Blocked words: Content that matches blocked words is flagged before sending.

If anything looks wrong, ask Gemini CLI to shorten the text, remove the emoji or add an opt-out line, then preview again.

Step 7: Send a campaign to a contact group

If you keep customers in DataFlows contact lists, you can message a whole group:

"Preview a campaign to my "Newsletter subscribers" group saying "Weekend sale: 20% off all stock until Sunday. Reply STOP to opt out.""

For group sends there is an extra safeguard: the send must match the recipient count shown in the preview. Gemini CLI can see your contact group names and the number of subscribed contacts, but not the individual contacts inside a group.

Step 8: Schedule messages for later

Scheduling works the same way. For example:

"Schedule an SMS to 0412 345 678 for 8am tomorrow saying "Reminder: your service is booked for 10am today.""

You can then ask Gemini CLI to list your scheduled messages, and cancel any of them before they send:

"Show my scheduled messages and cancel the one for tomorrow at 8am."

Step 9: Check delivery status and replies

After a send, ask for the outcome:

"Did my last message deliver? Have there been any replies?"

Gemini CLI can check delivery status, read replies, and give you campaign results or a usage summary covering messages sent, credits used and delivery rate. Keep in mind that only a dedicated number can receive replies. Dedicated numbers are Australian mobile numbers at $10 a month with no setup fee and free inbound replies. Learn more about virtual SMS numbers.

The assistant only sees messages sent through the connector. Messages sent from the dashboard or other integrations are not visible to it.

Antigravity CLI users: import from Gemini CLI

If you use Antigravity CLI, install the extension with Gemini CLI first using the steps above. Then run:

agy plugin import gemini

This imports your Gemini CLI setup, including the DataFlows SMS extension, into Antigravity CLI.

How DataFlows Helps

The Gemini CLI extension is one way into the same DataFlows platform that powers our Bulk SMS, SMS Marketing, Sender IDs, Virtual Numbers and Contact Lists. Whatever you send from Gemini CLI uses your account credits, your registered sender IDs and your contact groups, so your terminal and your dashboard stay in sync on billing and compliance.

DataFlows registers alphanumeric Sender IDs with ACMA on your behalf, handles opt-outs automatically, and lets you upload contact lists from CSV or Excel files with merge fields to personalise each message. The app and database are hosted in Sydney, with encrypted (HTTPS) connections, and data can be deleted on request.

Prefer another assistant? The same features are available through our connectors for Claude and ChatGPT. Read how to send SMS with Claude and how to send SMS with ChatGPT, or see the Gemini CLI integration page.

If you need SMS inside your own application code rather than a chat assistant, use the DataFlows SMS API instead. Go to the Developer section in your DataFlows dashboard to get your API Token, then follow our SMS API integration guide.

Pricing stays simple: pay as you go, no monthly fees on any plan, and no monthly fee for any integration, including Gemini CLI.

Best Practices

  • Test with your own number first: Use the free trial or your own mobile to check formatting, sender and parts before messaging customers.
  • Always read the preview: Check recipients, SMS parts and credits before you confirm, especially for group sends.
  • Be specific in prompts: Include the exact numbers or group name, the sender, the message text and the time. Clear prompts produce clear previews.
  • Include an opt-out line in marketing: Add "Reply STOP to opt out" to promotional messages, in line with the Spam Act 2003. Our Spam Act SMS marketing guide covers the rules.
  • Only message people who have consented: The CLI makes sending fast, which makes consent records even more important.
  • Use a dedicated number when you expect replies: A business name Sender ID cannot receive replies, so pick a dedicated number for two-way conversations.
  • Check delivery after important sends: Ask Gemini CLI for delivery status and replies so nothing slips through.
  • Review scheduled messages regularly: List your queued messages and cancel any that are no longer needed.

Conclusion

Sending SMS with Gemini CLI takes two commands: install the DataFlows SMS extension, then run /mcp auth dataflows-sms and sign in. From there you can send to up to 10 numbers, message contact groups, preview costs, schedule messages and check delivery and replies, all with a confirmation step before anything goes out.

Ready to try it? Sign up for a free DataFlows account at dataflows.com.au, install the extension, and send your first test message from your terminal today. No credit card required, and no monthly fees on any plan.

You May Also Like