A CLI for sending webmentions while building a static website.
320
You'll typically run the CLI in a post-publish hook after you've built and published your website. In the example below, the CLI will recursively walk the ./dist directory and send webmentions to any URLs found in the HTML files it encounters.
First pull the image:
podman pull docker.io/maritims/webmention-cli:latest
Then run the CLI:
podman run --rm \
-v $(pwd):/app/data:Z \
webmention-cli:latest \
-u https://example.com \
-d ./dist
The CLI accepts the following options:
-u, --uri: The base URI of the website. Used to construct the source URLs for the webmention.
-d, --dir: The directory to recursively walk for HTML files.
-dr, --dry-run: Don't send any webmentions, but print the URLs that would be sent.
-v, --version: Print the version number.
-h, --help: Print usage information.
Content type
Image
Digest
sha256:770f41b8c…
Size
95.1 MB
Last updated
7 months ago
docker pull maritim/webmention-cli