--- title: "How do I test my event function locally using the CLI?" url: https://docs.catalyst.zoho.com/en/faq/cli/cli-event-shell/ description: "You can execute your event function locally using the catalyst shell command in the Catalyst CLI. You can generate a sample payload for your event function to …" last_updated: 2026-11-13T05:00:22Z service: All Services type: faq --- You can execute your [event function](https://docs.catalyst.zoho.com/en/serverless/help/functions/event-functions/) locally using the [`catalyst shell`](https://docs.catalyst.zoho.com/en/cli/v1/working-with-functions/functions-shell/) command in the Catalyst CLI. You can generate a sample payload for your event function to test it by executing the catalyst event:generate {component} {action} command. For example: `catalyst event:generate DataStore insert`. This will generate a sample payload for a Data Store insert operation. You can then pass the generated payload as the input to your event function in the CLI.