arianet sms
This reference is generated from the CLI's own help on every release, so it always matches the latest arianet. The command help is the same text arianet <command> --help prints. For installation, configuration and a guided start, see the CLI page.
The global flags work with every command on this page.
arianet sms
Send verification codes and service notices from approved templates
Send verification codes and service notices to your own users through your sender lines, and read what was sent and received. The service carries service messages only: every message is an approved template (arianet sms templates create, reviewed within minutes) whose {placeholders} are filled with short values (one line, at most 40 characters, no link or phone number). Advertising is not accepted. A new account submits its activation request first (arianet sms application submit).
The commands call /sms/v1 on the API host with your API token. Token scopes: sms:messages:read, sms:messages:write, sms:lines:read, sms:templates:read, sms:templates:write (a token without scopes may do everything). --region picks a regional install (default: the product's default region). Add -o json to print the service's answer as is.
Token scopes: sms:messages:read, sms:messages:write, sms:lines:read, sms:templates:read, sms:templates:write
Usage
arianet sms <command>
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--region | string | regional install to call, e.g. iran-1 (default: the product's default region) |
Subcommands
api: Send any request to the /sms/v1 API and print the answer as JSONapplication: Your activation request: what you send and to whombatches: Read send batchesblocked: Manage numbers you never send toinbound: List messages received on your lineslines: List your sender lines or ask for a dedicated onelookup: Send an approved template to one recipient (verification codes, notices)messages: Read sent messagesprices: Show the price per message and its volume tiersreport: Show the sending summary (sent, delivered, failed, spend)scheduled: List and cancel scheduled sendssend: Send an approved template to up to 100 recipients, now or at a set timetemplates: Manage message templateswebhook: Manage the webhook (batch, delivery and inbound events)
arianet sms api
Send any request to the /sms/v1 API and print the answer as JSON
Usage
arianet sms api <method> <path> [flags]
Examples
arianet sms api GET /openapi.json
arianet sms api POST /some/path --data '{"key":"value"}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--data | string | the JSON request body | |
--file | string | read the JSON request body from this file |
Inherited flags: --region (from arianet sms)
arianet sms application
Your activation request: what you send and to whom
Usage
arianet sms application <command>
Aliases: activation
Inherited flags: --region (from arianet sms)
Subcommands
get: Show whether the account is active and its latest requestsubmit: Submit the activation request (reviewed before the account can send)
arianet sms application get
Show whether the account is active and its latest request
Usage
arianet sms application get [flags]
Aliases: show, status
Examples
arianet sms application get
Inherited flags: --region (from arianet sms)
arianet sms application submit
Submit the activation request (reviewed before the account can send)
Usage
arianet sms application submit [flags]
Examples
arianet sms application submit --brand "Acme Shop" --website acme.example --use-case otp --use-case transactional \
--description "Login codes and order status messages to customers registered in our shop" --accept-terms
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--accept-terms | bool | you send service messages to your own users only, never advertising (required) | |
--brand | string | brand name that appears in your messages (required) | |
--description | string | what you send, to whom, and why they expect it (at least 20 characters) (required) | |
--sample | string | a sample message | |
--use-case | stringArray | otp, transactional or alerts (required) (repeatable, or comma separated) | |
--website | string | your website or app; links in templates may only point there |
Inherited flags: --region (from arianet sms)
arianet sms batches
Read send batches
Usage
arianet sms batches <command>
Aliases: batch
Inherited flags: --region (from arianet sms)
Subcommands
arianet sms batches get
Show one batch
Usage
arianet sms batches get <batch-id> [flags]
Aliases: show
Examples
arianet sms batches get 1204
Inherited flags: --region (from arianet sms)
arianet sms batches list
List batches
Usage
arianet sms batches list [flags]
Aliases: ls
Examples
arianet sms batches list --per-page 20
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
Inherited flags: --region (from arianet sms)
arianet sms blocked
Manage numbers you never send to
Usage
arianet sms blocked <command>
Aliases: blocked-recipients, blocklist
Inherited flags: --region (from arianet sms)
Subcommands
arianet sms blocked add
Block a number
Usage
arianet sms blocked add [flags]
Examples
arianet sms blocked add --phone 09121234567 --note 'asked to stop'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--note | string | why (optional) | |
--phone | string | mobile number (required) |
Inherited flags: --region (from arianet sms)
arianet sms blocked delete
Unblock a number
Usage
arianet sms blocked delete <id> [flags]
Aliases: rm, unblock
Examples
arianet sms blocked delete 17
Inherited flags: --region (from arianet sms)
arianet sms blocked list
List blocked numbers
Usage
arianet sms blocked list [flags]
Aliases: ls
Examples
arianet sms blocked list
arianet sms blocked list --phone 0912
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) | |
--phone | string | only numbers containing this |
Inherited flags: --region (from arianet sms)
arianet sms inbound
List messages received on your lines
Usage
arianet sms inbound [flags]
Examples
arianet sms inbound --per-page 50
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
Inherited flags: --region (from arianet sms)
arianet sms lines
List your sender lines or ask for a dedicated one
Usage
arianet sms lines <command>
Aliases: line
Inherited flags: --region (from arianet sms)
Subcommands
list: List the sender lines you can send fromrequest: Ask for a dedicated sender line (opens a request with support)
arianet sms lines list
List the sender lines you can send from
Usage
arianet sms lines list [flags]
Aliases: ls
Examples
arianet sms lines list
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
Inherited flags: --region (from arianet sms)
arianet sms lines request
Ask for a dedicated sender line (opens a request with support)
Usage
arianet sms lines request [flags]
Examples
arianet sms lines request --number 30001234 --note 'for OTP codes'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--note | string | anything support should know (optional) | |
--number | string | the number you would like (optional) |
Inherited flags: --region (from arianet sms)
arianet sms lookup
Send an approved template to one recipient (verification codes, notices)
Usage
arianet sms lookup [flags]
Examples
arianet sms lookup --to 09121234567 --template login --token code=48213
arianet sms lookup --to 09121234567 --template 7 --token order=A-1001 --token date=1405/09/01 --from 3
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--from | string | sender line number or ID; the account's default line when not given | |
--reference | string | your own reference; a send repeated with the same reference is not sent twice | |
--template | string | approved template name or ID (required) | |
--to | string | recipient mobile number (required) | |
--token | stringArray | value of a {placeholder} of the template (repeatable name=value) |
Inherited flags: --region (from arianet sms)
arianet sms messages
Read sent messages
Usage
arianet sms messages <command>
Aliases: message, msg
Inherited flags: --region (from arianet sms)
Subcommands
arianet sms messages get
Show one message and its delivery
Usage
arianet sms messages get <message-id> [flags]
Aliases: show
Examples
arianet sms messages get 90211
Inherited flags: --region (from arianet sms)
arianet sms messages list
List sent messages
Usage
arianet sms messages list [flags]
Aliases: ls
Examples
arianet sms messages list --status failed
arianet sms messages list --to 09121234567 --batch 1204
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--batch | string | only the messages of this batch | |
--page | string | page number | |
--per-page | string | items per page (at most 200) | |
--status | string | only messages in this status, e.g. delivered or failed | |
--to | string | only messages to this number |
Inherited flags: --region (from arianet sms)
arianet sms prices
Show the price per message and its volume tiers
Usage
arianet sms prices [flags]
Examples
arianet sms prices
Inherited flags: --region (from arianet sms)
arianet sms report
Show the sending summary (sent, delivered, failed, spend)
Usage
arianet sms report [flags]
Examples
arianet sms report --from 2026-11-01 --to 2026-11-30
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--from | string | first day, e.g. 2026-11-01 | |
--to | string | last day, e.g. 2026-11-30 |
Inherited flags: --region (from arianet sms)
arianet sms scheduled
List and cancel scheduled sends
Usage
arianet sms scheduled <command>
Aliases: schedule
Inherited flags: --region (from arianet sms)
Subcommands
arianet sms scheduled cancel
Cancel a pending scheduled send
Usage
arianet sms scheduled cancel <scheduled-id> [flags]
Aliases: delete, rm
Examples
arianet sms scheduled cancel 66 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet sms)
arianet sms scheduled list
List scheduled sends
Usage
arianet sms scheduled list [flags]
Aliases: ls
Examples
arianet sms scheduled list
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
Inherited flags: --region (from arianet sms)
arianet sms send
Send an approved template to up to 100 recipients, now or at a set time
Usage
arianet sms send [flags]
Examples
arianet sms send --from 3 --to 09121234567,09351234567 --template 7 --token order=A-1001 --reference order-981
arianet sms send --from 3 --to 09121234567 --template renewal --token date=1405/09/01 --at 2026-12-01T09:00:00+03:30
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--at | string | send later, at this ISO 8601 time; the send is then listed by arianet sms scheduled list | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--from | int64 | sender line ID (arianet sms lines list) (required) | |
--reference | string | your own reference; a send repeated with the same reference is not sent twice | |
--template | string | approved template ID or name (arianet sms templates list) (required) | |
--to | stringArray | recipient mobile number, at most 100 (required) (repeatable, or comma separated) | |
--token | stringArray | value of a {placeholder} of the template (repeatable name=value) |
Inherited flags: --region (from arianet sms)
arianet sms templates
Manage message templates
Usage
arianet sms templates <command>
Aliases: template
Inherited flags: --region (from arianet sms)
Subcommands
create: Create a template (sent for review; usable once approved)delete: Delete a templateget: Show one templatelist: List templates and their review statusupdate: Replace a template's name and text (a changed text is reviewed again)
arianet sms templates create
Create a template (sent for review; usable once approved)
Usage
arianet sms templates create [flags]
Examples
arianet sms templates create --name login --category otp --body "Your Acme login code: {code}"
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | template text; variable parts are written {name} (lower-case letters, digits, _) (required) | |
--category | string | otp or transactional (default transactional) | |
--name | string | template name, unique in your account (required) |
Inherited flags: --region (from arianet sms)
arianet sms templates delete
Delete a template
Usage
arianet sms templates delete <template-id> [flags]
Aliases: rm
Examples
arianet sms templates delete 8 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet sms)
arianet sms templates get
Show one template
Usage
arianet sms templates get <template-id> [flags]
Aliases: show
Examples
arianet sms templates get 8
Inherited flags: --region (from arianet sms)
arianet sms templates list
List templates and their review status
Usage
arianet sms templates list [flags]
Aliases: ls
Examples
arianet sms templates list
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
Inherited flags: --region (from arianet sms)
arianet sms templates update
Replace a template's name and text (a changed text is reviewed again)
Usage
arianet sms templates update <template-id> [flags]
Examples
arianet sms templates update 8 --name login-code --category otp --body 'Your code: {code}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | template text (required) | |
--category | string | otp or transactional | |
--name | string | template name (required) |
Inherited flags: --region (from arianet sms)
arianet sms webhook
Manage the webhook (batch, delivery and inbound events)
Usage
arianet sms webhook <command>
Inherited flags: --region (from arianet sms)
Subcommands
get: Show the webhook URL and its signing secretrotate-secret: Replace the webhook signing secretset: Set the webhook URL (an empty --url turns it off)
arianet sms webhook get
Show the webhook URL and its signing secret
Usage
arianet sms webhook get [flags]
Aliases: show
Examples
arianet sms webhook get
Inherited flags: --region (from arianet sms)
arianet sms webhook rotate-secret
Replace the webhook signing secret
Usage
arianet sms webhook rotate-secret [flags]
Examples
arianet sms webhook rotate-secret --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet sms)
arianet sms webhook set
Set the webhook URL (an empty --url turns it off)
Usage
arianet sms webhook set [flags]
Examples
arianet sms webhook set --url https://example.com/hooks/sms --events message.delivered,message.failed
arianet sms webhook set --url ''
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--enabled | bool | turn the webhook on or off | |
--events | stringArray | per-message events: message.delivered,message.failed,inbound.received (batch.completed is always sent) (repeatable, or comma separated) | |
--url | string | HTTPS URL that receives the events (required) |
Inherited flags: --region (from arianet sms)