Go to file
Raphaël Jakse 80dcd327ed Cleanup / factor the live editing feature 2023-07-06 11:04:14 +02:00
META-INF/native-image Initial commit 2023-07-04 22:00:51 +02:00
config/checkstyle Initial commit 2023-07-04 22:00:51 +02:00
src/main/java/org/xwiki/contrib/cli Cleanup / factor the live editing feature 2023-07-06 11:04:14 +02:00
.gitignore Initial commit 2023-07-04 22:00:51 +02:00
Makefile Initial commit 2023-07-04 22:00:51 +02:00
README.md Allow not to specify the object name for --edit-property 2023-07-06 10:40:17 +02:00
dependency-reduced-pom.xml Initial commit 2023-07-04 22:00:51 +02:00
pom.xml Initial commit 2023-07-04 22:00:51 +02:00

README.md

To be written.

Requirement

Requires Java 17.

Build

mvn install

Get help

java -cp target/cli-1.0-SNAPSHOT.jar org.xwiki.contrib.cli.Main --help

Examples

java -cp target/cli-1.0-SNAPSHOT.jar org.xwiki.contrib.cli.Main --user Admin --pass admin -b localhost:8080 -p Main.WebHome --list-properties
java -cp target/cli-1.0-SNAPSHOT.jar org.xwiki.contrib.cli.Main --user Admin --pass admin -b localhost:8080 -p Main.WebHome --set-property code -v "#xwikicontent { color: pink }"
java -cp target/cli-1.0-SNAPSHOT.jar org.xwiki.contrib.cli.Main --user Admin --pass admin -b localhost:8080 -p Main.WebHome --get-content
java -cp target/cli-1.0-SNAPSHOT.jar org.xwiki.contrib.cli.Main --user Admin --pass admin -b localhost:8080 -p Main.WebHome --set-content "HELLO"
java -cp target/cli-1.0-SNAPSHOT.jar org.xwiki.contrib.cli.Main --user Admin --pass admin -b localhost:8080 -p Main.WebHome --set-title "My title"

Mount a wiki as a FUSE filesystem (--url is needed for now):

mkdir -p /tmp/xwikimount
java -cp target/cli-1.0-SNAPSHOT.jar org.xwiki.contrib.cli.Main --user Admin --pass admin -b localhost:8080 -p Main.WebHome --url http://localhost:8080/xwiki --mount /tmp/xwikimount

Note: you need to install fuse2 (on Debian and its derivatives: apt install libfuse2).