Search by

pfefferle / webfinger-cli

pfefferle

Web version of the finger protocol

Package info

github.com/pfefferle/webfinger-cli

Homepage

pkg:composer/pfefferle/webfinger-cli

Fund package maintenance!

notiz.blog/donate

Statistics

Installs: 60

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

1.1.0 2026-09-17 09:34 UTC

This package is auto-updated.

Last update: 2026-09-17 10:21:43 UTC


README

A small command line tool, similar to Unix' finger, that looks up people and resources via WebFinger (RFC 7033). Works with Mastodon and everything else in the Fediverse.

$ webfinger pfefferle@mastodon.social

The resource can be given as user@host, @user@host, acct:user@host or any URL.

Options

Option Description
--json, -j Print the raw JRD document instead of the formatted view
--insecure, -i Fall back to plain HTTP if HTTPS fails
--no-profile Skip fetching the h-card from the profile page

Install

Via Composer:

$ composer global require pfefferle/webfinger-cli

Or download webfinger.phar from the latest release, make it executable and put it on your PATH.

Requires PHP 8.2 or newer with the curl extension.

Development

$ composer install
$ composer test

Building the phar

The phar is built with Box. Install it with brew install box or phive install humbug/box, then run

$ composer install --no-dev
$ composer build

which writes build/webfinger.phar. Pushing a tag builds the phar on GitHub Actions and attaches it to the release automatically.