Overview
This node integrates with the Cycloid CLI to perform operations on Cycloid resources. Specifically, for the "Event" resource and the "Create" operation, it allows users to create new events by executing the corresponding Cycloid CLI command. This is useful in automation workflows where you want to programmatically trigger or log events within the Cycloid platform.
A practical example would be automating the creation of deployment or monitoring events in Cycloid as part of a CI/CD pipeline, enabling seamless integration between n8n workflows and Cycloid's event management.
Properties
| Name | Meaning |
|---|---|
| Additional Fields | Additional fields to pass to the CLI command. |
| Arguments | Extra string arguments appended to the CLI command when creating an event. |
Output
The node outputs an array of JSON objects, each containing details about the executed CLI command:
command: The full CLI command string that was run.env: The environment variables used during execution, including API URL, API key, and organization identifier.stdout: The standard output from the CLI command.stderr: The standard error output from the CLI command.
This output provides detailed feedback on the CLI execution, which can be used for logging, debugging, or further processing in the workflow.
Dependencies
- Requires the Cycloid CLI binary accessible at a relative path (
../../../dist/bin/cy). - Needs an API key credential for authenticating with Cycloid.
- Environment variables are set dynamically for the CLI command, including API URL, API key, and organization canonical name.
Troubleshooting
Common Issues:
- The Cycloid CLI binary might not be found if the relative path is incorrect or the binary is missing.
- Invalid or missing API credentials will cause authentication failures.
- Incorrect additional arguments may cause the CLI command to fail.
Error Messages:
- Errors thrown during CLI execution are captured and either cause the node to fail or, if "Continue On Fail" is enabled, are returned as part of the output with error details.
- To resolve errors, verify the CLI path, ensure valid API credentials, and check the syntax of additional arguments.
Links and References
- Cycloid CLI Documentation (for understanding available commands and arguments)
- n8n Documentation on Executing CLI Commands