cqcp needs -o parameter to be before -g ??
wiiitek opened this issue · 2 comments
wiiitek commented
For version 1.0.0 i had problems with cqcp command.
Please try following command arguments order:
$ cqcp -u admin -p admin -i http://127.0.0.1:5510 -g group name -o output.zip
Usage: cqcp [OPTION...] package-resource-name
Makes local copy of already uploaded package by group id and name in CQ Package
Manager using instance URL.
Examples:
cqcp -u admin pack # Get package copy named pack
cqcp -u admin -g GRP pack # Get package copy named pack in group GRP
cqcp -i http://localhost:5510 # Get package copy for localhost instance on
-g com.group stuff # tcp port 5510 named stuff in group:com.group
-p secret # with password provided: secret
-o alt-stuff.zip # with local name specified as alt-stuff.zip
Options:
-u use specified usernamed for connection
-p use provided password for authentication
-i use specified instance URL to connect
-g locate package by additional group ID
-o store local copy of package using provided filename
or path
When i call
cqcp -u admin -p admin -i http://127.0.0.1:5510 -o output.zip -g group name
then the parameters are recognized.
kitarek commented
Hi jkcog!
The problem is that you are mixing one command option (group) and one command argument (name) together. Command argument (package name) needs to be at the very end of command line
This won't work:
$ cqcp -u admin -p admin -i http://127.0.0.1:5510 -g group name -o output.zip
Usage: cqcp [OPTION...] package-resource-name
but this will be working correctly:
$ cqcp -u admin -p admin -i http://127.0.0.1:5510 -g group -o output.zip name
The order of -g and -o doesn't matter in case you are providing always options before required command arguments.
Greetings,
Arek
wiiitek commented
ok. Thank you for clarificationa!