You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**deps:** bump @salesforce/sf-plugins-core from 9.0.1 to 9.0.10 ([ae111fe](https://github.com/k-capehart/kc-sf-plugin/commit/ae111fea7d5fb58bb07d0291a0de426942a0bb73))
61
+
***deps:** bump @salesforce/sf-plugins-core from 9.0.1 to 9.0.10 ([ae111fe](https://github.com/k-capehart/kc-sf-plugin/commit/ae111fea7d5fb58bb07d0291a0de426942a0bb73))
-**deps:** bump @salesforce/core from 7.3.3 to 7.3.8 ([3ce2d5d](https://github.com/k-capehart/kc-sf-plugin/commit/3ce2d5d8372b81e5ad434379cc52277cd578a252))
70
+
***deps:** bump @salesforce/core from 7.3.3 to 7.3.8 ([3ce2d5d](https://github.com/k-capehart/kc-sf-plugin/commit/3ce2d5d8372b81e5ad434379cc52277cd578a252))
-**deps:** bump @babel/traverse from 7.19.1 to 7.24.5 ([2d967be](https://github.com/k-capehart/kc-sf-plugin/commit/2d967be5c615ba15e1be2b96e6135bdbf7a92bb9))
79
+
***deps:** bump @babel/traverse from 7.19.1 to 7.24.5 ([2d967be](https://github.com/k-capehart/kc-sf-plugin/commit/2d967be5c615ba15e1be2b96e6135bdbf7a92bb9))
Auto generate an Apex Trigger framework. By default, the template uses this Trigger Handler Apex class: https://github.com/k-capehart/sfdc-trigger-framework
50
+
Preview a retrieval and deploy to see what will be retrieved from the org, the potential conflicts, and the ignored files.
52
51
53
52
```
54
53
USAGE
55
-
$ sf kc trigger-framework init [--json] [--flags-dir <value>] [-d <value>]
54
+
$ sf kc diff -o <value> [--json] [--flags-dir <value>] [--concise]
56
55
57
56
FLAGS
58
-
-d, --target-dir=<value> [default: force-app/main/default] The target directory for your salesforce project.
59
-
There should be subdirectories for classes/ and objects/.
57
+
-o, --target-org=<value> (required) Login username or alias for the target org.
58
+
--conciseOmits files that are forceignored.
60
59
61
60
GLOBAL FLAGS
62
61
--flags-dir=<value> Import flag values from a directory.
63
62
--json Format output as json.
64
63
65
64
DESCRIPTION
66
-
Using this command will initialize an Apex Trigger framework by creating an extendable Trigger Handler class based off a template.
67
-
68
-
Also creates a CustomSetting called BypassAutomation that can be used to optionally skip triggers for specific users.
65
+
Preview a retrieval and deploy to see what will be retrieved from the org, the potential conflicts, and the ignored
66
+
files.
69
67
70
-
SObject specific trigger handlers should extend this class and override the methods for beforeInsert(), afterInsert(), etc.
68
+
You must run this command from within a project that has source tracking.
71
69
72
-
If a file already exists with the given name then it is not overwritten.
70
+
The command outputs a table that describes the difference between your local project and an org. It is equivalent to
71
+
running both the "sf project retrieve preview" and "sf project deploy preview" commands.
73
72
74
73
EXAMPLES
75
-
Initialize the trigger framework in the directory: force-app/main/default
76
-
$ sf kc trigger-framework init --target-dir force-app/main/default
74
+
View differences between local org and an org with the alias "my-org"
75
+
$ sf kc diff --target-org my-org
76
+
View differences between local org and the default org, omitting ignored files
77
+
$ sf kc diff --concise
78
+
79
+
FLAG DESCRIPTIONS
80
+
-o, --target-org=<value> Login username or alias for the target org.
81
+
82
+
Overrides your default org.
83
+
84
+
--concise Omits files that are forceignored.
85
+
86
+
Ignore files by placing them in your .forceignore and using this flag.
Create a new trigger, handler class, and helper class for a Salesforce object. Recommend using `kc trigger-framework init` first.
91
+
## `sf kc trigger-framework init`
92
+
93
+
Auto generate an Apex Trigger framework. By default, the template uses this Trigger Handler Apex class: https://github.com/k-capehart/sfdc-trigger-framework
0 commit comments