The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

SYNOPSIS

dokuwiki-client is as cli wrapper to the XML::RPC perl client.

dokuwiki-client show getVersion
# prints the dokuwiki version
dokuwiki-client show getPageHTML page:in:your:namespace
# show the rendered version of page:in:your:namespace
dokuwiki-client ls your:namespace
# list the ids of pages in your:namespace

Configure

configure a machine (the name isn't related to the dokuwiki base url) to store the credentials

machine personnal.wiki
login me
password Ih4v3S3cr3ts

then, setup 2 environement variables

export DOKUWIKI_CLIENT_BASE=http://my.wiki.example.com
export DOKUWIKI_CLIENT_MACHINE=personal.wiki

Available subcommand

call

call an XML::RPC method and dump the result as a YAML in stdout

dokuwiki-client call getPagelist your:namespace

show

call an XML::RPC method and print the result in stdout

dokuwiki-client show getVersion

ls

list the entries of a namespace

# dokuwiki-client ls my:namespace
page1
page2
page3
...

page and html

are shortcuts for

dokuwiki-client show getPage foo
dokuwiki-client show getPageHTML foo