11Shell for PHPCR
22---------------
33
4+ [ ![ Build Status] ( https://travis-ci.org/phpcr/phpcr-shell.png?branch=master )] ( https://travis-ci.org/phpcr/phpcr-shell )
5+
46Shell for PHPCR
57
68## Building
@@ -63,31 +65,39 @@ Options:
6365JCR_SQL2 Select queries can be executed in the same way as in the MySQL shell:
6466
6567` ` ` ` bash
66- PHPCR > select * from [n:unstructured]
67- | Row: # 0 Score: 3
68- | Sel: nt:unstructured Path: /foobar/barfoo UID: none
69- +-----------------+--------+----------+-----------------+
70- | Name | Type | Multiple | Value |
71- +-----------------+--------+----------+-----------------+
72- | phpcr | String | no | foo |
73- | jcr:primaryType | Name | no | nt:unstructured |
74- +-----------------+--------+----------+-----------------+
75-
76- | Row: # 1 Score: 3
77- | Sel: nt:unstructured Path: /foo UID: none
78- +-----------------+------+----------+-----------------+
79- | Name | Type | Multiple | Value |
80- +-----------------+------+----------+-----------------+
81- | jcr:primaryType | Name | no | nt:unstructured |
82- +-----------------+------+----------+-----------------+
83-
84- | Row: # 2 Score: 3
85- | Sel: nt:unstructured Path: /foobar UID: none
86- +-----------------+------+----------+-----------------+
87- | Name | Type | Multiple | Value |
88- +-----------------+------+----------+-----------------+
89- | jcr:primaryType | Name | no | nt:unstructured |
90- +-----------------+------+----------+-----------------+
68+ PHPCR > SELECT * FROM [nt:unstructured];
69+
70+ | Row: # 13 Score: 3
71+ | Sel: nt:unstructured Path: /functional/Lyon_65019 UID: e6e74fdb-d329-4405-abd6-317bd0a9a325
72+ +--------------------+--------+----------+--------------------------------------+
73+ | Name | Type | Multiple | Value |
74+ +--------------------+--------+----------+--------------------------------------+
75+ | phpcr:classparents | String | yes | |
76+ | phpcr:class | String | no | Doctrine\T ests\M odels\C MS\C msAddress |
77+ | jcr:uuid | String | no | e6e74fdb-d329-4405-abd6-317bd0a9a325 |
78+ | jcr:mixinTypes | Name | yes | [0] phpcr:managed |
79+ | | | | [1] mix:referenceable |
80+ | country | String | no | France |
81+ | jcr:primaryType | Name | no | nt:unstructured |
82+ | city | String | no | Lyon |
83+ | zip | String | no | 65019 |
84+ +--------------------+--------+----------+--------------------------------------+
85+
86+ | Row: # 14 Score: 3
87+ | Sel: nt:unstructured Path: /functional/anonymous UID: 40d35c13-083a-447d-a86a-04bfee2f0608
88+ +--------------------+--------+----------+--------------------------------------+
89+ | Name | Type | Multiple | Value |
90+ +--------------------+--------+----------+--------------------------------------+
91+ | phpcr:class | String | no | Doctrine\T ests\M odels\C MS\C msUser |
92+ | phpcr:classparents | String | yes | |
93+ | jcr:uuid | String | no | 40d35c13-083a-447d-a86a-04bfee2f0608 |
94+ | jcr:mixinTypes | Name | yes | [0] phpcr:managed |
95+ | | | | [1] mix:referenceable |
96+ | username | String | no | anonymous |
97+ | jcr:primaryType | Name | no | nt:unstructured |
98+ +--------------------+--------+----------+--------------------------------------+
99+
100+ 2 rows in set (0.04 sec)
91101` ` ` `
92102
93103# # Changing the CWD
@@ -106,9 +116,13 @@ PHPCR > pwd
106116PHPCR > mv foobar /barfoo
107117` ` ` `
108118
109- List all available commands with the ` list` command:
119+ # # All other commands
120+
121+ The PHPCR shell wraps all the commands of the ` phpcr-utils` package, list
122+ them with the ` list` command:
110123
111124` ` ` ` bash
125+ PHPCR> list
112126Available commands:
113127 cd Change the current path
114128 exit Logout and quit the shell
0 commit comments