Run App Remotely

Run remotely with Nextmv CLI

A tutorial for running an app remotely with Nextmv CLI.

Complete run workflow

Execute the complete run workflow (submit a run, poll for status, get the results). The output key will contain the actual output of the run. This is an aggregation of the other steps.

nextmv app run \
    --app-id $APP_ID \
    --instance $INSTANCE_ID \
    --input $INPUT_FILE \
    --options "solve.duration=10s,solve.iterations=20" \
    --wait
Copy

New run

Submit a new run. The run_id is returned.

nextmv app run \
    --app-id $APP_ID \
    --instance $INSTANCE_ID \
    --input $INPUT_FILE \
    --options "solve.duration=10s,solve.iterations=20"
Copy

Run metadata

Get a run metadata. The metadata.status key will contain the status of the run. Use the run_id obtained from submitting a run.

nextmv app metadata \
    --app-id $APP_ID \
    --run-id $RUN_ID
Copy

Run result

Get a run result. The output key will contain the actual output of the run. Use the run_id obtained from submitting a run.

nextmv app result \
    --app-id $APP_ID \
    --run-id $RUN_ID
Copy

Page last updated

Go to on-page nav menu