Terminal

The terminal is an experimental shell feature.

Available commands:

CommandDescription
cd

Changes the current working directory.

cp

Copies a node.

find

Finds nodes.

grep

Prints lines matching a pattern.

help

Prints help.

lock

Locks node.

ls

Lists information about the nodes (the current directory by default).

mkdir

Creates a folder.

mv

Moves a node.

perms

Changes the node permissions.

properties

Shows the node properties.

pwd

Prints the name of the current/working folder.

rename

Renames a node.

rm

Removes a node.

unlock

Unlocks a node.

version

Shows the OpenKM version.

To extend available commands check Creating your own Command shell plugin.

Example of usage

OpenKM Terminal
Type 'help' to get command list
okmAdmin@openkm:~$ pwd
okmAdmin@openkm:~$ ls -a -d -a -p -s -v
2015-07-02 01:10:14        0                  okmAdmin        /okm:root/folder
2015-07-02 01:16:12        0                  okmAdmin        /okm:root/folder3
2015-07-01 05:18:00   139215                  okmAdmin    1.1 /okm:root/redacted_481.pdf
2015-07-02 01:42:11      718                  okmAdmin        /okm:root/d9592728-6234-419e-b46f-995b47529fb7-test
2015-07-02 01:38:08        0                  okmAdmin        /okm:root/record
okmAdmin@openkm:~$ cd folder
okmAdmin@openkm:~$ ls
Administration.html 
okmAdmin@openkm:~$ properties Administration.html
Object type: document
UUID: 19dcc9cf-f348-4773-83d4-f6350f3f9aeb
Name: Administration.html
Path: /okm:root/folder/Administration.html
Title: 
Class: 0
Size: 68
Version: 1.1
Checksum: c2c47ebe1a6d7828db2325af9fabeec7
Language: es
Created: 2015-07-02 11:34:21 
Created by: okmAdmin
Modified: 2015-07-02 11:35:32 
Modified by: okmAdmin
MIME type: text/html
Status: Available
Signed: No
Description: 
Subscribed: No
okmAdmin@openkm:~$ pwd
/okm:root/folder/
okmAdmin@openkm:~$ mkdir test
okmAdmin@openkm:~$ ls 
test 
Administration.html
okmAdmin@openkm:~$ mv Administration.html test/.
okmAdmin@openkm:~$ ls
test 
okmAdmin@openkm:~$ cd test
okmAdmin@openkm:~$ ls 
Administration.html
Table of contents [ Hide Show ]