All Products
Search
Document Center

MaxCompute:INSTALL PACKAGE

Last Updated:Mar 26, 2026

Installs a package from another MaxCompute project into the current project, granting access to the shared resources and permissions bundled in the package.

Run this statement in the installing project (the consumer). To create and share a package, see CREATE PACKAGE and ALLOW PROJECT.

Prerequisites

Before you begin, make sure you have:

  • An Alibaba Cloud account that owns the target project, or a user with the necessary permissions

  • The package name and the source project name from the package creator

Limits

LimitValue
Resources per package1,000
Projects a single package can be installed for100,000
Packages from another project installed in a single project100
Packages created for a project100,000
Packages installed for a project100,000

Syntax

install package <project_name>.<package_name>;

Parameters

ParameterRequiredDescription
project_nameYesThe name of the MaxCompute project that owns the package. To find the project name, log on to the MaxCompute console, select a region in the top navigation bar, and check the Project management tab.
package_nameYesThe name of the package to install. Run show packages; on the MaxCompute client in the source project to get the package name.

Examples

Install the datashare package from test_project_a into test_project_b. The Alibaba Cloud account Amy@aliyun.com owns test_project_b.

-- Switch to the target project.
use test_project_b;
-- Install the package.
install package test_project_a.datashare;

Usage notes

After installing a package, verify the installation with the following statements:

  • show packages; — lists all packages installed in the current project

  • describe package <package_name>; — shows the resources and permissions included in a specific package

What's next

  • DESCRIBE PACKAGE — view package details

  • GRANT — authorize a user or role to access an installed package

  • UNINSTALL PACKAGE — remove an installed package from a project

  • SHOW — list packages created or installed in a project

Related statements