Currently, this is in BETA. We are actively looking for feedback and contributors. Please reach out to us on Discord or GitHub.

To use the CLI, you need to clone the repository and use it with npm.

Generate Pieces Using AI

You can use the CLI to generate a piece with its authentication and actions. The CLI supports OpenAPI specifications in both JSON and YAML formats.

From OpenAPI URL

You can get an OpenAPI specification URL from sources like apis.guru. Here’s how you can use it:

AP_OPENAI_KEY=YOUR_OPENAI_KEY npm run cli pieces scale https://api.apis.guru/v2/specs/slack.com/1.7.0/openapi.json

From a Static File

You can also supply an OpenAPI specification from a file path:

npm run cli pieces scale openAPIs/trello.json

Note: You will find your generated piece under /packages/pieces/community/piece-name

The last command expects that you are storing openAPIs/trello.json in the root directory of the activepieces repository.