Sign inSign up

maritim/webmention-cli

By maritim

Updated 7 months ago

A CLI for sending webmentions while building a static website.

Image
Developer tools
0

320

maritim/webmention-cli repository overview

webmention-cli

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.

Tag summary

Content type

Image

Digest

sha256:770f41b8c

Size

95.1 MB

Last updated

7 months ago

docker pull maritim/webmention-cli