diff --git a/pages/common/wacli-auth.md b/pages/common/wacli-auth.md new file mode 100644 index 0000000000..47d7d418de --- /dev/null +++ b/pages/common/wacli-auth.md @@ -0,0 +1,13 @@ +# wacli auth + +> Authenticate wacli with WhatsApp via QR code. +> See also: `wacli sync`, `wacli doctor`. +> More information: . + +- Start the authentication process: + +`wacli auth` + +- Authenticate using a custom store path: + +`wacli auth --store {{path/to/store}}` diff --git a/pages/common/wacli-send-file.md b/pages/common/wacli-send-file.md new file mode 100644 index 0000000000..8dc92d9239 --- /dev/null +++ b/pages/common/wacli-send-file.md @@ -0,0 +1,17 @@ +# wacli send file + +> Send a file (image, video, audio, or document) via WhatsApp. +> See also: `wacli send text`. +> More information: . + +- Send a file to a phone number: + +`wacli send file --to {{phone_number}} --file {{path/to/file}}` + +- Send a file to a specific JID: + +`wacli send file --to {{phone_number}}@s.whatsapp.net --file {{path/to/file}}` + +- Send a file with a custom timeout: + +`wacli send file --to {{phone_number}} --file {{path/to/file}} --timeout {{10m}}` diff --git a/pages/common/wacli-send-text.md b/pages/common/wacli-send-text.md new file mode 100644 index 0000000000..3b45e5bb4d --- /dev/null +++ b/pages/common/wacli-send-text.md @@ -0,0 +1,21 @@ +# wacli send text + +> Send a text message via WhatsApp. +> See also: `wacli send file`. +> More information: . + +- Send a text message to a phone number: + +`wacli send text --to {{phone_number}} --message "{{message}}"` + +- Send a text message to a specific JID: + +`wacli send text --to {{phone_number}}@s.whatsapp.net --message "{{message}}"` + +- Send a text message with a custom timeout: + +`wacli send text --to {{phone_number}} --message "{{message}}" --timeout {{10m}}` + +- Send a text message using a custom store path: + +`wacli send text --to {{phone_number}} --message "{{message}}" --store {{path/to/store}}` diff --git a/pages/common/wacli-sync.md b/pages/common/wacli-sync.md new file mode 100644 index 0000000000..5a79245aba --- /dev/null +++ b/pages/common/wacli-sync.md @@ -0,0 +1,21 @@ +# wacli sync + +> Synchronize WhatsApp messages to the local store. +> See also: `wacli auth`, `wacli messages list`. +> More information: . + +- Synchronize messages: + +`wacli sync` + +- Synchronize messages once and exit: + +`wacli sync --once` + +- Synchronize messages using a custom store: + +`wacli sync --store {{path/to/store}}` + +- Synchronize messages with a custom timeout: + +`wacli sync --timeout {{10m}}` diff --git a/pages/common/wacli.md b/pages/common/wacli.md new file mode 100644 index 0000000000..3c3936ab9d --- /dev/null +++ b/pages/common/wacli.md @@ -0,0 +1,37 @@ +# wacli + +> WhatsApp command-line client for sending messages, managing chats, and contacts. +> Some subcommands such as `send`, `messages`, `chats`, and `contacts` have their own usage documentation. +> More information: . + +- Authenticate via QR code: + +`wacli auth` + +- Synchronize messages once and exit: + +`wacli sync --once` + +- Send a text message to a phone number: + +`wacli send text --to {{phone_number}} --message "{{message}}"` + +- List messages from a specific chat: + +`wacli messages list --chat {{phone_number}}@s.whatsapp.net --json` + +- List all chats: + +`wacli chats list --json` + +- Search contacts by name: + +`wacli contacts search "{{name}}" --json` + +- Run diagnostics on the store: + +`wacli doctor` + +- Display version: + +`wacli version`