seven-cli 0.13.0
Install from the command line:
Learn more about npm packages
$ npm install @nsftx/seven-cli@0.13.0
Install via package.json:
"@nsftx/seven-cli": "0.13.0"
About this version
Seven CLI is Seven Platform on the command line. It brings Seven Platform ecosystem to the terminal.
Seven CLI is Seven Platform command line tool. Idea behind Seven CLI is that it provides friendly alike environment where developer can easily implement features (widgets, templates etc) and not worring are proper services intalled or not.
Use npm install @nstfx/seven-cli
or globally npm install -g @nstfx/seven-cli
to install it. And that's it - you can start using Seven CLI!
Installing the CLI globally provides access to the seven
command.
seven [command]
# Run `help` for detailed information about CLI commands
seven [command] help
Alternatively you can download and run executables from Release page.
docker build . -t seven-cli/ubuntu:20.10
docker run -it seven-cli/ubuntu:20.10 seven devices:emulate --include=sps 7cc
Below are some of the most commonly used commands:
This command is made for developers so they don't need to have installed all services to run 7Shop app, for example. Seven CLI emulates it all for you.
seven devices:emulate
starts all emulators.
First, there are emulators that can be run with seven:
- sps
- fp (fical print)
- 7cc (connection checker)
- lps (local pub sub)
Also, to include or exclude specific emulators, you can use option --include
or --exclude
. It is primarily made for 7Shop and 7Terminal needs.
seven ui
opens Seven CLI UI on http://localhost:10000/, so you can manage all emulators on click.
Authenticates user on Seven Platform. It requires next options:
- keyId
- keySecret
- environment
KeyId and keySecret can be generated through admin app.
Gets list of authorized users. These are users that are previously authenticated with auth:login
command.
Switches to user from list of authorized users. It can receive next options:
- index (Ordinal number of desired user from table of authorized users. This one is optional.)
If there isn't --index option, then in terminal will be listed all authorized users and desired user can be picked using keyboard.
Removes user from list of authorized users. It has next options:
- index (Ordinal number of desired user from table of authorized users. It's optional)
- keyId (KeyId of user whose credentials needs to be removed. It's optional)
Note: you shouldn't use both - index and keyId. You should use one or other. If there isn't any options, then there will be shown list of authorized users and desired user can be picked using keyboard.
Gets list of tenants for selected users (user selected with seven auth:use
command). Highlights currenctly selected tenant - if available. Allows searching tenants in table by name or uuid.
Selects desired tenant from the list of tenants. It has one required option - index
.
Use npm run serve
to build project and watch for changes.
After that, you can use npm run start
to start CLI.
CLI can be build as node CLI (npm run build
) or as executable for Windows, Mac and Linux (npm run build:executables
).