How to switch workspace to a separate command line (cli)?

How to switch workspace to jackrabbit-standalonecommand line client? I have a version 2.4.3.

I connect as follows:

java -jar jackrabbit-standalone-2.4.3.jar --cli rmi://localhost:1100/jackrabbit

It registers me as anonymous, so I switch to admin as follows:

[/] > logout

elapsed time: 2 ms.

[not logged in] > login admin admin

elapsed time: 21 ms.

[/] > info

Repository: rmi://localhost:1100/jackrabbit
User      : admin
Workspace : default
Node      : /

Session is live.
Session has no changes.

How to switch the default workspace? I could not find the information in the team help. He only says how to create a new workspace or how to clone or copy nodes to another workspace.

+3
source share
1 answer

You can do this with the command login. Allows you to get help for the command loginthrough help login:

[/] > help login

description:
Login to the current working Repository

usage:login <user> <password> -workspace <name>

<arguments>
name       argument   required   description
---------- ---------- ---------- ----------------------------------------
user       user       false      registered user name [default=anonymous]
password   password   false      password  [default = anonymous]

<options>
name       argument   required   description
---------- ---------- ---------- ----------------------------------------
workspace  name       false      workspace

So you need to log in like this:

login admin admin -workspace anotherWorkspace
+4
source

All Articles