Skip to content

Interface and Operations / Script Market

Through the "Script Market", users can install pre-written script sets from the script market, avoiding repetitive development work. They can also publish local script sets to the script market for other users to use.

Adding the Official Script Market

In the "Script Market" list, click "Add Official Script Market" to add the script market maintained by DataFlux Func (Automata) without any special configuration.

Adding a Custom Script Market

In the "Script Market" list, click "Add" to add a custom script market based on the configuration.

If you wish to manage the script market as a publisher, you need to enable the "Manage this script market" option.

Tip

Each script market can only have one DataFlux Func deployment as the "publisher", but there can be countless "subscribers".

The script market "publisher" is responsible for uploading/publishing script sets from the local DataFlux Func to the script market, while "subscribers" can download/install script sets from the script market to their local environment.

Git-based Script Markets

Git-based script markets use git repositories as storage for the scripts. Users can use platforms like GitHub, GitLab, Gitee, Gitea as code hosting services.

Among these:

  • Enter the clone HTTP/HTTPS URL of the git repository. (e.g., https://gitee.com/xxxxx/yyyyy.git)
  • Enter the username/password used to log into these systems.

Tip

The default branch is master. Some platforms use main as the default branch name, which needs to be specified in the configuration.

For the "publisher", if the specified branch does not exist in the remote repository (such as an empty repository), the system will automatically create the branch for publishing; if it already exists, it will publish on the existing branch.

Alibaba Cloud OSS-based Script Market

An Alibaba Cloud OSS-based script market uses a directory in Alibaba Cloud OSS as storage for the script market. Users with read/write permissions for OSS AKs can add it as a publisher.

Among these:

  • Enter the access address of Alibaba Cloud OSS. (e.g., Hangzhou node: http://oss-cn-hangzhou.aliyuncs.com)

HTTP Service-based Script Market

An HTTP service-based script market uses an HTTP service as storage for the script market, and can only be added as a subscriber.

This type of script market usually works alongside the aforementioned "Alibaba Cloud OSS-based Script Market" as a subscriber, such as:

Publisher Subscriber
Type Alibaba Cloud OSS (publicly accessible) HTTP Service
Configuration Access Address: http://oss-cn-hangzhou.aliyuncs.com
Bucket: my-bucket
Folder: path/to/my-script-market
AK ID: {AK with read/write permissions for this Bucket}
AK Secret:
URL: https://my-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/my-script-market/

Publisher Publishing Script Sets

After adding the script market as a "publisher", click the "Manage" button to enter the script market, then click the "Publish" button to publish the script set.

Tip

In the script market, the "Delete" operation in the script set list refers to deleting from the script market, and will not delete any content locally.

Subscriber Installing Script Sets

After adding the script market as a "subscriber", click the "Enter" button to access the script market, then click "Install" to install the script set.

If a script set with the same ID already exists locally, the user can adjust the local code before installation or directly use the "Force Mode" to replace the local script set.

Danger

Installing a script set from the script market will always completely replace the local script set with the same ID.

Script Sets with Example Scripts

Some script sets require creating additional startup scripts separately and provide examples.

After installing these script sets, a configuration box will automatically pop up. After entering the necessary parameters, the system will generate corresponding startup scripts based on the example scripts.

Tip

All startup scripts generated by the system are saved under the script set named Startup (ID as startup).

Users can also create startup scripts themselves according to their needs, with no restrictions on ID or naming rules.