extremum CLI — is a command-line tool that automates routine tasks, such as configuring your application after deployment to a new environment.
With extremum CLI, you can:
extremum CLI is the main platform administration interface.
install required software if you have not done so before
$ npm install -g extremum-cli
$ extremum
Usage: extremum [options] [command]
Extremum command-line interface
Options:
-v, --version output the version number
-h, --help display help for command
Commands:
add <app_name> add application
help [command] display help for command
First of all, you need to authenticate in the platform
$ mycoolapp client login --url https://auth.app-0.<your-domain-extremum>/
You will be redirected to your browser to enter your credentials
After successful login, the browser will open a page with the text "Now you may close this page"
To avoid specifying a URL each time in the parameters, create the following environment variable:
EXTREMUM_AUTH_URL=https://auth.app-0.<your-domain-extremum>/
After authentication, you have access to CLI commands designed to manage the platform and work with data
By default, use the mycoolapp
command to work with extremum.cli. You can change the command to match the name of your app:
$ mycoolapp rename app guitarshop
Now you can access the CLI by the new name:
$ guitarshop
Usage: guitarshop [options] [command]
Extremum command-line interface
Options:
-v, --version output the version number
-h, --help display help for command
Commands:
app manage your apps
rename rename this command
client client configuration and login
iam identity and access management
signals send and receive signals
storage manage persistent data
functions manage serverless functions and packages
help [command] display help for command
Use commands mycoolapp help
and mycoolapp <section> [<subsection>] help [<command>]
for CLI usage tips:
Section Assistance iam:
$ mycoolapp iam help
Usage: mycoolapp iam [options] [command]
identity and access management
Options:
-h, --help display help for command
Commands:
user manage users
roles manage user roles
rules manage access control rules
help [command] display help for command
Subsection Assistance roles undressed iam:
$ mycoolapp iam roles help
Usage: mycoolapp iam roles [options] [command]
manage user roles
Options:
-h, --help display help for command
Commands:
create <role-name> <role-description> create a role
ls list roles
get <role-name> get role metadata
remove <role-name> remove a role
help [command] display help for command
Command Assistance create subsection roles undressed iam:
$ mycoolapp iam roles help create
Usage: mycoolapp iam roles create [options] <role-name> <role-description>
create a role
Options:
-h, --help display help for command
Create Alias for CLI
syntax
$ mycoolapp rename app <new-name>
parameters
description
Creates an alternate name for the CLI call command, which can be used in the future along withmycoolapp
. Multiple alternate names can be created
Platform Authentication
syntax
$ mycoolapp client login [options]
parameters
are absent
options
EXTREMUM_AUTH_URL
)description
Opens the authentication page in the browser. After checking the credentials entered by the user, writes the authentication service URL, application ID, and access token to the configuration file. When the user works with the CLI, this data is used to access the platform API
Application initialization
syntax
$ mycoolapp app init <app-id>
parameters
description
Creates a subdirectory in the current directory with a name that matches the name of the command used to run the CLI (for example, when executing the command guitarshop app init 0
a directory named will be created guitarshop
. The source code of the web frontend example is placed in the created directory, which can serve as a starting point for the further implementation of the application functionality
application deployment
This command is not implemented in platform version 3.0
Create Role
syntax
$ mycoolapp iam roles create <role-name> <role-description>
parameters
description
Creates a user role with the specified name and description
Delete Role
syntax
$ mycoolapp iam roles remove <role-name>
parameters
description
Deletes the user role with the specified name
Get Role Information
syntax
$ mycoolapp iam roles get <role-name>
parameters
description
Displays information about the role of users with the specified name to the terminal
Get Role List
syntax
$ mycoolapp iam roles ls
parameters
are absent
description
Displays the list of user roles to the terminal
Add Access Control Rules
syntax
$ mycoolapp iam rules create <new-rules>
parameters
description
Adds new access control rules to the bottom of the rules list
Download access control rules and replace existing rules with new rules
syntax
$ mycoolapp iam rules replace <filename>
parameters
description
Replaces existing access control rules with rules from the transferred file
Get valid access control rules
syntax
$ mycoolapp iam rules get
parameters
are absent
description
Displays the current access control rules in the form of source code to the terminal access rule description language
Add User
syntax
$ mycoolapp iam users create [options] <username>
parameters
options
description
Registers a new platform user
Update User Data
syntax
$ mycoolapp iam users update [options] <username>
parameters
options
description
Updates user data according to the transmitted patch
Update User Data
syntax
$ mycoolapp iam users remove <username>
parameters
description
Removes a user from the platform user database
Get User Data
syntax
$ mycoolapp iam users get <username>
parameters
description
Displays user information to the terminal
Get User List
syntax
$ mycoolapp iam users ls
parameters
are absent
description
Displays platform user information to the terminal
Change User Password
syntax
$ mycoolapp iam users password [options] <username>
parameters
options
description
Sets a new password for the platform user
Add Authentication Settings for Client Application
syntax
$ mycoolapp iam clients create <filename>
parameters
description
Registers a new client application and configures its user authentication settings
Update Client Authentication Settings
syntax
$ mycoolapp iam clients update [options] <client-id>
parameters
options
description
Updates authentication settings in the client application according to the patch passed
Delete Client Authentication Settings
syntax
$ mycoolapp iam clients remove <client-id>
parameters
description
Removes authentication settings for the client application from the authentication service database
Get Authentication Settings for Client Application
syntax
$ mycoolapp iam clients get <client-id>
parameters
description
Displays authentication settings for the client application to the terminal
Get a list of client applications
syntax
$ mycoolapp iam clients ls
description
Displays authentication settings for each client application to the terminal
Sends a signal
syntax
$ mycoolapp signals send <exchange-id>
parameters
options
description
Sends a signal
Get Subscription Signals
syntax
$ mycoolapp signals poll <subscription-id>
parameters
description
Outputs signals to the terminal for the specified subscription without removing them from the receiver queue
Create Subscription
syntax
$ mycoolapp signals subscribe [options] <exchange-id>
parameters
options
description
Creates a subscription and displays its ID to the terminal
Unsubscribe
syntax
$ mycoolapp signals unsubscribe [options] <subscription-id>
parameters
description
Cancels subscription
Get a list of signal exchange points
syntax
$ mycoolapp signals ls-exchanges
parameters
are absent
description
Displays the list of signal exchange points to the terminal
Get Subscription List
syntax
$ mycoolapp signals ls-subscriptions [options]
parameters
are absent
options
description
Displays a list of subscriptions to the terminal. If exchange is specified, subscriptions for the specified exchange point will be displayed, otherwise all subscriptions will be displayed
Create Entity Instance
syntax
$ mycoolapp storage entities create <collection>
parameters
options
description
Creates an instance of an entity and outputs its identifier to the terminal
Update Entity Instance
syntax
$ mycoolapp storage entities update [options] <instance-uuid>
parameters
options
description
Updates the entity instance with the specified identifier according to the patch and displays the updated state to the terminal
Delete Entity Instance
syntax
$ mycoolapp storage entities remove <instance-uuid>
parameters
description
Deletes an entity instance
Get Entity Instance Data
syntax
$ mycoolapp storage entities get <instance-uuid>
parameters
description
Outputs entity instance data with the specified identifier to the terminal
Get Entity Instance Collection Contents
syntax
$ mycoolapp storage entities ls [options] <collection>
parameters
options
description
Displays collection item data to the terminal
Link Two Objects
syntax
$ mycoolapp storage entities link [options] <subject> <object>
parameters
options
description
Creates an RDF relationship with the specified predicate between entity instances or other objects
Remove Link Between Objects
syntax
$ mycoolapp storage entities unlink [options] <subject> <object>
parameters
options
description
Deletes the RDF link to the specified predicate between entity instances or other objects
Get List of Links for Communication Entity
syntax
$ mycoolapp storage entities ls-links [options] <subject>
parameters
options
description
Outputs to the terminal a list of RDF links for a given subject. If a predicate is specified, only associations with that predicate are output
Run GraphQL Query
syntax
$ mycoolapp storage entities graphql [options] <subject>
parameters
are absent
options
Only one of the options must be specified --file or --query when using this command
description
Executes a GraphQL request (query or mutation) and outputs the result to the terminal
Update Entity Model Configuration
syntax
$ mycoolapp storage models update [options] <model-name>
parameters
options
description
Updates entity model configuration
Only model settings can be modified in platform version 3.0 (property
settings
), but not a data scheme
Get Entity Model Information
syntax
$ mycoolapp storage models get <model-name>
parameters
description
Displays entity model information, including JSON schema and settings, to the terminal
Get List of Entity Models
syntax
$ mycoolapp storage models ls [options]
parameters
are absent
options
description
Displays information about entity models, including JSON schema and settings, to the terminal. If the * prefix * option is passed, the models whose names begin with the corresponding prefix are selected.
Place Data in Binary Data Store
syntax
$ mycoolapp storage binary put [options] <object-key> <file-path>
parameters
options
description
Loads the file or contents of the directory (if the recursive option is passed) into the binary store
Get Data from Binary Data Store
syntax
$ mycoolapp storage binary get <object-key>
parameters
description
Displays the data stored at the specified key in the standard output stream
Delete Data from Resource Store
syntax
$ mycoolapp storage binary remove <object-key>
parameters
description
Deletes the key and its associated data from the vault
Get Key Metadata in Binary Store
syntax
$ mycoolapp storage binary describe <object-key>
parameters
description
Outputs metadata corresponding to the specified key to the terminal
Get List of Binary Storage Keys
syntax
$ mycoolapp storage binary ls <prefix>
parameters
options
description
Lists the binary storage keys for the specified prefix to the terminal
Create a pre-signed form to load data into the binary data store
syntax
$ mycoolapp storage binary post-form <object-key>
parameters
description
Outputs to the terminal data for the object load-once form to S3-compatible binary storage at the specified key
Generate URL for temporary access to binary storage
syntax
$ mycoolapp storage binary presign-url [options] <object-key>
parameters
options
description
Generates and outputs to the terminal a temporary link, with which it is possible to perform specified operations on a limited set of keys for a limited period of time
Create a bucket (for binary storages that support the bucket concept)
syntax
$ mycoolapp storage buckets create <bucket-name>
parameters
description
Creates a bucket in binary storage. Not supported for vaults that do not have a bucket concept
Remove the bucket (for binary storage that supports the bucket concept)
syntax
$ mycoolapp storage buckets remove <bucket-name>
parameters
description
Deletes the bucket in the binary store. Not supported for vaults that do not have a bucket concept
Get bucket metadata (for binary stores that support the bucket concept)
syntax
$ mycoolapp storage buckets describe <bucket-name>
parameters
description
Outputs the metadata of the bucket in the binary store to the terminal. Not supported for vaults that do not have a bucket concept
Get a list of buckets (for binary storages that support the concept of bucket)
syntax
$ mycoolapp storage buckets ls
parameters
are absent
description
Displays a list of binary storage buckets to the terminal. Not supported for vaults that do not have a bucket concept
Create a binary store trigger (for binary stores that support the bucket concept)
syntax
$ mycoolapp storage buckets create-trigger [options] <bucket-name>
parameters
options
description
Creates a binary store trigger for the specified event and key prefix and assigns it as a handler to the specified function
Delete binary storage trigger (for binary storage that supports the concept of bucket)
syntax
$ mycoolapp storage buckets remove-trigger [options] <bucket-name>
parameters
options
description
Deletes the binary store trigger for the specified key prefix and handler function
Mount the bucket to a binary storage key perfix (for binary storage that supports the bucket concept)
syntax
$ mycoolapp storage buckets mount <prefix> <bucket>
parameters
description
Creates a mount point that displays binary storage keys with a prefix prefix per bucket bucket. Not supported for vaults that do not have a bucket concept
Remove mount point for bucket (for binary stores supporting bucket concept)
syntax
$ mycoolapp storage buckets unmount <bucket>
parameters
description
Deletes the mount point that maps the binary storage keys to the bucket bucket. Not supported for vaults that do not have a bucket concept
Get a list of mount points (for binary storages that support the bucket concept)
syntax
$ mycoolapp storage buckets ls-mount
parameters
are absent
description
Displays a list of mount points that map binary storage keys to physical binary bins. Not supported for vaults that do not have a bucket concept
Create Batch Data Job in Binary Store
syntax
$ mycoolapp storage jobs create
parameters
are absent
options
description
Creates and queues a bulk processing job in a binary store. Displays the ID of the created job to the terminal
Get information about the job for mass processing of data in binary storage
syntax
$ mycoolapp storage jobs describe <job-id>
parameters
description
Outputs job information to the terminal
Get a list of bulk processing jobs in binary storage
syntax
$ mycoolapp storage jobs ls
parameters
are absent
description
Lists scheduled, active and completed bulk processing jobs in the binary store to the terminal
Cancel Bulk Data Job in Binary Store
syntax
$ mycoolapp storage jobs cancel <job-id>
parameters
description
Cancels a scheduled or active bulk job in a binary store
Create Function or Feature Package
syntax
$ mycoolapp functions create [options] <function-name>
parameters
options
description
Creates and deploys a function or package of functions in a runtime environment, making it available for call and/or handler assignment of a trigger or signals
Create a new version of a function or feature package
syntax
$ mycoolapp functions create [options] <function-name>
parameters
options
description
Creates and deploys in the runtime a new version of an existing function or feature package, making it available for invocation and/or designation by a trigger or signal handler
Remove Function or Feature Package
syntax
$ mycoolapp functions remove [options] <function-name>
parameters
options
description
Deletes a function or function package or a specific version of a function/package. After removal, the function becomes unavailable for a call and/or a trigger or signal handler to assign
Get Feature or Feature Package Information
syntax
$ mycoolapp functions describe <function-name>
parameters
description
Displays function or feature package information to the terminal
Get a list of functions and feature packages
syntax
$ mycoolapp functions ls
parameters
are absent
description
Lists the functions or feature packages deployed in the platform to the terminal
Call function
syntax
$ mycoolapp functions call [options] <function-name>
parameters
options
description
Calls the function and outputs its return value to the terminal
Get Archive with Function Code or Feature Package
This command is not implemented in platform version 3.0
syntax
$ mycoolapp functions get-code [options] <function-name>
parameters
options
description
Displays the contents of the zip archive with the function code or function package in the stream of standard output in the form in which it was transmitted when the function was created. Returns an error if a Docker image was used to create a function/package