quick utility to upload files to Nuxeo
In a node environment with correct permission you can install into the global node environment with
npm -g install https://github.com/ucldc/nxcli/archive/master.tar.gz
Then you can run the nx ...
commands.
If you don't want to install into the global node_modules, recient
versions of npm
ship with a npx
utility.
npm install https://github.com/ucldc/nxcli/archive/master.tar.gz
Then you can run commans as npx nx ...
.
nvm
can be used to maintain
multiple node environments with different versions.
nx --help
nx upfile --help
nx mkdoc --help
nx ls --help
nx q --help
In the future, there may be added more nx
commands; such as
nx updir
recursivly upload directory
needs a better package name
-
should work the the latest stable version of node. For example
nvm install stable
if usingnvm
. -
npm link .
is very helpful during development -
npm install https://github.com/ucldc/nxcli/archive/master.tar.gz
-
Writing Command Line Tools with Node 01 March 2015 by Jack Franklin http://javascriptplayground.com/blog/2015/03/node-command-line-tool/
uses the same rcfile as pynux, often in ~/.pynux
.
[nuxeo_account]
method = token
user = Administrator
password = Administrator
X-Authentication-Token = xxkxkx
[rest_api]
; pynux style
base = http://localhost:8080/nuxeo/site/api/v1
; js style
baseURL = http://localhost:8080/nuxeo/
restPath = site/api/v1/
automationPath = site/api/v1/automation/
timeout = 3000