Reference

App CLI commands

Technical reference for the Nextmv CLI command set for applications.

The nextmv app command set is used to manage and run custom decision applications.

For this first release you can push new binaries to Nextmv Cloud and run them remotely with Nextmv CLI or using the Nextmv Cloud REST API.

nextmv app [command]
Copy

To display more information about a command, use the help command or one of the help global flags: --help, -h.

nextmv help app
Copy

Available Commands

CommandDescriptionFlags
createCreates a new application in your account--app-id, --description, --name
deleteDeletes an application--app-id, --confirm
getGets an application configured in your account--app-id
listLists the applications configured for your account
promotePromotes an application version--app-id, --description, --name
pushPushes the current project to a cloud application--app-id
resultGets the results of an application run--app-id, --output, --run-id
runRuns an application instance configured in your account--app-id, --default, --input, --instance, --timeout, --wait
updateUpdates an application--app-id, --description, --instance-id, --name
versionA subsuite of commands to manage the versions for your application
instanceA subsuite of commands to manage the instances for your application

create

nextmv app create [flags]
Copy

The create subcommand creates a new application. An application represents a problem you are solving, for example pizza delivery. It contains things like binaries, versions, and instances used in managing and running your application.

These are the available flags for the create subcommand:

FlagDescription
-a, --app-id stringRequired The id of the app. Must be unique within your account and can contain lower case letters, numbers, and dashes. The maximum length is 30 characters.
-n, --name stringRequired The name for the application.
-d, --description stringOptional The description for the application.

delete

nextmv app delete [flags]
Copy

The delete subcommand deletes an application. When you delete an application all of the versions and instances are also deleted.

FlagDescription
-a, --app-id stringRequired The id of the application to delete.

get

nextmv app get [flags]
Copy

The get subcommand gets the information related to an application.

FlagDescription
-a, --app-id stringRequired The id of the application to get.

list

nextmv app list [flags]
Copy

The list subcommand lists all of the applications for your account.

promote

nextmv app promote [flags]
Copy

The promote subcommand creates a new version of an application from the last pushed binary, and assigns that version to the default instance.

Note: For this release, a single default application instance is supported. In the future, an application will have the ability to contain multiple instances with different configurations and more.

Since the CLI is oriented towards the developer, remote runs made through the CLI that don't specify an instance will run the last pushed binary. (The default instance can be specified with the --default flag.)

Calls made to the Nextmv Cloud API endpoints that don't specify an instance will run the binary specified in the default instance. (The last pushed binary can be specified in the API call with the reserved instance name "devint" which designates the latest binary.)

FlagDescription
-a, --app-id stringRequired The id of the application to promote.
-n, --name stringOptional The name to assign to the version. Set to the app name + a unique ID if not specified.
-d, --description stringOptional The description for the version.
-v, --version-id stringOptional The ID to assign to the version. Set to app ID + a unique ID if not specified.
-i, --instance-id stringOptional The ID to assign to the default instance. Set to the app ID if not specified.

push

nextmv app push [flags]
Copy

You must be inside your project when running this command.

The push subcommand updates the latest binary in the cloud with your local application build. You must run this from the directory containing your application project.

FlagDescription
-a, --app-id stringRequired The id of the application to push to.

result

nextmv app result [flags]
Copy

The result subcommand gets the results for the application specified. Results contain the output of the run, and metadata related to the execution. If the run failed or is still in progress, then only metadata will be present in the results.

FlagDescription
-a, --app-id stringRequired The id of the application for the run.
-r, --run-id stringRequired The id of the run.
-o, --output stringOptional The output file to write. Stdout used if not specified.

run

specified by the instance identifier.
Copy

The run subcommand starts a run of an application.

FlagDescription
-a, --app-id stringRequired The id of the application to run.
-i, --input stringOptional The input file to use (Stdin if not specified).
-d, --input stringOptional Run the default instance. Runs the last pushed application binary if not specified.
-w, --wait stringOptional Waits for the run to complete, and outputs results to stdout.
-t, --timeout stringOptional The maximum time in seconds to poll for results (default 60 seconds).
--instance stringOptional(Future) The id of the instance to use.

update

nextmv app update [flags]
Copy

The update subcommand allows updating the mutable information on the specified application. The mutable information is limited to the name, description, and ID of the default instance. If the name, description, or default instance ID tag is undefined the corresponding value will not be updated.

FlagDescription
-a, --app-id stringRequired The ID of the application to update.
-d, --description stringOptional The application description. Will remain unchanged if not specified.
-i, --instance-id stringOptional The default instance ID. Will remain unchanged if not specified.
-n, --name stringOptional The application name. Will remain unchanged if not specified.

version

The version subsuite for the nextmv app command set is used to directly and explicitly manage application versions. The default workflow for the nexmtmv app command set handles most of the functionality of this subsuite implicitly.

nextmv help app version
Copy

Available commands for version subsuite

CommandDescriptionFlags
version createCreates a new version for your application--app-id --version-id --name --description
version deleteDeletes the specified application version.--app-id --version-id --confirm
version getGets the specified application version.--app-id --version-id
version listLists the versions for your application--app-id
version updateUpdates information about an application version.--app-id --version-id --name --description

version create

nextmv app version create [flags]
Copy

The version create subcommand creates a new application version with the underlying binary defined by the current active development instance (i.e. the latest binary pushed to the app)

FlagDescription
-a, --app-id stringRequired The ID of the application to create a version for.
-d, --description stringOptional The version description.
-n, --name stringOptional The version name. Will be set to app name + unique id if not specified.
-v, --version-id stringOptional The ID of the version to create. Must be unique within the application. Version ID will be generated automatically if this flag is unset.

version delete

nextmv app version delete [flags]
Copy

The version delete subcommand deletes a specified version from your application. Note that the version cannot be deleted if there are any instances running it.

FlagDescription
-a, --app-id stringRequired The application ID for the application to delete a version from.
-v, --version-id stringRequired The ID of the version to delete.
--confirm booleanOptional Set to skip prompt to delete.

version get

nextmv app version get [flags]
Copy

The version get subcommand gets the information related to an application version.

FlagDescription
-a, --app-id stringRequired The application ID for the application to get a version from.
-v, --version-id stringRequired The ID of the version to get.

version list

nextmv app version list [flags]
Copy

The version list subcommand lists all of the versions for an application.

FlagDescription
-a, --app-id stringRequired The id of the application to list versions for.

version update

nextmv app version update [flags]
Copy

The version update subcommand allows updating the mutable information on the specified version of your application. The mutable information is limited to the name and description of the version. If either the name or description tag are undefined, the corresponding value will not be updated.

FlagDescription
-a, --app-id stringRequired The ID of the application to update the version of.
-v, --version-id stringRequired The ID of the version to update.
-d, --description stringOptional The version description. Will remain unchanged if not specified.
-n, --name stringOptional The version name. Will remain unchanged if not specified.

instance

The instance subsuite for the nextmv app command set is used to directly and explicitly manage application instances. The default workflow for the nexmtmv app command set handles limited functionality from this subsuite implicitly.

nextmv help app instance
Copy

Available commands for instance subsuite

CommandDescriptionFlags
instance createCreates a new instance for your application--app-id --instance-id --version-id --name --description
instance deleteDeletes the specified application instance.--app-id --instance-id --confirm
instance getGets the specified application instance.--app-id --instance-id
instance listLists the instances for your application--app-id
instance updateUpdates information about an application instance.--app-id --instance-id --version-id --name --description

instance create

nextmv app instance create [flags]
Copy

The instance create subcommand creates a new application instance with the underlying version specified by user input.

FlagDescription
-a, --app-id stringRequired The ID of the application to create an instance for.
v, --version-id stringRequired The ID of the underlying version to be used by the instance.
-d, --description stringOptional The instance description.
-n, --name stringOptional The instance name. Will be set to app name + unique id if not specified.
-i, --instance-id stringOptional The ID of the instance to create. Must be unique within the application. Instance ID will be generated automatically if this flag is unset.

instance delete

nextmv app instance delete [flags]
Copy

The instance delete subcommand deletes a specified instance from your application.

FlagDescription
-a, --app-id stringRequired The application ID for the application to delete an instance from.
-i, --instance-id stringRequired The ID of the instance to delete.
--confirm booleanOptional Set to skip prompt to delete.

instance get

nextmv app instance get [flags]
Copy

The instance get subcommand gets the information related to an application instance.

FlagDescription
-a, --app-id stringRequired The application ID for the application to get an instance from.
-i, --instance-id stringRequired The ID of the instance to get.

instance list

nextmv app version list [flags]
Copy

The instance list subcommand lists all of the instances for an application.

FlagDescription
-a, --app-id stringRequired The id of the application to list instances for.

instance update

The instance update subcommand allows updating the information on the specified instance of your application. The instance's name, description, and the ID of the underlying version it uses can be modified. If any of these values are not defined via flags, they will not be modified

FlagDescription
-a, --app-id stringRequired The ID of the application to update the instance of.
-i, --instance-id stringRequired The ID of the instance to update.
-v, --version-id stringOptional The ID of the underlying version the instance uses. Will remain unchanged if not specified.
-d, --description stringOptional The instance description. Will remain unchanged if not specified.
-n, --name stringOptional The instance name. Will remain unchanged if not specified.

Page last updated

Go to on-page nav menu