22
33# SMS Gateway for Android™ CLI
44
5- A command-line interface for working with SMS Gateway for Android.
5+ A command-line interface for interacting with the SMS Gateway for Android API .
66
77## Table of Contents
88
@@ -16,8 +16,6 @@ A command-line interface for working with SMS Gateway for Android.
1616 - [ Output Formats] ( #output-formats )
1717 - [ Usage] ( #usage )
1818 - [ Commands] ( #commands )
19- - [ Send a message] ( #send-a-message )
20- - [ Get the status of a sent message] ( #get-the-status-of-a-sent-message )
2119 - [ Exit codes] ( #exit-codes )
2220 - [ Examples] ( #examples )
2321 - [ Output formats] ( #output-formats-1 )
@@ -91,32 +89,14 @@ smsgate [global options] command [command options] [arguments...]
9189
9290### Commands
9391
94- The CLI supports the following commands:
92+ The CLI offers two main groups of commands:
9593
96- - ` send ` - send a message with single or multiple recipients
97- - ` status ` - get the status of a sent message by message ID
94+ - ** Messages ** : Commands for sending messages and checking their status.
95+ - ** Webhooks ** : Commands for managing webhooks, including creating, updating, and deleting them.
9896
99- #### Send a message
100-
101- Syntax:
102- ``` bash
103- smsgate send [options] ' Message content'
104- ```
105-
106- | Option | Description | Default value | Example |
107- | --------------------------- | ------------------------------------------------------------------------------------------ | ------------- | ----------------------- |
108- | ` --id ` | Message ID, will be generated if not provided | empty | ` zXDYfTmTVf3iMd16zzdBj ` |
109- | ` --phone ` , ` --phones ` , ` -p ` | Phone number, can be used multiple times or with comma-separated values, E.164 format | ** required** | ` +19162255887 ` |
110- | ` --sim ` , ` --simNumber ` | One-based SIM card slot number, if empty, the default SIM card will be used | empty | ` 2 ` |
111- | ` --ttl ` | Time-to-live (TTL), if empty, the message will not expire<br >Conflicts with ` --validUntil ` | empty | ` 1h30m ` |
112- | ` --validUntil ` | Valid until, if empty, the message will not expire<br >Conflicts with ` --ttl ` | empty | ` 2024-12-31T23:59:59Z ` |
113-
114- #### Get the status of a sent message
115-
116- Syntax:
117- ``` bash
118- smsgate status ' Message ID'
119- ```
97+ For a complete list of available commands, you can:
98+ - Run ` smsgate help ` or ` smsgate --help ` in your terminal.
99+ - Visit the official documentation at [ docs.sms-gate.app] ( https://docs.sms-gate.app/integration/cli/#commands ) .
120100
121101### Exit codes
122102
0 commit comments