Misc
Publish Custom Pieces
You can use the CLI to publish custom pieces to the platform. This process packages the pieces and uploads them to the specified API endpoint.
How It Works
The CLI scans the packages/pieces/
directory for the specified piece. It checks the name and version in the package.json
file. If the piece is not already published, it builds, packages, and uploads it to the platform using the API.
Usage
To publish a piece, follow these steps:
- Ensure you have an API Key. Generate it from the Admin Interface by navigating to Settings.
- Install the CLI by cloning the repository.
- Run the following command, replacing
API_KEY
with your generated API Key,INSTANCE_URL
with your instance URL, andPIECE_NAME
with the name of the piece you want to publish: