2018-02-17 08:30:22 +00:00
|
|
|
# sqsc
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> A command-line AWS Simple Queue Service client.
|
2019-05-23 11:56:50 +01:00
|
|
|
> More information: <https://github.com/yongfei25/sqsc>.
|
2018-02-17 08:30:22 +00:00
|
|
|
|
|
|
|
- List all queues:
|
|
|
|
|
|
|
|
`sqsc lq {{queue_prefix}}`
|
|
|
|
|
|
|
|
- List all messages in a queue:
|
|
|
|
|
|
|
|
`sqsc ls {{queue_name}}`
|
|
|
|
|
|
|
|
- Copy all messages from one queue to another:
|
|
|
|
|
|
|
|
`sqsc cp {{source_queue}} {{destination_queue}}`
|
|
|
|
|
|
|
|
- Move all messages from one queue to another:
|
|
|
|
|
|
|
|
`sqsc mv {{source_queue}} {{destination_queue}}`
|
|
|
|
|
|
|
|
- Describe a queue:
|
|
|
|
|
|
|
|
`sqsc describe {{queue_name}}`
|
|
|
|
|
|
|
|
- Query a queue with SQL syntax:
|
|
|
|
|
|
|
|
`sqsc query "SELECT body FROM {{queue_name}} WHERE body LIKE '%user%'"`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Pull all messages from a queue into a local SQLite database in your present working directory:
|
2018-02-17 08:30:22 +00:00
|
|
|
|
|
|
|
`sqsc pull {{queue_name}}`
|