A small Python CLI and library for practical Wiki.js GraphQL page operations.
- exact path checks
- global text search
- predictable page listing
- page reads by exact path
- idempotent page upsert
- page move/rename
- page delete with explicit confirmation
- script-friendly JSON output
--versioncheckcheck the server version against the project target (2.5.312)--jsonemit structured JSON instead of human-readable output--quietsuppress successful stdout output; errors still go to stderr--debugemit debug details to stderr without contaminating stdout
List pages for browsing or server-backed discovery.
--query QUERY--path PATH--regex REGEX
Search pages globally by text.
text--json
Check whether a page exists at an exact path.
path
Fetch page content by exact path.
path--file FILE
Create a page when it does not exist, or update it when it does.
path-- Requiredtitle-- Required--file FILE--description DESCRIPTION--tags [TAGS ...]--replace-description--replace-tags--dry-run--diff
Move a page to a new path, optionally changing the title.
source_path-- Requireddestination_path--Required--title TITLE--dry-run
Delete a page by exact path.
For safety, real deletes require --force.
path--dry-run
wikijs-client exists docs/getting-started
wikijs-client get docs/getting-started --file getting-started.md
wikijs-client delete docs/scratch --dry-runRequires Python 3.11, 3.12, or 3.13.
pip install wikijs-clientFor deeper behavior and contract details, use the project wiki: https://github.com/orionshock/wikijs-client/wiki