Main Content

webapps-appdir

Create folders for organizing web apps from the command line on Windows, Linux, and macOS systems

Since R2021a

Description

webapps-appdir add dirname creates a folder named dirname within the apps root folder to organize web apps. The dirname folder is created with necessary permissions.

example

webapps-appdir update dirname updates a folder named dirname within the apps root folder with necessary permissions.

example

webapps-appdir [--version | -v] returns the version of MATLAB® Web App Server™ that is installed.

webapps-appdir [--help | -h] returns command-line help.

Examples

Create New Folder

To create a folder within the apps root folder that has the necessary permissions, at the system command line, type:

webapps-appdir add VenusProgram

Update Existing Folder

To update an existing folder within the apps root folder with the necessary permissions, at the system command line, type:

webapps-appdir update MarsProgram

The update option sets the required permissions to an existing folder that was created using operating system-specific folder creation commands.

Input Arguments

collapse all

Specify the name of the folder you want to create or update within the apps root folder with the necessary permissions.

Example: CassiniProgram

More About

collapse all

MATLAB Web App Server Command-Line Script Location

The command-line scripts are located in the script folder in your MATLAB Web App Server installation folder. For instance, the default locations for R2024b are as follows:

Operating SystemDefault Location of Command-Line Scripts

Windows® (Administrator)

C:\Program Files\MATLAB\MATLAB Web App Server\R2024b\script

Linux® (sudo)

/usr/local/MATLAB/MATLAB_Web_App_Server/R2024b/script

macOS (Intel® processor) (sudo)

/Applications/MATLAB/MATLAB_Web_App_Server/R2024b/script

Tips

  • The webapps-appdir command creates folders with the necessary permissions within the apps root folder. If you use operating-system specific commands to create folders, use the webapps-appdir command with the update option to set the folder with necessary permissions.

Version History

Introduced in R2021a