The yuuvis client CLI is a command-line interface tool that you can use to initialize and scaffold yuuvis MOMENTUM client applications directly from a command shell.
Required are:
- Node.js 18 or later
- git
This CLI package follows a synchronized versioning strategy with the Angular framework. Each major version of the CLI is designed to support the corresponding Angular version and corresponds to a specific major version of the @yuuvis/client-shell:
-
v18
of@yuuvis/client-cli
is compatible with Angular 18 and corresponds to major version 1 of@yuuvis/client-shell
-
v19
of@yuuvis/client-cli
is compatible with Angular 19 and corresponds to major version 2 of@yuuvis/client-shell
Make sure to install a CLI version that matches both your Angular version and the required @yuuvis/client-shell
version for full compatibility.
Install the yuuvis client CLI globally:
npm install -g @yuuvis/client-cli
yuv <command> <value> [options]
Creates a new yuuvis client project based on Angular Schematics. The created application is based upon the standalone API and uses scss
for style files.
yuv new <name> [options]
<name>
: The name of the project.
-
--skip-git
: Do not initialize a git repository. -
--skip-install
: Do not install dependency packages. -
--skip-tests
: Do not generatespec.ts
test files for the new project.
Creates an app in the current workspace. By default, the generated app contains both the UI and extension parts.
yuv generate app <name> [options]
# short form
yuv g a <name> [options]
<name>
: The name of the app.
-
--app-header
: Use the shell's app header layout. -
--app-id
: The ID of the app. -
--hide-from-nav
: Do not show the app icon i the navigation bar. -
--prefix
: A prefix to apply to generated selectors. -
--route
: The route under which the app is registered in the client. -
--skip-extension
: Do not create extension for the app.
Adds an existing app to the client.
yuv add app <name>
# short form
yuv a a <name>
<name>
: The name of the app. Similar to npm install
, you can use [<@scope>/]<name>@<version>
or [<@scope>/]<name>@<tag>
for adding a specific version or tag of the app, e. g.:
yuv add app @myscope/mylib@1.0.0
or
yuv add app @myscope/mylib@latest
Lists all available patches.
yuv patch list
# short form
yuv p l
Applies the patch with the given ID to the current client project if necessary.
yuv patch apply <patchID>
# short form
yuv p a <patchID>