Main Content

Share and Distribute Software

R2026b
Create and manage packages and their dependencies on other libraries

The simplest way to share software that you have developed in MATLAB is to create a package. If your package depends on other packages or libraries, you can include dependencies to be installed with your code. For details, see Interactively Create and Share Packages.

End users can install software from your package through repositories or by using the Add-Ons panel. For more information on finding and installing packages, see Distribute Packages Using Folder-Based Repositories or Get and Manage Add-Ons.

For more information on using packages as part of your software development process, see Develop and Share Software in MATLAB.

Functions

expand all

matlab.addons.toolbox.packageToolboxBuild package from project file
matlab.addons.toolbox.toolboxVersionQuery or modify version of package
matlab.addons.toolbox.ToolboxOptionsOptions for building a package (Since R2023a)

Packages

mpmcreateCreate package (Since R2024b)
mpminstallInstall package (Since R2024b)
mpmuninstallUninstall package (Since R2024b)
mpmsearchSearch for packages in repositories (Since R2024b)
mpmlistList installed packages (Since R2024b)
mpmupdateUpdate installed package to newer version (Since R2026b)

Repositories

mpmAddRepositoryAdd repository to repository list (Since R2024b)
mpmListRepositoriesList known repositories (Since R2024a)
mpmRemoveRepositoryRemove repository from repository list (Since R2024b)
matlab.mpm.FileExchangeGet File Exchange URL (Since R2026b)

Package Development

addFolderAdd member folder to package (Since R2024b)
removeFolderRemove member folder from package (Since R2024b)
addDependencyAdd dependency to package (Since R2024b)
removeDependencyRemove dependency from package (Since R2024b)
updateDependencyUpdate dependency information (Since R2024b)
digestGenerate cryptographic hash for package (Since R2024b)
PackageIdentifierCreate package identifier (Since R2026a)

Package Manager

matlab.mpm.PackageMATLAB package (Since R2024b)
matlab.mpm.DependencyPackage dependency (Since R2024b)
matlab.mpm.PackageSpecifierSpecify package qualifiers (Since R2024b)
matlab.mpm.PackageIdentifierPackage Identifier (Since R2026a)
matlab.mpm.VersionPackage version (Since R2024b)
matlab.mpm.RepositoryPackage repository (Since R2024b)
matlab.mpm.ProviderPackage provider (Since R2024b)
matlab.mpm.PackageFolderPackage member folder (Since R2024b)
matlab.mpm.PackageFolderLanguagePackage folder language (Since R2025a)
matlab.mpm.PlatformConfigurationSupported platforms for package (Since R2026b)

Package Definition File

mpackage.jsonPackage definition file schema (Since R2024b)
matlab.codetools.requiredFilesAndProductsList dependencies of MATLAB program files

Topics