1CMIS-CLIENT(1) libcmis 0.6.2 CMIS-CLIENT(1)
2
3
4
6 ______cmis-client ____ - command line CMIS client tool.
7
9 cmis-client help
10
11 cmis-client [-v] --url url://to/binding list-repos
12
13 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
14 -r repo-id repo-infos
15
16 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
17 -r repo-id show-root
18
19 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
20 -r repo-id get-content id
21
22 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
23 -r repo-id --input-file path/to/file --input-type mime/type
24 [--input-name name.ext] set-content id
25
26 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
27 -r repo-id [--object-type some:cmistype]
28 [--object-property prop-id=prop-value...]
29 create-folder parent-id name
30
31 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
32 -r repo-id --input-file path/to/file --input-type mime/type
33 [--input-name name.ext] [--object-type some:cmistype]
34 [--object-property prop-id=prop-value...]
35 create-document parent-id name
36
37 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
38 -r repo-id [--object-property prop-id=prop-value...]
39 update-object object-id
40
41 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
42 -r repo-id [type-by-id] | [show-by-id] | [show-by-path] |
43 [delete] arg...
44
45 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
46 -r repo-id [checkout] | [cancel-checkout] | [get-versions]
47 arg
48
49 cmis-client [-v] [-u login] [-p secret] --url url://to/binding
50 -r repo-id [--input-file path/to/file]
51 [--input-type mime/type] [--input-name name.ext]
52 [--object-property prop-id=prop-value...] [--major]
53 [--message] checkin pwc id
54
56 The cmis-client tool sends queries over the net to a CMIS-enabled
57 server to access or modify its content. It is originally demonstrating
58 what libcmis is capable of.
59
61 GLOBAL OPTIONS
62 -v, --verbose
63 Shows a lot of information to monitor what is happening behind the
64 scene. This helps a lot to debug libcmis.
65
66 --help
67 Show the help and exit. This is equivalent to use the help command.
68
69 --url url://to/binding
70 url://to/binding needs to point to the service document of either
71 AtomPub or WebService binding.
72
73 -r,--repository repo-id
74 Operate on the repo-id CMIS repository. If there is only one
75 repository on the server, this parameter is not needed and that
76 repository will be automatically selected. Use this parameter if
77 there are several repositories on the server.
78
79 -u,--username login
80 Connect as login to the CMIS server. If not provided connect
81 anonymously.
82
83 -p,--password secret
84 Use secret to authenticate on the CMIS server.
85
86 --no-ssl-check
87 Disables the SSL certificate verifications. Lowers the security,
88 but may be handy to work around bad certificates like expired or
89 self-signed ones.
90
91 --proxy url
92 Use url as the HTTP proxy. Setting this value will override the
93 system proxy settings.
94
95 --proxy-username login
96 Use login to authenticate on the HTTP proxy.
97
98 --proxy-password secret
99 Use secret to authenticate on the HTTP proxy.
100
101 --noproxy list
102 Proxy settings won't apply to hostnames and domain names listed in
103 list. This value is a coma separated list.
104
105 --oauth2-client-id client_id
106 Application client id to use in the OAuth2 authentication flow.
107
108 --oauth2-client-secret client_secret
109 Application client secret to use in the OAuth2 authentication flow.
110
111 --oauth2-auth-url url
112 URL to authenticate the user in the OAuth2 authentication flow.
113
114 --oauth2-token-url url
115 URL to authenticate the application in the OAuth2 authentication
116 flow. The access and refresh tokens are provided by this URL.
117
118 --oauth2-redirect-uri uri
119 URI where the OAuth2 authentication flow will redirect after a
120 sucessful authentication.
121
122 --oauth2-scope scope
123 Requested scope to access in the OAuth2 authentication flow.
124
125 MODIFICATION OPERATIONS OPTIONS
126 --input-file path/to/file
127 Upload path/to/file as the new content stream of the object.
128
129 --input-type mime/type
130 Set the mime type of the new content stream of the object to
131 mime/type.
132
133 --input-name name.ext
134 Set the remote content stream filename of the new content stream of
135 the object to name.ext.
136
137 --object-type some:cmistype
138 Set the object type of the CMIS object to be created to
139 some:cmistype. This is the equivalent of --object-property
140 cmis:objectTypeId=some:cmistype.
141
142 --object-property prop-id=prop-value
143 Set a property to be updated or added to the CMIS object. prop-id
144 is the property definition id and prop-value is the value to set on
145 it.
146
147 --major
148 Create a major version when performing a checkin.
149
150 -m, --message message
151 Set the checking message.
152
153 COMMANDS
154 help
155 Show the help and exit.
156
157 list-repos
158 List the repositories available on the server.
159
160 repo-infos
161 Displays the informations and capabilities of the selected
162 repository
163
164 show-root
165 Displays the root node infos and children.
166
167 get-content id
168 Download the content of the CMIS object corresponding to id in the
169 current directory.
170
171 set-content id
172 Upload a file as the content stream of the CMIS object
173 corresponding to id.
174
175 create-folder parent-id name
176 Create a sub folder in folder parent-id named name. The default
177 type of the folder to create is cmis:folder, but this can be
178 changed using --object-type option.
179
180 create-document parent-id name
181 Create a document in folder parent-id named name. The default type
182 of the document to create is cmis:document, but this can be changed
183 using --object-type option.
184
185 Note that the --input-file and --input-type may be mandatory,
186 depending on the type of the document to create and its
187 constraints.
188
189 update-object object-id
190 Replace the writeable properties given with --object-property
191 option on the object matching id object-id.
192
193 type-by-id arg...
194 Displays the infos and children (if any) of all the CMIS types
195 corresponding to the listed ids.
196
197 show-by-id arg...
198 Displays the infos and children (if any) of all the CMIS objects
199 corresponding to the listed ids.
200
201 show-by-path arg...
202 Displays the infos and children (if any) of all the CMIS objects
203 corresponding to the listed paths.
204
205 delete arg...
206 Deletes the CMIS objects corresponding to the listed ids. If the
207 node is a folder, its content will be removed as well.
208
209 checkout arg
210 Checkout the document corresponding to the provided id and display
211 the infos of the created private working copy.
212
213 cancel-checkout arg
214 Cancel the Private Working Copy corresponding to the node id.
215
216 get-versions arg
217 Display the versions (if any) of all the CMIS object corresponding
218 to the provided id.
219
220 checkin arg
221 Check in the private working copy corresponding to the provided id
222 and display the infos of the resulting document. Use the --major
223 and --message options to define the version to create and the
224 commit to associate to it. Note that repositories without the
225 ability to update the private working copies will need the
226 --input-file, --input-type and --object-property options.
227
229 Displays the root node of repository A1:
230
231 cmis-client -r A1 --url http://localhost/atom show-root
232
233 Displays the nodes with id 133 and 116 of repository A1:
234
235 cmis-client -r A1 --url http://localhost/atom show-by id 133 116
236
238 Cédric Bosdonnat
239
241 Report bugs to <https://github.com/tdf/libcmis/issues>.
242
243
244
245libcmis 0.6.2 2018-12-23 CMIS-CLIENT(1)