arianet sms
این مرجع در هر نسخه به طور خودکار از راهنمای خود CLI ساخته میشود، پس همیشه با آخرین نسخه arianet یکی است. متن راهنمای هر دستور همان متن انگلیسی است که arianet <command> --help نشان میدهد. برای نصب، تنظیم توکن و شروع کار، صفحه رابط خط فرمان را ببینید.
فلگهای سراسری با همه دستورهای این صفحه کار میکنند.
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.
دسترسیهای توکن: sms:messages:read, sms:messages:write, sms:lines:read, sms:templates:read, sms:templates:write
نحوه استفاده
arianet sms <command>
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--region | string | regional install to call, e.g. iran-1 (default: the product's default region) |
زیردستورها
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
نحوه استفاده
arianet sms api <method> <path> [flags]
مثالها
arianet sms api GET /openapi.json
arianet sms api POST /some/path --data '{"key":"value"}'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--data | string | the JSON request body | |
--file | string | read the JSON request body from this file |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms application
Your activation request: what you send and to whom
نحوه استفاده
arianet sms application <command>
نامهای دیگر: activation
فلگهای بهارثرسیده: --region (از arianet sms)
زیردستورها
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
نحوه استفاده
arianet sms application get [flags]
نامهای دیگر: show, status
مثالها
arianet sms application get
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms application submit
Submit the activation request (reviewed before the account can send)
نحوه استفاده
arianet sms application submit [flags]
مثالها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--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 |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms batches
Read send batches
نحوه استفاده
arianet sms batches <command>
نامهای دیگر: batch
فلگهای بهارثرسیده: --region (از arianet sms)
زیردستورها
arianet sms batches get
Show one batch
نحوه استفاده
arianet sms batches get <batch-id> [flags]
نامهای دیگر: show
مثالها
arianet sms batches get 1204
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms batches list
List batches
نحوه استفاده
arianet sms batches list [flags]
نامهای دیگر: ls
مثالها
arianet sms batches list --per-page 20
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms blocked
Manage numbers you never send to
نحوه استفاده
arianet sms blocked <command>
نامهای دیگر: blocked-recipients, blocklist
فلگهای بهارثرسیده: --region (از arianet sms)
زیردستورها
arianet sms blocked add
Block a number
نحوه استفاده
arianet sms blocked add [flags]
مثالها
arianet sms blocked add --phone 09121234567 --note 'asked to stop'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--note | string | why (optional) | |
--phone | string | mobile number (required) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms blocked delete
Unblock a number
نحوه استفاده
arianet sms blocked delete <id> [flags]
نامهای دیگر: rm, unblock
مثالها
arianet sms blocked delete 17
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms blocked list
List blocked numbers
نحوه استفاده
arianet sms blocked list [flags]
نامهای دیگر: ls
مثالها
arianet sms blocked list
arianet sms blocked list --phone 0912
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) | |
--phone | string | only numbers containing this |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms inbound
List messages received on your lines
نحوه استفاده
arianet sms inbound [flags]
مثالها
arianet sms inbound --per-page 50
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms lines
List your sender lines or ask for a dedicated one
نحوه استفاده
arianet sms lines <command>
نامهای دیگر: line
فلگهای بهارثرسیده: --region (از arianet sms)
زیردستورها
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
نحوه استفاده
arianet sms lines list [flags]
نامهای دیگر: ls
مثالها
arianet sms lines list
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms lines request
Ask for a dedicated sender line (opens a request with support)
نحوه استفاده
arianet sms lines request [flags]
مثالها
arianet sms lines request --number 30001234 --note 'for OTP codes'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--note | string | anything support should know (optional) | |
--number | string | the number you would like (optional) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms lookup
Send an approved template to one recipient (verification codes, notices)
نحوه استفاده
arianet sms lookup [flags]
مثالها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--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) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms messages
Read sent messages
نحوه استفاده
arianet sms messages <command>
نامهای دیگر: message, msg
فلگهای بهارثرسیده: --region (از arianet sms)
زیردستورها
arianet sms messages get
Show one message and its delivery
نحوه استفاده
arianet sms messages get <message-id> [flags]
نامهای دیگر: show
مثالها
arianet sms messages get 90211
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms messages list
List sent messages
نحوه استفاده
arianet sms messages list [flags]
نامهای دیگر: ls
مثالها
arianet sms messages list --status failed
arianet sms messages list --to 09121234567 --batch 1204
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--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 |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms prices
Show the price per message and its volume tiers
نحوه استفاده
arianet sms prices [flags]
مثالها
arianet sms prices
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms report
Show the sending summary (sent, delivered, failed, spend)
نحوه استفاده
arianet sms report [flags]
مثالها
arianet sms report --from 2026-11-01 --to 2026-11-30
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--from | string | first day, e.g. 2026-11-01 | |
--to | string | last day, e.g. 2026-11-30 |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms scheduled
List and cancel scheduled sends
نحوه استفاده
arianet sms scheduled <command>
نامهای دیگر: schedule
فلگهای بهارثرسیده: --region (از arianet sms)
زیردستورها
arianet sms scheduled cancel
Cancel a pending scheduled send
نحوه استفاده
arianet sms scheduled cancel <scheduled-id> [flags]
نامهای دیگر: delete, rm
مثالها
arianet sms scheduled cancel 66 --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms scheduled list
List scheduled sends
نحوه استفاده
arianet sms scheduled list [flags]
نامهای دیگر: ls
مثالها
arianet sms scheduled list
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms send
Send an approved template to up to 100 recipients, now or at a set time
نحوه استفاده
arianet sms send [flags]
مثالها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--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) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms templates
Manage message templates
نحوه استفاده
arianet sms templates <command>
نامهای دیگر: template
فلگهای بهارثرسیده: --region (از arianet sms)
زیردستورها
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)
نحوه استفاده
arianet sms templates create [flags]
مثالها
arianet sms templates create --name login --category otp --body "Your Acme login code: {code}"
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--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) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms templates delete
Delete a template
نحوه استفاده
arianet sms templates delete <template-id> [flags]
نامهای دیگر: rm
مثالها
arianet sms templates delete 8 --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms templates get
Show one template
نحوه استفاده
arianet sms templates get <template-id> [flags]
نامهای دیگر: show
مثالها
arianet sms templates get 8
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms templates list
List templates and their review status
نحوه استفاده
arianet sms templates list [flags]
نامهای دیگر: ls
مثالها
arianet sms templates list
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--page | string | page number | |
--per-page | string | items per page (at most 200) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms templates update
Replace a template's name and text (a changed text is reviewed again)
نحوه استفاده
arianet sms templates update <template-id> [flags]
مثالها
arianet sms templates update 8 --name login-code --category otp --body 'Your code: {code}'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--body | string | template text (required) | |
--category | string | otp or transactional | |
--name | string | template name (required) |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms webhook
Manage the webhook (batch, delivery and inbound events)
نحوه استفاده
arianet sms webhook <command>
فلگهای بهارثرسیده: --region (از arianet sms)
زیردستورها
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
نحوه استفاده
arianet sms webhook get [flags]
نامهای دیگر: show
مثالها
arianet sms webhook get
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms webhook rotate-secret
Replace the webhook signing secret
نحوه استفاده
arianet sms webhook rotate-secret [flags]
مثالها
arianet sms webhook rotate-secret --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --region (از arianet sms)
arianet sms webhook set
Set the webhook URL (an empty --url turns it off)
نحوه استفاده
arianet sms webhook set [flags]
مثالها
arianet sms webhook set --url https://example.com/hooks/sms --events message.delivered,message.failed
arianet sms webhook set --url ''
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--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) |
فلگهای بهارثرسیده: --region (از arianet sms)