Code Monkey home page Code Monkey logo

nuxeo-cli's Introduction

Build Status npm version npm downloads Dependency Status devDependency Status

About

Nuxeo CLI is a command-line interface for helping developers around Nuxeo ecosystem. It provides project bootstrapping, bundles hot reload,...

Overview

Nuxeo CLI includes several commands for working with your Nuxeo Project

  • bootstrap: Bootstrap Nuxeo project, bundles or several components
  • hotreload: Trigger hot reload on your development server
  • update: Keep Nuxeo CLI up to date

Installation

Install via NPM:

npm install -g nuxeo-cli

Then nuxeo executable should be available; ensure you can run:

nuxeo

Usage

nuxeo <command> [options] [args]

Options

  -h, --help     Print Nuxeo CLI version                               [boolean]
  -v, --version  Show version                                          [boolean]
  -n             Quiet - Hide welcome message                          [boolean]

Commands

Sync

Usage

nuxeo sync [--src "<src_folder>"] [--dest "<dest_folder"]

One-way Synchronization files (src folder to dest folder), then watch any changes occured in a child from the source folder to repercute it to the dest folder.

If you start this command inside a nuxeo-cli bootstrap project that has been registered for hotreload (nuxeo hotreload configure), the destination path is computed to the registered distribution.

  --dest         Destination Folder                           [string] [default:
               "/Users/foo/nuxeo-server-tomcat-9.3-SNAPSHOT/nxserver/nuxeo.war"]

If you start command inside a Studio Project clone, the source path is computed to nuxeo.war folder.

  --src          Source Folder         [default: "./studio/resources/nuxeo.war"]

You can watch several source folders:

nuxeo sync --src "<src1_folder>" --src "<src2_folder>" --src "<src3_folder>" --dest "<dest_folder"

You can fine tune which files are tracked, by overriding the pattern option:

nuxeo sync --pattern "*.js"

Options

Options:
  -h, --help     Show help                                             [boolean]
  -v, --version  Show version                                          [boolean]
  -n             Quiet - Hide welcome message                          [boolean]
  --src          Source Folder                     [default: "/tmp/watcher/src"]
  --dest         Destination Folder      [string] [default: "/tmp/watcher/dest"]
  --pattern      Glob matching pattern for synchronizable files
                              [default: "*.+(js|html|jpg|gif|svg|png|json|jsp)"]

Update

nuxeo update

Update internal generator-nuxeo module to gets latest changes without updating nuxeo-cli.

Bootstrap

nuxeo bootstrap [<generator>..] [options]

See: Generator Nuxeo Bootstrap

Bootstrap Script

Script project bootstrap by passing questions' answers as command options.

nuxeo-bootstrap [<generator>..] [options]
Options
Options:
  --dry-run, -n  Don't actually create the file(s), just list parameters,
                 default values and errors.                     [default: false]
  --help         Show help                                             [boolean]
Examples

Dry-run an operation creation to check parameters names and default values:

nuxeo-bootstrap operation -n

Create a single-module plus an operation:

nuxeo-bootstrap single-module operation --package com.sample --operation_name SampleOperation --operation_label="My Sample Operation"

hotreload

nuxeo hotreload [hotreload|configure] [options]

See: Generator Nuxeo Hotreload

Synchronize

nuxeo synchronize [synchronize|configure]

See: Generator Nuxeo Hotreload

studio

nuxeo studio [link|unlink] [options]

Link or Unlink your project to your Studio project to package it easily and be able to test ev erything together.

nuxeo studio import

Import in your project a constant file containing your Studio features in order to reuse them easily in your code.

nuxeo studio export

Export your project's contributions to the Studio registries in order to reuse them in Studio.

Proxy

Proxy configuration rely on the common global-agent module (or global-tunnel-ng before Node 10). Meaning you can use the environment variables HTTP_PROXY and HTTPS_PROXY with value format: http[s]://[username:password@]www.host.com[:1334]

HTTP_PROXY=http://john:[email protected]:1337 nuxeo b multi-module

Note: You can also exclude some urls to use the proxy by defining the NO_PROXY environment variable with value format: *.toexclude.com

Tester/Developer Environment

Lots of Nuxeo CLI logic is held in generator-nuxeo project. You must link both projects to be able to have live modifications.

npm install -g nuxeo/nuxeo-cli#master

Release

To launch the release, an annotated tag has to be pushed with the following commands:

git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin vX.Y.Z

NPM package with the X.Y.Z version will be published to https://packages.nuxeo.com/repository/npm-public/ and https://registry.npmjs.org/ (public access)

Licensing

Apache License, Version 2.0

About Nuxeo

Nuxeo dramatically improves how content-based applications are built, managed and deployed, making customers more agile, innovative and successful. Nuxeo provides a next generation, enterprise ready platform for building traditional and cutting-edge content oriented applications. Combining a powerful application development environment with SaaS-based tools and a modular architecture, the Nuxeo Platform and Products provide clear business value to some of the most recognizable brands including Verizon, Electronic Arts, Sharp, FICO, the U.S. Navy, and Boeing. Nuxeo is headquartered in New York and Paris. More information is available at www.nuxeo.com.

nuxeo-cli's People

Contributors

akervern avatar glefevre avatar yjulienne-nuxeo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gitter-badger

nuxeo-cli's Issues

C:\Users\<user>\AppData\Roaming\npm\node_modules not found

Doing this

npm install -g nuxeo-cli

getting this:

npm ERR! path C:\Users\<user>\AppData\Roaming\npm\node_modules\nuxeo-cli\node_modules\generator-nuxeo\node_modules\deasync
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
npm ERR!   deasync.cc
npm ERR! 

C:\Users\<user>\AppData\Roaming\npm\node_modules\nuxeo-cli\node_modules\generator-nuxeo\node_modules\deasync\src\deasync.cc(2,10): fatal error C1083: Cannot open include file: 'v8.h': No such file or directory

My coworker has that node_module directory, but I don't. We followed the same steps for installing Java, Maven, Node.Js, ... and can't find anything else which is different between our setups.

Not able to run sudo nuxeo sync

Hello,
I'm trying to run this command but I get the following output:

Command

sudo nuxeo sync --src studio/resources/nuxeo.war/ui/ --dest nuxeo-server-10.2-tomcat/nxserver/nuxeo.war/ui/

output

โœ– Run `/usr/local/bin/nuxeo synchronize configure` first.

system info

node --version
v8.17.0

java -version
java version "12.0.2" 2019-07-16
Java(TM) SE Runtime Environment (build 12.0.2+10)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

I also used nvm and tried node 10,12, and 14 but all return the same error

I ran nuxeo synchronize configure but that doesn't do anything from what I can tell. I prints the Nuxeo starting text but then it exits

output

dxxxxxxxxxxc    oxxo       lxxx lkkl       ;kkk
dxxxxxxxxxxxd;  oxxo       lxxx lkkkx:.  ,dkkkx
dxxc       lxxo oxxo       lxxx  "okkkkokkkkd, 
dxxc       lxxo oxxo       lxxx    .dkkkkkk.                  Welcome to
dxxc       lxxo oxxo       lxxx   ,dkkkkkkkk,                     Nuxeo CLI
dxxc       lxxo "oxxcccccccdxxx ,kkkkx" "okkkk,
loo;       :ooc   "cooooooooool xkko       ckko

:cc,       ;cc;                 oxxxxxxxxxxxxxo
dxxc       lxxo                 oxxxxxxxxxxxxxo
dxxc       lxxo                 oxxo           
dxxc       lxxo                 oxxxxxxxxxxxxxo
dxxc       lxxo                 oxxo           
"cxxoooooooxxxo                 oxxxxxxxxxxxxxo
   xoooooooxxxo                 oxxxxxxxxxxxxxo

lkkl       ;kkk oxxxxxxxxxxxxxo xooooooooooo,  
lkkkx:.  ,dkkkx oxxxxxxxxxxxxxo lxxxxxxxxxxxxb;
 "okkkkokkkkd,  oxxo            lxxd       :xxx
   .dkkkkkk.    oxxxxxxxxxxxxxo lxxd       :xxx
  ,dkkkkkkkk,   oxxo            cxxd       :xxx
,kkkkx" "okkkk, oxxxxxxxxxxxxxo  "oxxxxxxxxxxxx
xkko       ckko oxxxxxxxxxxxxxo    :xxxxxxxxxxx

when I run the sync command again it still fails. Am I doing something wrong? Also if this just copies files on my behalf can I just implement my own thing to copy files to tomcat? Does this make a WAR file for us or is it just the files?

Proxy Configuration does not work

I am using the latest verson 1.9.1 of ther toolkit. I have configured a proxy in my tcsh as follows:

setenv http_proxy proxy.mycompany.de:8080

Whenever a start the program, I get the following error:

/usr/lib/node_modules/nuxeo-cli/node_modules/global-tunnel-ng/lib/agents.js:17
  mixinProxying(this, opts.proxy);
                           ^

TypeError: Cannot read property 'proxy' of undefined
    at new OuterHttpAgent (/usr/lib/node_modules/nuxeo-cli/node_modules/global-tunnel-ng/lib/agents.js:17:28)
    at new ClientRequest (_http_client.js:126:13)
    at Object.request (http.js:46:10)
    at TunnelingAgent.request (/usr/lib/node_modules/nuxeo-cli/node_modules/global-tunnel-ng/index.js:336:40)
    at TunnelingAgent.createSocket (/usr/lib/node_modules/nuxeo-cli/node_modules/tunnel-agent/index.js:134:25)
    at TunnelingAgent.createSecureSocket [as createSocket] (/usr/lib/node_modules/nuxeo-cli/node_modules/tunnel-agent/index.js:199:41)
    at TunnelingAgent.createConnection (/usr/lib/node_modules/nuxeo-cli/node_modules/tunnel-agent/index.js:97:8)
    at TunnelingAgent.addRequest (/usr/lib/node_modules/nuxeo-cli/node_modules/tunnel-agent/index.js:91:8)
    at new ClientRequest (_http_client.js:302:16)
    at Object.request (https.js:310:10)

BTW: Why is a proxy configuration with protocol specification not made possible? The regular expression in node_modules/nuxeo-cli/lib/proxy.js seems to prohibit this: proxy.match(/^(?:([^@]+)@)?([^:]+)(?::(\d+))?$/);

No matching version found for generator-nuxeo@^3.0.1

npm install -g nuxeo-cli      
npm ERR! code ETARGET
npm ERR! notarget No matching version found for generator-nuxeo@^3.0.1.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/daniel.camargo.eti/.npm/_logs/2023-01-30T14_13_26_521Z-debug-0.log

Node version: v18.13.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.