Create a component package
IoT Studio allows you to add custom components to a component package and publish it to the public marketplace for other developers to use. This topic describes how to publish a component package of your custom components to the public marketplace.
Create a component package
On the App Development page, in the Development Tools section, click Component Development.
- On the page, click the tab, and then click Create Component Package.
- In the Create Component Package dialog box, set the basic information for the component package.
Parameter Description Chinese name/English name Enter a recognizable Chinese and English name for the component package. The name can contain only Chinese characters, English letters, digits, underscores (_), hyphens (-), and parentheses (). The name must start with a Chinese character, an English letter, or a digit, and be 30 characters or less. Each Chinese character counts as a single character.
Note After a component package is published, you cannot change its Chinese or English name.Component package cover Upload a cover image for the component package as prompted on the page. Description Enter a description for the component package. The description can be up to 100 characters long and is displayed during component preview. - Click OK.
After a component package is created, it appears on the Public Component Package tab. Here, you can view its information, such as the cover, name, review status, last update time, and description. You can also perform operations such as Edit, Publish, and Delete. For more information, see Edit a component package.
View the component package list
You can view all created component packages on the page.
The following operations are available in the component package list:
| Actions | Review status | Description |
| Edit | to be published | Click to open the Edit Component Package page. On this page, you can perform the following operations: |
| Publish | to be published | Click to publish the component package. For more information, see Publish and use a component package. |
| Delete | to be published | After you click this operation, click Confirm to delete the component package. Note You can only delete component packages that have not been published, such as those with a status of 'to be published' or 'failed'. |
| Publication history | approved | Click to view the publication history of the component package. For more information, see View publication history. |
| View | in review | Click to view information about the component package that is in review. |
| Withdraw review | in review | Click to withdraw the publication request. You can then resume editing the component package. |
| Review result | failed | Click to view the reason the publication review failed. |