chainctl
chainctl Chainguard Control chainctl [flags]Options --api string The url of the Chainguard platform API. (default …
Chainguard’s chainctl events commands provide programmatic access to security event streams using the CloudEvents specification. These commands enable you to monitor container activities, security alerts, and supply chain events across your organization for enhanced observability and compliance.
Chainguard Academy has several deeper guides on Chainguard CloudEvents. You may find our guide on Subscribing to Chainguard CloudEvents to be particularly useful for understanding how to work with events from Chainguard while Chainguard Events provides a deeper dive into the content and make up of events.
There are three chainctl events commands available: create, list, and delete.
To create a new event and subscribe to events in that organization or folder, use:
chainctl events subscriptions create $SINK_URLA sink is an addressable or callable resource that can receive incoming events delivered over HTTPS and will translate the delivered event into a returned response that includes promised information. The style and type of response is set by the sink.
Depending on the sink, you may be prompted to respond to some questions before this action is complete. You can add a -y to the command to automatically assume yes and run without interaction.
To retrieve a list of all your Chainguard account’s subscriptions, use:
chainctl events subscriptions listThis will return a list of IDs and sinks for all of your subscriptions.
To delete an existing event, use:
chainctl events subscriptions delete $SUBSCRIPTION_IDDepending on the sink, you may be prompted to respond to some questions before this action is complete. You can add a -y to the command to automatically assume yes and run without interaction.
Last updated: 2025-07-23 15:09