You can use the CLI to sync custom pieces. There is no need to rebuild the Docker image as they are loaded directly from npm.Documentation Index
Fetch the complete documentation index at: https://www.activepieces.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
Use the CLI to sync items frompackages/pieces/custom/ to instances. In production, Activepieces acts as an npm registry, storing all piece versions.
The CLI scans the directory for package.json files, checking the name and version of each piece. If a piece isn’t uploaded, it packages and uploads it via the API.
Usage
To use the CLI, follow these steps:- Generate an API Key from the Admin Interface. Go to Settings and generate the API Key.
- Install the CLI by cloning the repository.
- Run the following command, replacing
API_KEYwith your generated API Key andINSTANCE_URLwith your instance URL:
Developer Workflow
- Developers create and modify the pieces offline.
- Increment the piece version in their corresponding
package.json. For more information, refer to the piece versioning documentation. - Open a pull request towards the main branch.
- Once the pull request is merged to the main branch, manually run the CLI or use a GitHub/GitLab Action to trigger the synchronization process.