پرش به مطلب اصلی

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>

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--regionstringregional 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 JSON
  • application: Your activation request: what you send and to whom
  • batches: Read send batches
  • blocked: Manage numbers you never send to
  • inbound: List messages received on your lines
  • lines: List your sender lines or ask for a dedicated one
  • lookup: Send an approved template to one recipient (verification codes, notices)
  • messages: Read sent messages
  • prices: Show the price per message and its volume tiers
  • report: Show the sending summary (sent, delivered, failed, spend)
  • scheduled: List and cancel scheduled sends
  • send: Send an approved template to up to 100 recipients, now or at a set time
  • templates: Manage message templates
  • webhook: 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"}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datastringthe JSON request body
--filestringread 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 request
  • submit: 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-termsboolyou send service messages to your own users only, never advertising (required)
--brandstringbrand name that appears in your messages (required)
--descriptionstringwhat you send, to whom, and why they expect it (at least 20 characters) (required)
--samplestringa sample message
--use-casestringArrayotp, transactional or alerts (required) (repeatable, or comma separated)
--websitestringyour 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)

زیردستورها

  • get: Show one batch
  • list: List batches

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--pagestringpage number
--per-pagestringitems 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)

زیردستورها

  • add: Block a number
  • delete: Unblock a number
  • list: List blocked numbers

arianet sms blocked add​

Block a number

نحوه استفاده

arianet sms blocked add [flags]

مثال‌ها

arianet sms blocked add --phone 09121234567 --note 'asked to stop'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--notestringwhy (optional)
--phonestringmobile 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--pagestringpage number
--per-pagestringitems per page (at most 200)
--phonestringonly 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--pagestringpage number
--per-pagestringitems 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 from
  • request: 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--pagestringpage number
--per-pagestringitems 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'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--notestringanything support should know (optional)
--numberstringthe 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--fromstringsender line number or ID; the account's default line when not given
--referencestringyour own reference; a send repeated with the same reference is not sent twice
--templatestringapproved template name or ID (required)
--tostringrecipient mobile number (required)
--tokenstringArrayvalue 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)

زیردستورها

  • get: Show one message and its delivery
  • list: List sent messages

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--batchstringonly the messages of this batch
--pagestringpage number
--per-pagestringitems per page (at most 200)
--statusstringonly messages in this status, e.g. delivered or failed
--tostringonly 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--fromstringfirst day, e.g. 2026-11-01
--tostringlast 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)

زیردستورها

  • cancel: Cancel a pending scheduled send
  • list: List scheduled sends

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, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet sms)

arianet sms scheduled list​

List scheduled sends

نحوه استفاده

arianet sms scheduled list [flags]

نام‌های دیگر: ls

مثال‌ها

arianet sms scheduled list

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--pagestringpage number
--per-pagestringitems 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--atstringsend later, at this ISO 8601 time; the send is then listed by arianet sms scheduled list
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--fromint64sender line ID (arianet sms lines list) (required)
--referencestringyour own reference; a send repeated with the same reference is not sent twice
--templatestringapproved template ID or name (arianet sms templates list) (required)
--tostringArrayrecipient mobile number, at most 100 (required) (repeatable, or comma separated)
--tokenstringArrayvalue 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 template
  • get: Show one template
  • list: List templates and their review status
  • update: 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}"

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--bodystringtemplate text; variable parts are written {name} (lower-case letters, digits, _) (required)
--categorystringotp or transactional (default transactional)
--namestringtemplate 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, --yesboolskip 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--pagestringpage number
--per-pagestringitems 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}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--bodystringtemplate text (required)
--categorystringotp or transactional
--namestringtemplate 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 secret
  • rotate-secret: Replace the webhook signing secret
  • set: 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, --yesboolskip 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 ''

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--enabledboolturn the webhook on or off
--eventsstringArrayper-message events: message.delivered,message.failed,inbound.received (batch.completed is always sent) (repeatable, or comma separated)
--urlstringHTTPS URL that receives the events (required)

فلگ‌های به‌ارث‌رسیده: --region (از arianet sms)