This following command documentation is largely generated from the CLI's own built-in help. Run each command with the --help
option to see the latest for your currently installed CLI.
- Common options
app
commandserve
commandbuild
commandtest
command (work in progress)status
commandworkspace
commandplatform
commandalias
commandokapi
commandmod
commandperm
command
The following options are available for all commands:
Option | Description | Type | Notes |
---|---|---|---|
--help |
Show help | boolean | |
--version |
Show version number | boolean | |
--interactive |
Enable interactive input (use --no-interactive to disable) | boolean | default: true |
Examples:
Show help for the build command:
stripes build --help
Disable interactive option
stripes app create "Hello World" --no-interactive
Commands to create and manage stripes UI apps
Usage:
stripes app <command>
Sub-commands:
stripes app create [name]
stripes app perms
Create a new Stripes app module
Usage:
stripes app create [name]
Positional | Description | Type | Notes |
---|---|---|---|
name |
Name of the app | string |
Option | Description | Type | Notes |
---|---|---|---|
--desc |
Description of the app | string | |
--install |
Yarn install dependencies | boolean | default: true |
--assign |
Assign new app permission to the given user (includes pushing module descriptor to Okapi and enabling for tenant) | string |
Examples:
Create new Stripes UI app, directory, and install dependencies:
stripes app create "Hello World"
Create app and assign permissions to user diku_admin:
stripes app create "Hello World" --assign diku_admin
Create new Stripes UI app, but do not install dependencies:
stripes app create "Hello World" --no-install
View list of permissions for the current app (app context)
Usage:
stripes app perms
Examples:
View current app permissions:
stripes app perms
Assign current app permissions to user diku_admin:
stripes app perms | stripes perm assign --user diku_admin
Serve up a development build of Stripes
Usage:
stripes serve [configFile]
Positional | Description | Type | Notes |
---|---|---|---|
configFile |
File containing a Stripes tenant configuration | string |
Option | Description | Type | Notes |
---|---|---|---|
--hasAllPerms |
Set "hasAllPerms" in Stripes config | boolean | |
--languages |
Languages to include in tenant build | array | |
--port |
Development server port | number | default: 3000 |
--host |
Development server host | string | |
--cache |
Use HardSourceWebpackPlugin cache | boolean | |
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--existing-build |
Serve an existing build from the supplied directory | string | |
--prod |
Use production build settings | boolean | |
--dev |
Use development build settings | boolean | |
--publicPath |
Specify the Webpack publicPath output option | string | |
--devtool |
Specify the Webpack devtool for generating source maps | string | |
--lint |
Show eslint warnings with build | boolean | |
--maxChunks |
Limit the number of Webpack chunks in build output | number |
Examples:
Serve an app (in app context) with permissions flag set for development:
stripes serve --hasAllPerms
Serve a platform defined by the supplied configuration:
stripes serve stripes.config.js
Serve a build previously created with "stripes build":
stripes serve --existing-build output
Build a Stripes tenant bundle
Usage:
stripes build [configFile] [outputPath]
Positional | Description | Type | Notes |
---|---|---|---|
configFile |
File containing a Stripes tenant configuration | string | |
outputPath |
Directory to place build output | string |
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--hasAllPerms |
Set "hasAllPerms" in Stripes config | boolean | |
--languages |
Languages to include in tenant build | array | |
--output |
Directory to place build output | string | |
--sourcemap |
Include sourcemaps in build output | boolean | |
--analyze |
Run the Webpack Bundle Analyzer after build (launches in browser) | boolean | |
--prod |
Use production build settings | boolean | |
--dev |
Use development build settings | boolean | |
--publicPath |
Specify the Webpack publicPath output option | string | |
--devtool |
Specify the Webpack devtool for generating source maps | string | |
--lint |
Show eslint warnings with build | boolean | |
--maxChunks |
Limit the number of Webpack chunks in build output | number |
Examples:
Platform context build:
stripes build stripes.config.js dir
App context build using virtual platform:
stripes build --output=dir
Run the current app module's tests
Usage:
stripes test
Sub-commands:
stripes test karma [configFile]
stripes test nightmare [configFile]
Option | Description | Type | Notes |
---|---|---|---|
--port |
Development server port | number | default: 3000 |
--host |
Development server host | string | |
--cache |
Use HardSourceWebpackPlugin cache | boolean | |
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--hasAllPerms |
Set "hasAllPerms" in Stripes config | boolean | |
--languages |
Languages to include in tenant build | array |
Examples:
Serve app and run it's demo.js Nightmare tests:
stripes test nightmare --run=demo
Run Karma tests for the current app module:
stripes test karma
Run the current app module's Nightmare tests
Usage:
stripes test nightmare [configFile]
Positional | Description | Type | Notes |
---|---|---|---|
configFile |
File containing a Stripes tenant configuration | string |
Option | Description | Type | Notes |
---|---|---|---|
--port |
Development server port | number | default: 3000 |
--host |
Development server host | string | |
--cache |
Use HardSourceWebpackPlugin cache | boolean | |
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--hasAllPerms |
Set "hasAllPerms" in Stripes config | boolean | |
--languages |
Languages to include in tenant build | array | |
--run |
Name of the test script to run | string | |
--show |
Show UI and dev tools while running tests | boolean | |
--url |
URL of FOLIO UI to run tests against | string | |
--local |
Shortcut for --url http://localhost:3000 | boolean | defaults to --host and --port |
--uiTest |
Additional options for ui-testing framework |
Examples:
Serve app or platform and run all of its Nightmare tests:
stripes test nightmare
Serve app or platform and run its demo.js Nightmare tests:
stripes test nightmare --run demo
Run Nightmare tests against a locally hosted instance of FOLIO:
stripes test nightmare --local
Run Nightmare tests against an external instance of FOLIO:
stripes test nightmare --url http://folio-testing.aws.indexdata.com/
Specify a username via ui-testing's test-module CLI options:
stripes test nightmare --uiTest.username admin
Run the current app module's Karma tests
Usage:
stripes test karma [configFile]
Positional | Description | Type | Notes |
---|---|---|---|
configFile |
File containing a Stripes tenant configuration | string |
Option | Description | Type | Notes |
---|---|---|---|
--port |
Development server port | number | default: 3000 |
--host |
Development server host | string | |
--cache |
Use HardSourceWebpackPlugin cache | boolean | |
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--hasAllPerms |
Set "hasAllPerms" in Stripes config | boolean | |
--languages |
Languages to include in tenant build | array | |
--coverage |
Enable Karma coverage reports | boolean | |
--karma |
Options passed to Karma using dot-notation and camelCase: --karma.browsers=Chrome --karma.singleRun |
Examples:
Run tests with Karma for the current app module:
stripes test karma
Display Stripes CLI status information
Usage:
stripes status [configFile]
Positional | Description | Type | Notes |
---|---|---|---|
configFile |
File containing a Stripes tenant configuration | string |
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--hasAllPerms |
Set "hasAllPerms" in Stripes config | boolean | |
--languages |
Languages to include in tenant build | array | |
--platform |
View development platform status | boolean |
Create a Yarn workspace for Stripes development, select modules, clone, and install.
Usage:
stripes workspace
Option | Description | Type | Notes |
---|---|---|---|
--dir |
Directory to create | string | default: stripes |
--modules |
Stripes modules to include | array | |
--default.okapi |
Default Okapi URL for CLI config | string | default: http://localhost:9130 |
--default.tenant |
Default tenant for CLI config | string | default: diku |
--clone |
Clone the selected modules's repositories | boolean | default: true |
--install |
Install dependencies | boolean | default: true |
Examples:
Create a "stripes" dir and prompt for modules:
stripes workspace
Create an "temp" dir and prompt for modules:
stripes workspace --dir temp
Create and select ui-users and stripes-core:
stripes workspace --modules ui-users stripes-core
Create and select all available modules:
stripes workspace --modules all
Create without installing dependencies:
stripes workspace --no-install
Commands to manage stripes UI platforms
Usage:
stripes platform <command>
Sub-commands:
stripes platform clean
stripes platform install
stripes platform pull
Git pull latest code for a platform or workspace including aliases
Usage:
stripes platform pull
Examples:
Pull all clean repositories including aliases:
stripes platform pull
Remove node_modules for active platform, workspace, and aliases
Usage:
stripes platform clean
Option | Description | Type | Notes |
---|---|---|---|
--install |
Install dependencies after cleaning | boolean | default: false |
Examples:
Clean and reinstall dependencies:
stripes platform clean --install
Clean only:
stripes platform clean
Yarn install platform or workspace dependencies including aliases
Usage:
stripes platform install
Maintain global aliases that apply to all platforms and apps
Usage:
stripes alias <sub> [mod] [path]
Positional | Description | Type | Notes |
---|---|---|---|
sub |
Alias operation | string | (*) choices: "add", "list", "remove", "clear" |
mod |
UI module to alias | string | |
path |
Relative path to UI module | string |
Examples:
stripes alias remove @folio/ui-users:
stripes alias add @folio/ui-users ./path/to/ui-users
Okapi commands (login and logout)
Usage:
stripes okapi <command>
Sub-commands:
stripes okapi login <username> [password]
stripes okapi logout
stripes okapi token
Log into an Okapi tenant persist the token
Usage:
stripes okapi login <username> [password]
Positional | Description | Type | Notes |
---|---|---|---|
username |
Okapi tenant username | string | (*) |
password |
Okapi tenant password | string |
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | (*) |
--tenant |
Specify a tenant ID | string | (*) |
Examples:
stripes okapi login diku_admin --okapi http://localhost:9130 --tenant diku
Given okapi and tenant are already set:
stripes okapi login diku_admin
Clear previously saved Okapi token.
Usage:
stripes okapi logout
Display the stored Okapi token
Examples:
Display the stored Okapi token:
stripes okapi token
Commands to manage UI module descriptors
Usage:
stripes mod <command>
Sub-commands:
stripes mod add
stripes mod descriptor
stripes mod disable
stripes mod enable
stripes mod install
stripes mod remove
stripes mod update
stripes mod view
Add an app module descriptor to Okapi
Usage:
stripes mod add
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--strict |
Include required interface dependencies | boolean | default: false |
Examples:
stripes mod add
Remove an app module descriptor from Okapi
Usage:
stripes mod remove
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string |
Examples:
stripes mod remove
Enable an app module descriptor for a tenant in Okapi
Usage:
stripes mod enable
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--ids |
Module descriptor ids | array | supports stdin |
Examples:
Enable the current ui-module (app context):
stripes mod enable --tenant diku
Enable module ids "one" and "two" for tenant diku:
stripes mod enable --ids one two --tenant diku
Enable module ids "one" and "two" for tenant diku with stdin:
echo one two | stripes mod enable --tenant diku
Disable modules for a tenant in Okapi
Usage:
stripes mod disable
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--ids |
Module descriptor ids | array | supports stdin |
Examples:
Disable the current ui-module (app context):
stripes mod disable --tenant diku
Disable module ids "one" and "two" for tenant diku:
stripes mod disable --ids one two --tenant diku
Disable module ids "one" and "two" for tenant diku with stdin:
echo one two | stripes mod disable --tenant diku
Update an app module descriptor in Okapi
Usage:
stripes mod update
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string |
stripes mod update
Generate module descriptors for an app or platform.
Usage:
stripes mod descriptor
Option | Description | Type | Notes |
---|---|---|---|
--configFile |
File containing a Stripes tenant configuration (platform context only) | string | |
--full |
Return full module descriptor JSON | boolean | default: false |
--strict |
Include required interface dependencies | boolean | default: false |
Examples:
Display module descriptor id for current app:
stripes mod descriptor
Display module descriptor ids for platform:
stripes mod descriptor --configFile stripes.config.js
Display full module descriptor as JSON:
stripes mod descriptor --full
View enabled module ids for a tenant in Okapi
Usage:
stripes mod view
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string |
Examples:
View enabled module ids for tenant diku:
stripes mod view --tenant diku
Enable, disable, or upgrade one or more modules for a tenant in Okapi (work in progress)
Usage:
stripes mod install
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--ids |
Module descriptor ids | array | supports stdin |
Examples:
Install modules "one" and "two":
stripes mod install --ids one two --tenant diku
Install module ids "one" and "two" using stdin:
echo one two | stripes mod install --tenant diku
Commands to manage UI module permissions
Usage:
stripes perm <command>
Sub-commands:
stripes perm assign
stripes perm create [name]
stripes perm unassign
stripes perm view
Adds new UI permission to permissionSet
Usage:
stripes perm create [name]
Positional | Description | Type | Notes |
---|---|---|---|
name |
Name of the permission | string |
Option | Description | Type | Notes |
---|---|---|---|
--desc |
Description of the permission | string | |
--visible |
Permission is visible in the UI | boolean | default: true |
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--push |
Push the permission to Okapi by adding/updating module descriptor | boolean | default: false |
--assign |
Assign the permission to the given user (requires --push) | string |
Examples:
Create a new permission for this UI module:
stripes perm create ui-my-app.example
Create a new permission, update the module descriptor, and assign permission to user someone:
stripes perm create ui-my-app.example --push --assign someone
Assign permission to a user
Usage:
stripes perm assign
Option | Description | Type | Notes |
---|---|---|---|
--name |
Name of the permission | string | supports stdin |
--user |
Username to assign permission to | string | alias: assign |
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string |
Examples:
Assign permission to user diku_admin:
stripes perm assign --name module.hello-world.enabled --user diku_admin
Assign permissions from user jack to user jill:
stripes perm view --user jack | stripes perm assign --user jill
Unassign permissions from a user
Usage:
stripes perm unassign
Option | Description | Type | Notes |
---|---|---|---|
--name |
Name of the permission | string | supports stdin |
--user |
Username to unassign permission from | string | |
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string |
Examples:
Unassign permission from user diku_admin:
stripes perm unassign --name module.hello-world.enabled --user diku_admin
View permissions for a user
Usage:
stripes perm view
Option | Description | Type | Notes |
---|---|---|---|
--okapi |
Specify an Okapi URL | string | |
--tenant |
Specify a tenant ID | string | |
--user |
Username | string | (*) |
Examples:
View permissions for user diku_admin:
stripes perm view --user diku_admin