Main Content

mpm install-doc

(Linux, Windows) Install documentation from operating system command line

Using mpm install-doc at the operating system command line requires MATLAB® Package Manager. See Get MATLAB Package Manager.

If you instead want to manage packages within MATLAB, see Package Management (MATLAB).

Description

mpm install-doc --matlabroot=</full/path/to/matlabroot> --source=</full/path/to/source> installs documentation for the MATLAB installation at <full/path/to/matlabroot> from the documentation ISO image mounted at </full/path/to/source>. Run this command from the operating system command line.

By default, MATLAB accesses documentation from the web. Use mpm install-doc to install the documentation on computers that are permanently offline. To install documentation on computers that are only temporarily offline, follow the procedure in Install Documentation for Temporary Offline Use.

example

mpm install-doc --matlabroot=</full/path/to/matlabroot> installs the documentation by calling the mpm executable included in mounted documentation ISO images. Use this syntax when installing the documentation using the procedure described in Install Documentation on Permanently Offline Computers.

mpm install-doc ... --destination=</full/path/to/destination> sets the documentation installation folder to </full/path/to/destination>, using either of the previous syntaxes.

example

Examples

collapse all

Install the documentation from a mounted ISO image into an existing MATLAB installation, using the default folder. This example runs on Linux® and Windows® only. On Mac, installing documentation from a mounted DMG image is not supported.

Download and mount the ISO image that contains the documentation.

  1. Go to the topic Install Documentation on Permanently Offline Computers.

  2. From the Operating Systems list, select the operating system of the target computer.

  3. Click Download documentation to download the documentation ISO image.

  4. Mount the download documentation ISO image using the standard process for your operating system. For help with mounting the image, see this support article.

Install the documentation using mpm install-doc.

  • In the --matlabroot option, specify the path to the MATLAB installation folder.

  • In the --source option, specify the path to the mounted ISO image.

Linux:

./mpm install-doc --matlabroot=/install/folder/path --source=/mounted/image/path

Windows (run as administrator):

.\mpm.exe install-doc --matlabroot="install\folder\path" --source="\mounted\image\path"

By default, mpm installs the documentation to the support package root folder of the MATLAB installation. This folder is the location returned by the MATLAB function matlabshared.supportpkg.getSupportPackageRoot (MATLAB).

Install the documentation from a mounted ISO image into an existing MATLAB installation, and specify the installation folder. This example runs on Linux and Windows only. On Mac, installing documentation from a mounted DMG image is not supported.

Download and mount the ISO image that contains the documentation.

  1. Go to the topic Install Documentation on Permanently Offline Computers.

  2. From the Operating Systems list, select the operating system of the target computer.

  3. Click Download documentation to download the documentation ISO image.

  4. Mount the download documentation ISO image using the standard process for your operating system. For help with mounting the image, see this support article.

Install the documentation using mpm install-doc.

  • In the --matlabroot option, specify the path to the MATLAB installation folder.

  • In the --source option, specify the path to the mounted ISO image.

  • In the --destination option, specify the folder for the documentation installation.

Linux:

./mpm install-doc --matlabroot=/install/folder/path --source=/mounted/image/path --destination=/doc/path

Windows (run as administrator):

.\mpm.exe install-doc --matlabroot="\install\folder\path" --source="\mounted\image\path" --destination="\doc\path"

Update the documentation root folder by running MATLAB from the operating system command line.

Linux:

<matlabroot>/bin/matlab -c <license> -batch "matlabshared.supportpkg.setSupportPackageRoot('<destination>')"

Windows (run as administrator):

<matlabroot>\bin\matlab -c <license> -batch "matlabshared.supportpkg.setSupportPackageRoot('<destination>')"

  • <matlabroot> is the MATLAB installation folder you specified in the --matlabroot option.

  • <license> is the license in use for the MATLAB installation, such as a license file or port@host entry that points to a license server.

  • <destination> is the documentation destination folder you specified in the --destination option.

Input Arguments

collapse all

MATLAB installation folder, specified as the absolute folder path to a valid MATLAB installation.

Example: --matlabroot="C:\Program Files\MATLAB\R2025a"

Example: --matlabroot=/Applications/MATLAB_R2025a.app

Example: --matlabroot=/usr/local/MATLAB/R2025a

Documentation source, specified as the absolute path to a mounted documentation ISO image.

To download a documentation ISO image, see Install Documentation on Permanently Offline Computers. To mount the image, see this support article.

Destination folder for the documentation, specified as an absolute folder path.

Limitations

  • mpm install-doc does not support installing documentation on Mac.