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 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
call an XML::RPC method and dump the result as a YAML in stdout
dokuwiki-client call getPagelist your:namespace
call an XML::RPC method and print the result in stdout
dokuwiki-client show getVersion
list the entries of a namespace
# dokuwiki-client ls my:namespace page1 page2 page3 ...
are shortcuts for
dokuwiki-client show getPage foo dokuwiki-client show getPageHTML foo
To install Dokuwiki::RPC::XML::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dokuwiki::RPC::XML::Client
CPAN shell
perl -MCPAN -e shell install Dokuwiki::RPC::XML::Client
For more information on module installation, please visit the detailed CPAN module installation guide.