Skip to main content

A small Python CLI and library for practical Wiki.js GraphQL page operations

Project description

wikijs-client

A small Python CLI and library for practical Wiki.js GraphQL page operations.

What it does

  • 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

Commands

Global options

  • --versioncheck check the server version against the project target (2.5.312)
  • --json emit structured JSON instead of human-readable output
  • --quiet suppress successful stdout output; errors still go to stderr
  • --debug emit debug details to stderr without contaminating stdout

list

List pages for browsing or server-backed discovery.

  • --query QUERY
  • --path PATH
  • --regex REGEX

search

Search pages globally by text.

  • text
  • --json

exists

Check whether a page exists at an exact path.

  • path

get

Fetch page content by exact path.

  • path
  • --file FILE

upsert

Create a page when it does not exist, or update it when it does.

  • path -- Required
  • title -- Required
  • --file FILE
  • --description DESCRIPTION
  • --tags [TAGS ...]
  • --replace-description
  • --replace-tags
  • --dry-run
  • --diff

move

Move a page to a new path, optionally changing the title.

  • source_path -- Required
  • destination_path --Required
  • --title TITLE
  • --dry-run

delete

Delete a page by exact path. For safety, real deletes require --force.

  • path
  • --dry-run

Usage examples

wikijs-client exists docs/getting-started
wikijs-client get docs/getting-started --file getting-started.md
wikijs-client delete docs/scratch --dry-run

Installation

Requires Python 3.11, 3.12, or 3.13.

pip install wikijs-client

More documentation

For deeper behavior and contract details, use the project wiki: https://github.com/orionshock/wikijs-client/wiki

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wikijs_client-0.1.2.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wikijs_client-0.1.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file wikijs_client-0.1.2.tar.gz.

File metadata

  • Download URL: wikijs_client-0.1.2.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wikijs_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 840a811d26a92307babdfa9b80dada0d1be280e3424cb967619d3d090f8b0ba5
MD5 8750096d303f3d3ffe8e511df0cf8a14
BLAKE2b-256 82bd4b3799f881f5b1e55741211399a075f86b6f2d5442c6a16d736d90d06da7

See more details on using hashes here.

Provenance

The following attestation bundles were made for wikijs_client-0.1.2.tar.gz:

Publisher: release.yml on orionshock/wikijs-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wikijs_client-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: wikijs_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wikijs_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f803ddb5e577b858510a868a37b1f2fba5a5cbf9b7de9a7713820074131467d
MD5 8fb8522f0cc47a9f46a91c5d7c29db4e
BLAKE2b-256 8b0f59d52f76978460a90296720668decf8038e362aa83a535d46abab1609dc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for wikijs_client-0.1.2-py3-none-any.whl:

Publisher: release.yml on orionshock/wikijs-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page