generate_trigger
Creates an Apex trigger file and its metadata for a Salesforce object, with options for name, sObject, event, and output directory.
Instructions
Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent directory called "triggers" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one. If you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with the Salesforce object you want to generate a trigger for. If you don't specify --event, "before insert" is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |