wp easy-svg share list
List the live share links of this site with id, collection and expiry. The link itself is never shown again.
WP-CLI command, Easy SVG Pro, Status: Stable
This command lists every share link of this site that has not expired: its id, the collection it hands out and when it expires. The link itself is not in the list, because the site keeps only a hash of its secret. Use the id to end a link with wp easy-svg share revoke.
Usage
wp easy-svg share list
When to use it
- Before you revoke a link, to find its id.
- In an audit, to see which collections are out there right now and until when.
Parameters
The command's help lists no options. --format is read anyway and handed to WP-CLI's formatter, so --format=json, csv or yaml work.
Return value
One row per live link with the columns id, collection and expires (UTC, for example 2026-11-02T14:30:00Z), the link that expires first on top.
0 when the list was printed. 1 when the license, the free plugin's icon library, the WP-CLI feature or the Share links feature is off.
Examples
See the live links
wp easy-svg share list
+--------------+-------------+----------------------+
| id | collection | expires |
+--------------+-------------+----------------------+
| a1b2c3d4e5f6 | house-icons | 2026-11-02T14:30:00Z |
+--------------+-------------+----------------------+
Revoke every link of one collection
for id in $(wp easy-svg share list --format=json | jq -r '.[] | select(.collection == "house-icons") | .id'); do
wp easy-svg share revoke "$id"
done
Pitfalls
- Expired links are not listed. A link past its expiry is gone from the list at once, even before it is cleaned out of the stored option.
- No link, only its id. A lost link cannot be recovered from here. Revoke it and make a new one.