webapps-runtime
Configure MATLAB Runtime for use with MATLAB Web App Server from the command line on Windows, Linux, and macOS systems
Since R2020a
Security Considerations: When the server is configured to
use MATLAB® Runtime versions earlier than R2023b, the unsafe-inline
attribute is
included in the script-src
directive of the server's Content Security
Policy and cannot be removed. The attribute allows inline JavaScript® execution and event handlers contained within a web app to execute on the
server. For details, see webapps-cspolicy
.
Syntax
Description
webapps-runtime list
returns the list of currently configured
versions of MATLAB Runtime.
webapps-runtime add
adds the path
to a MATLAB Runtime installation, specified by runtime_path
runtime_path
, to the server
configuration.
webapps-runtime remove
starts an interactive prompt to remove
paths to MATLAB Runtime installations from the server configuration.
webapps-runtime remove
removes
the path to a MATLAB Runtime installation, specified by runtime_path
runtime_path
, from the server
configuration.
webapps-runtime [--version | -v]
returns the version of MATLAB
Web App Server™ that is installed.
webapps-runtime [--help | -h]
returns command-line help.
Examples
List MATLAB Runtime Installations
To get a list of MATLAB Runtime configured for use with the server, at the system command line, type:
webapps-runtime list
C:\Program Files\MATLAB\MATLAB Runtime\v242 /usr/local/MATLAB/MATLAB_Runtime/v242
Add MATLAB Runtime Path
To add the path to a MATLAB Runtime installation to the server configuration, at the system command line, type:
webapps-runtime add "C:\Program Files\MATLAB\MATLAB Runtime\v98"
MATLAB Runtime configuration updated. Changes will be applied the next time the server is started.
Remove MATLAB Runtime Path
To remove the path to a MATLAB Runtime installation from the server configuration, at the system command line, type:
webapps-runtime remove "C:\Program Files\MATLAB\MATLAB Runtime\v98"
MATLAB Runtime configuration updated. Changes will be applied the next time the server is started.
Get Version of MATLAB Web App Server
To get the version of MATLAB Web App Server that is installed, at the system command line, type:
webapps-runtime --version
MATLAB Web App Server (R2024b Release)
Get Command-Line Help
To get help for the current command, at the system command line, type:
webapps-runtime --help
Usage: webapps-runtime -h [ --help ] Display this help message webapps-runtime -v [ --version ] Display the version of MATLAB Web App Server webapps-runtime list Lists currently configured MATLAB Runtimes webapps-runtime add <runtime-path> Adds runtime-path to the MATLAB Runtime configuration webapps-runtime remove Launch interactive prompt to remove MATLAB Runtimes from the from the MATLAB Runtime configuration webapps-runtime remove <runtime-path> Removes runtime-path from the MATLAB Runtime configuration
Input Arguments
More About
Version History
Introduced in R2020a