Installing and running Pagefind
Pagefind is a static binary with no dynamic dependencies, so in most cases will be simple to install and run. Pagefind is currently supported on Windows, MacOS, and x86-64 Linux distributions.
#Running via npx
npx pagefind --source "public"
Pagefind publishes a wrapper package through npm, which is the easiest way to get started. This package will download the correct binary of the latest release from GitHub for your platform and run it.
Specific versions can be run by passing a version tag:
npx pagefind@latest --source "public" npx firstname.lastname@example.org --source "public"
Running Pagefind via npx will download the
pagefind_extendedrelease, which includes specialized support for indexing Chinese and Japanese pages.
#Downloading a precompiled binary
If you prefer to install Pagefind yourself, you can download a precompiled release from GitHub and run the binary directly:
./pagefind --source "public" # or ./pagefind_extended --source "public"
Pagefind publishes two releases,
pagefind_extended. The extended release is a larger binary, but includes specialized support for indexing Chinese and Japanese pages.
#Building from source
If you have Rust and Cargo installed, you can run
cargo install pagefind to build from source.
cargo install pagefind pagefind --source "public"
To build and install the extended version of Pagefind:
cargo install pagefind --features extended pagefind --source "public"