sfdx-hardis 5.44.2-alpha202507221146.0 → 5.44.2-alpha202507221328.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/oclif.manifest.json +1003 -1003
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -3009,12 +3009,12 @@
|
|
|
3009
3009
|
"lint:project:hardis"
|
|
3010
3010
|
]
|
|
3011
3011
|
},
|
|
3012
|
-
"hardis:
|
|
3012
|
+
"hardis:scratch:create": {
|
|
3013
3013
|
"aliases": [],
|
|
3014
3014
|
"args": {},
|
|
3015
|
-
"description": "
|
|
3015
|
+
"description": "Create and initialize a scratch org or a source-tracked sandbox (config can be defined using `config/.sfdx-hardis.yml`):\n\n- **Install packages**\n - Use property `installedPackages`\n- **Push sources**\n- **Assign permission sets**\n - Use property `initPermissionSets`\n- **Run apex initialization scripts**\n - Use property `scratchOrgInitApexScripts`\n- **Load data**\n - Use property `dataPackages`\n ",
|
|
3016
3016
|
"examples": [
|
|
3017
|
-
"$ sf hardis:
|
|
3017
|
+
"$ sf hardis:scratch:create"
|
|
3018
3018
|
],
|
|
3019
3019
|
"flags": {
|
|
3020
3020
|
"json": {
|
|
@@ -3032,216 +3032,49 @@
|
|
|
3032
3032
|
"multiple": false,
|
|
3033
3033
|
"type": "option"
|
|
3034
3034
|
},
|
|
3035
|
-
"
|
|
3036
|
-
"char": "
|
|
3037
|
-
"description": "
|
|
3038
|
-
"name": "
|
|
3039
|
-
"allowNo": false,
|
|
3040
|
-
"type": "boolean"
|
|
3041
|
-
},
|
|
3042
|
-
"soapdeploy": {
|
|
3043
|
-
"description": "soapDeploy",
|
|
3044
|
-
"name": "soapdeploy",
|
|
3045
|
-
"allowNo": false,
|
|
3046
|
-
"type": "boolean"
|
|
3047
|
-
},
|
|
3048
|
-
"wait": {
|
|
3049
|
-
"char": "w",
|
|
3050
|
-
"description": "wait",
|
|
3051
|
-
"name": "wait",
|
|
3052
|
-
"default": 60,
|
|
3053
|
-
"hasDynamicHelp": false,
|
|
3054
|
-
"multiple": false,
|
|
3055
|
-
"type": "option"
|
|
3056
|
-
},
|
|
3057
|
-
"testlevel": {
|
|
3058
|
-
"char": "l",
|
|
3059
|
-
"description": "testlevel",
|
|
3060
|
-
"name": "testlevel",
|
|
3061
|
-
"default": "NoTestRun",
|
|
3062
|
-
"hasDynamicHelp": false,
|
|
3063
|
-
"multiple": false,
|
|
3064
|
-
"options": [
|
|
3065
|
-
"NoTestRun",
|
|
3066
|
-
"RunSpecifiedTests",
|
|
3067
|
-
"RunLocalTests",
|
|
3068
|
-
"RunAllTestsInOrg"
|
|
3069
|
-
],
|
|
3070
|
-
"type": "option"
|
|
3071
|
-
},
|
|
3072
|
-
"runtests": {
|
|
3073
|
-
"char": "r",
|
|
3074
|
-
"description": "runTests",
|
|
3075
|
-
"name": "runtests",
|
|
3076
|
-
"default": [],
|
|
3077
|
-
"hasDynamicHelp": false,
|
|
3078
|
-
"multiple": true,
|
|
3079
|
-
"type": "option"
|
|
3080
|
-
},
|
|
3081
|
-
"ignoreerrors": {
|
|
3082
|
-
"description": "ignoreErrors",
|
|
3083
|
-
"name": "ignoreerrors",
|
|
3084
|
-
"allowNo": false,
|
|
3085
|
-
"type": "boolean"
|
|
3086
|
-
},
|
|
3087
|
-
"ignorewarnings": {
|
|
3088
|
-
"char": "g",
|
|
3089
|
-
"description": "ignoreWarnings",
|
|
3090
|
-
"name": "ignorewarnings",
|
|
3091
|
-
"allowNo": false,
|
|
3092
|
-
"type": "boolean"
|
|
3093
|
-
},
|
|
3094
|
-
"validateddeployrequestid": {
|
|
3095
|
-
"char": "q",
|
|
3096
|
-
"description": "validateDeployRequestId",
|
|
3097
|
-
"exclusive": [
|
|
3098
|
-
"manifest",
|
|
3099
|
-
"metadata",
|
|
3100
|
-
"sourcepath",
|
|
3101
|
-
"checkonly",
|
|
3102
|
-
"testlevel",
|
|
3103
|
-
"runtests",
|
|
3104
|
-
"ignoreerrors",
|
|
3105
|
-
"ignorewarnings"
|
|
3106
|
-
],
|
|
3107
|
-
"name": "validateddeployrequestid",
|
|
3108
|
-
"hasDynamicHelp": false,
|
|
3109
|
-
"multiple": false,
|
|
3110
|
-
"type": "option"
|
|
3111
|
-
},
|
|
3112
|
-
"verbose": {
|
|
3113
|
-
"description": "verbose",
|
|
3114
|
-
"name": "verbose",
|
|
3115
|
-
"allowNo": false,
|
|
3116
|
-
"type": "boolean"
|
|
3117
|
-
},
|
|
3118
|
-
"metadata": {
|
|
3119
|
-
"char": "m",
|
|
3120
|
-
"description": "metadata",
|
|
3121
|
-
"exclusive": [
|
|
3122
|
-
"manifest",
|
|
3123
|
-
"sourcepath"
|
|
3124
|
-
],
|
|
3125
|
-
"name": "metadata",
|
|
3126
|
-
"hasDynamicHelp": false,
|
|
3127
|
-
"multiple": true,
|
|
3128
|
-
"type": "option"
|
|
3129
|
-
},
|
|
3130
|
-
"sourcepath": {
|
|
3131
|
-
"char": "p",
|
|
3132
|
-
"description": "sourcePath",
|
|
3133
|
-
"exclusive": [
|
|
3134
|
-
"manifest",
|
|
3135
|
-
"metadata"
|
|
3136
|
-
],
|
|
3137
|
-
"name": "sourcepath",
|
|
3138
|
-
"hasDynamicHelp": false,
|
|
3139
|
-
"multiple": true,
|
|
3140
|
-
"type": "option"
|
|
3141
|
-
},
|
|
3142
|
-
"manifest": {
|
|
3143
|
-
"char": "x",
|
|
3144
|
-
"description": "flagsLong.manifest",
|
|
3145
|
-
"exclusive": [
|
|
3146
|
-
"metadata",
|
|
3147
|
-
"sourcepath"
|
|
3148
|
-
],
|
|
3149
|
-
"name": "manifest",
|
|
3150
|
-
"hasDynamicHelp": false,
|
|
3151
|
-
"multiple": false,
|
|
3152
|
-
"type": "option"
|
|
3153
|
-
},
|
|
3154
|
-
"predestructivechanges": {
|
|
3155
|
-
"dependsOn": [
|
|
3156
|
-
"manifest"
|
|
3157
|
-
],
|
|
3158
|
-
"description": "predestructivechanges",
|
|
3159
|
-
"name": "predestructivechanges",
|
|
3160
|
-
"hasDynamicHelp": false,
|
|
3161
|
-
"multiple": false,
|
|
3162
|
-
"type": "option"
|
|
3163
|
-
},
|
|
3164
|
-
"postdestructivechanges": {
|
|
3165
|
-
"dependsOn": [
|
|
3166
|
-
"manifest"
|
|
3167
|
-
],
|
|
3168
|
-
"description": "postdestructivechanges",
|
|
3169
|
-
"name": "postdestructivechanges",
|
|
3170
|
-
"hasDynamicHelp": false,
|
|
3171
|
-
"multiple": false,
|
|
3172
|
-
"type": "option"
|
|
3173
|
-
},
|
|
3174
|
-
"tracksource": {
|
|
3175
|
-
"char": "t",
|
|
3176
|
-
"description": "tracksource",
|
|
3177
|
-
"exclusive": [
|
|
3178
|
-
"checkonly",
|
|
3179
|
-
"validateddeployrequestid"
|
|
3180
|
-
],
|
|
3181
|
-
"name": "tracksource",
|
|
3182
|
-
"allowNo": false,
|
|
3183
|
-
"type": "boolean"
|
|
3184
|
-
},
|
|
3185
|
-
"forceoverwrite": {
|
|
3186
|
-
"char": "f",
|
|
3187
|
-
"dependsOn": [
|
|
3188
|
-
"tracksource"
|
|
3189
|
-
],
|
|
3190
|
-
"description": "forceoverwrite",
|
|
3191
|
-
"name": "forceoverwrite",
|
|
3192
|
-
"allowNo": false,
|
|
3193
|
-
"type": "boolean"
|
|
3194
|
-
},
|
|
3195
|
-
"resultsdir": {
|
|
3196
|
-
"description": "resultsdir",
|
|
3197
|
-
"name": "resultsdir",
|
|
3198
|
-
"hasDynamicHelp": false,
|
|
3199
|
-
"multiple": false,
|
|
3200
|
-
"type": "option"
|
|
3201
|
-
},
|
|
3202
|
-
"coverageformatters": {
|
|
3203
|
-
"description": "coverageformatters",
|
|
3204
|
-
"name": "coverageformatters",
|
|
3205
|
-
"hasDynamicHelp": false,
|
|
3206
|
-
"multiple": true,
|
|
3207
|
-
"type": "option"
|
|
3208
|
-
},
|
|
3209
|
-
"junit": {
|
|
3210
|
-
"description": "junit",
|
|
3211
|
-
"name": "junit",
|
|
3035
|
+
"forcenew": {
|
|
3036
|
+
"char": "n",
|
|
3037
|
+
"description": "If an existing scratch org exists, do not reuse it but create a new one",
|
|
3038
|
+
"name": "forcenew",
|
|
3212
3039
|
"allowNo": false,
|
|
3213
3040
|
"type": "boolean"
|
|
3214
3041
|
},
|
|
3215
|
-
"
|
|
3216
|
-
"description": "
|
|
3217
|
-
"name": "
|
|
3042
|
+
"pool": {
|
|
3043
|
+
"description": "Creates the scratch org for a scratch org pool",
|
|
3044
|
+
"name": "pool",
|
|
3218
3045
|
"allowNo": false,
|
|
3219
3046
|
"type": "boolean"
|
|
3220
3047
|
},
|
|
3221
3048
|
"debug": {
|
|
3222
|
-
"
|
|
3049
|
+
"char": "d",
|
|
3050
|
+
"description": "Activate debug mode (more logs)",
|
|
3223
3051
|
"name": "debug",
|
|
3224
3052
|
"allowNo": false,
|
|
3225
3053
|
"type": "boolean"
|
|
3226
3054
|
},
|
|
3227
3055
|
"websocket": {
|
|
3228
|
-
"description": "
|
|
3056
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
3229
3057
|
"name": "websocket",
|
|
3230
3058
|
"hasDynamicHelp": false,
|
|
3231
3059
|
"multiple": false,
|
|
3232
3060
|
"type": "option"
|
|
3233
3061
|
},
|
|
3234
|
-
"
|
|
3062
|
+
"skipauth": {
|
|
3063
|
+
"description": "Skip authentication check when a default username is required",
|
|
3064
|
+
"name": "skipauth",
|
|
3065
|
+
"allowNo": false,
|
|
3066
|
+
"type": "boolean"
|
|
3067
|
+
},
|
|
3068
|
+
"target-dev-hub": {
|
|
3235
3069
|
"aliases": [
|
|
3236
|
-
"
|
|
3237
|
-
"u"
|
|
3070
|
+
"targetdevhubusername"
|
|
3238
3071
|
],
|
|
3239
|
-
"char": "
|
|
3072
|
+
"char": "v",
|
|
3240
3073
|
"deprecateAliases": true,
|
|
3241
|
-
"name": "target-
|
|
3074
|
+
"name": "target-dev-hub",
|
|
3242
3075
|
"noCacheDefault": true,
|
|
3243
3076
|
"required": true,
|
|
3244
|
-
"summary": "Username or alias of the
|
|
3077
|
+
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
3245
3078
|
"hasDynamicHelp": true,
|
|
3246
3079
|
"multiple": false,
|
|
3247
3080
|
"type": "option"
|
|
@@ -3249,35 +3082,43 @@
|
|
|
3249
3082
|
},
|
|
3250
3083
|
"hasDynamicHelp": true,
|
|
3251
3084
|
"hiddenAliases": [],
|
|
3252
|
-
"id": "hardis:
|
|
3085
|
+
"id": "hardis:scratch:create",
|
|
3253
3086
|
"pluginAlias": "sfdx-hardis",
|
|
3254
3087
|
"pluginName": "sfdx-hardis",
|
|
3255
3088
|
"pluginType": "core",
|
|
3256
3089
|
"strict": true,
|
|
3257
3090
|
"enableJsonFlag": true,
|
|
3091
|
+
"title": "Create and initialize scratch org",
|
|
3258
3092
|
"requiresProject": true,
|
|
3093
|
+
"requiresSfdxPlugins": [
|
|
3094
|
+
"sfdmu",
|
|
3095
|
+
"texei-sfdx-plugin"
|
|
3096
|
+
],
|
|
3259
3097
|
"isESM": true,
|
|
3260
3098
|
"relativePath": [
|
|
3261
3099
|
"lib",
|
|
3262
3100
|
"commands",
|
|
3263
3101
|
"hardis",
|
|
3264
|
-
"
|
|
3265
|
-
"
|
|
3102
|
+
"scratch",
|
|
3103
|
+
"create.js"
|
|
3266
3104
|
],
|
|
3267
3105
|
"aliasPermutations": [],
|
|
3268
3106
|
"permutations": [
|
|
3269
|
-
"hardis:
|
|
3270
|
-
"
|
|
3271
|
-
"
|
|
3272
|
-
"hardis:
|
|
3273
|
-
"
|
|
3274
|
-
"
|
|
3107
|
+
"hardis:scratch:create",
|
|
3108
|
+
"scratch:hardis:create",
|
|
3109
|
+
"scratch:create:hardis",
|
|
3110
|
+
"hardis:create:scratch",
|
|
3111
|
+
"create:hardis:scratch",
|
|
3112
|
+
"create:scratch:hardis"
|
|
3275
3113
|
]
|
|
3276
3114
|
},
|
|
3277
|
-
"hardis:
|
|
3115
|
+
"hardis:scratch:delete": {
|
|
3278
3116
|
"aliases": [],
|
|
3279
3117
|
"args": {},
|
|
3280
|
-
"description": "
|
|
3118
|
+
"description": "Assisted menu to delete scratch orgs associated to a DevHub",
|
|
3119
|
+
"examples": [
|
|
3120
|
+
"$ sf hardis:scratch:delete"
|
|
3121
|
+
],
|
|
3281
3122
|
"flags": {
|
|
3282
3123
|
"json": {
|
|
3283
3124
|
"description": "Format output as json.",
|
|
@@ -3294,59 +3135,36 @@
|
|
|
3294
3135
|
"multiple": false,
|
|
3295
3136
|
"type": "option"
|
|
3296
3137
|
},
|
|
3297
|
-
"
|
|
3298
|
-
"char": "
|
|
3299
|
-
"description": "
|
|
3300
|
-
"name": "
|
|
3138
|
+
"debug": {
|
|
3139
|
+
"char": "d",
|
|
3140
|
+
"description": "Activate debug mode (more logs)",
|
|
3141
|
+
"name": "debug",
|
|
3301
3142
|
"allowNo": false,
|
|
3302
3143
|
"type": "boolean"
|
|
3303
3144
|
},
|
|
3304
|
-
"
|
|
3305
|
-
"
|
|
3306
|
-
"
|
|
3307
|
-
"name": "wait",
|
|
3308
|
-
"default": 60,
|
|
3145
|
+
"websocket": {
|
|
3146
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
3147
|
+
"name": "websocket",
|
|
3309
3148
|
"hasDynamicHelp": false,
|
|
3310
3149
|
"multiple": false,
|
|
3311
3150
|
"type": "option"
|
|
3312
3151
|
},
|
|
3313
|
-
"
|
|
3314
|
-
"
|
|
3315
|
-
"
|
|
3316
|
-
"name": "ignorewarnings",
|
|
3317
|
-
"allowNo": false,
|
|
3318
|
-
"type": "boolean"
|
|
3319
|
-
},
|
|
3320
|
-
"quiet": {
|
|
3321
|
-
"description": "quiet",
|
|
3322
|
-
"name": "quiet",
|
|
3323
|
-
"allowNo": false,
|
|
3324
|
-
"type": "boolean"
|
|
3325
|
-
},
|
|
3326
|
-
"debug": {
|
|
3327
|
-
"description": "debug",
|
|
3328
|
-
"name": "debug",
|
|
3152
|
+
"skipauth": {
|
|
3153
|
+
"description": "Skip authentication check when a default username is required",
|
|
3154
|
+
"name": "skipauth",
|
|
3329
3155
|
"allowNo": false,
|
|
3330
3156
|
"type": "boolean"
|
|
3331
3157
|
},
|
|
3332
|
-
"
|
|
3333
|
-
"description": "websocket",
|
|
3334
|
-
"name": "websocket",
|
|
3335
|
-
"hasDynamicHelp": false,
|
|
3336
|
-
"multiple": false,
|
|
3337
|
-
"type": "option"
|
|
3338
|
-
},
|
|
3339
|
-
"target-org": {
|
|
3158
|
+
"target-dev-hub": {
|
|
3340
3159
|
"aliases": [
|
|
3341
|
-
"
|
|
3342
|
-
"u"
|
|
3160
|
+
"targetdevhubusername"
|
|
3343
3161
|
],
|
|
3344
|
-
"char": "
|
|
3162
|
+
"char": "v",
|
|
3345
3163
|
"deprecateAliases": true,
|
|
3346
|
-
"name": "target-
|
|
3164
|
+
"name": "target-dev-hub",
|
|
3347
3165
|
"noCacheDefault": true,
|
|
3348
3166
|
"required": true,
|
|
3349
|
-
"summary": "Username or alias of the
|
|
3167
|
+
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
3350
3168
|
"hasDynamicHelp": true,
|
|
3351
3169
|
"multiple": false,
|
|
3352
3170
|
"type": "option"
|
|
@@ -3354,36 +3172,38 @@
|
|
|
3354
3172
|
},
|
|
3355
3173
|
"hasDynamicHelp": true,
|
|
3356
3174
|
"hiddenAliases": [],
|
|
3357
|
-
"id": "hardis:
|
|
3175
|
+
"id": "hardis:scratch:delete",
|
|
3358
3176
|
"pluginAlias": "sfdx-hardis",
|
|
3359
3177
|
"pluginName": "sfdx-hardis",
|
|
3360
3178
|
"pluginType": "core",
|
|
3361
3179
|
"strict": true,
|
|
3362
3180
|
"enableJsonFlag": true,
|
|
3363
|
-
"
|
|
3181
|
+
"title": "Delete scratch orgs(s)",
|
|
3364
3182
|
"isESM": true,
|
|
3365
3183
|
"relativePath": [
|
|
3366
3184
|
"lib",
|
|
3367
3185
|
"commands",
|
|
3368
3186
|
"hardis",
|
|
3369
|
-
"
|
|
3370
|
-
"
|
|
3187
|
+
"scratch",
|
|
3188
|
+
"delete.js"
|
|
3371
3189
|
],
|
|
3372
3190
|
"aliasPermutations": [],
|
|
3373
3191
|
"permutations": [
|
|
3374
|
-
"hardis:
|
|
3375
|
-
"
|
|
3376
|
-
"
|
|
3377
|
-
"hardis:
|
|
3378
|
-
"
|
|
3379
|
-
"
|
|
3192
|
+
"hardis:scratch:delete",
|
|
3193
|
+
"scratch:hardis:delete",
|
|
3194
|
+
"scratch:delete:hardis",
|
|
3195
|
+
"hardis:delete:scratch",
|
|
3196
|
+
"delete:hardis:scratch",
|
|
3197
|
+
"delete:scratch:hardis"
|
|
3380
3198
|
]
|
|
3381
3199
|
},
|
|
3382
|
-
"hardis:
|
|
3200
|
+
"hardis:scratch:pull": {
|
|
3383
3201
|
"aliases": [],
|
|
3384
3202
|
"args": {},
|
|
3385
|
-
"description": "
|
|
3386
|
-
"examples": [
|
|
3203
|
+
"description": "This commands pulls the updates you performed in your scratch or sandbox org, into your local files\n\nThen, you probably want to stage and commit the files containing the updates you want to keep, as explained in this video.\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/Ik6whtflmfY\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n\n- Calls `sf project retrieve start` under the hood\n- If there are errors, proposes to automatically add erroneous item in `.forceignore`, then pull again\n- If you don't see your updated items in the results, you can manually retrieve [using SF Extension **Org Browser** or **Salesforce CLI**](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-publish-task/#retrieve-metadatas)\n- If you want to always retrieve sources like CustomApplication that are not always detected as updates by project:retrieve:start , you can define property **autoRetrieveWhenPull** in .sfdx-hardis.yml\n\nExample:\n```yaml\nautoRetrieveWhenPull:\n - CustomApplication:MyCustomApplication\n - CustomApplication:MyOtherCustomApplication\n - CustomApplication:MyThirdCustomApp\n```\n",
|
|
3204
|
+
"examples": [
|
|
3205
|
+
"$ sf hardis:scratch:pull"
|
|
3206
|
+
],
|
|
3387
3207
|
"flags": {
|
|
3388
3208
|
"json": {
|
|
3389
3209
|
"description": "Format output as json.",
|
|
@@ -3400,98 +3220,15 @@
|
|
|
3400
3220
|
"multiple": false,
|
|
3401
3221
|
"type": "option"
|
|
3402
3222
|
},
|
|
3403
|
-
"apiversion": {
|
|
3404
|
-
"char": "a",
|
|
3405
|
-
"description": "Override the api version used for api requests made by this command",
|
|
3406
|
-
"name": "apiversion",
|
|
3407
|
-
"hasDynamicHelp": false,
|
|
3408
|
-
"multiple": false,
|
|
3409
|
-
"type": "option"
|
|
3410
|
-
},
|
|
3411
|
-
"sourcepath": {
|
|
3412
|
-
"char": "p",
|
|
3413
|
-
"description": "sourcePath",
|
|
3414
|
-
"exclusive": [
|
|
3415
|
-
"manifest",
|
|
3416
|
-
"metadata"
|
|
3417
|
-
],
|
|
3418
|
-
"name": "sourcepath",
|
|
3419
|
-
"hasDynamicHelp": false,
|
|
3420
|
-
"multiple": true,
|
|
3421
|
-
"type": "option"
|
|
3422
|
-
},
|
|
3423
|
-
"wait": {
|
|
3424
|
-
"char": "w",
|
|
3425
|
-
"description": "wait",
|
|
3426
|
-
"name": "wait",
|
|
3427
|
-
"hasDynamicHelp": false,
|
|
3428
|
-
"multiple": false,
|
|
3429
|
-
"type": "option"
|
|
3430
|
-
},
|
|
3431
|
-
"manifest": {
|
|
3432
|
-
"char": "x",
|
|
3433
|
-
"description": "manifest",
|
|
3434
|
-
"exclusive": [
|
|
3435
|
-
"metadata",
|
|
3436
|
-
"sourcepath"
|
|
3437
|
-
],
|
|
3438
|
-
"name": "manifest",
|
|
3439
|
-
"hasDynamicHelp": false,
|
|
3440
|
-
"multiple": false,
|
|
3441
|
-
"type": "option"
|
|
3442
|
-
},
|
|
3443
|
-
"metadata": {
|
|
3444
|
-
"char": "m",
|
|
3445
|
-
"description": "metadata",
|
|
3446
|
-
"exclusive": [
|
|
3447
|
-
"manifest",
|
|
3448
|
-
"sourcepath"
|
|
3449
|
-
],
|
|
3450
|
-
"name": "metadata",
|
|
3451
|
-
"hasDynamicHelp": false,
|
|
3452
|
-
"multiple": true,
|
|
3453
|
-
"type": "option"
|
|
3454
|
-
},
|
|
3455
|
-
"packagenames": {
|
|
3456
|
-
"char": "n",
|
|
3457
|
-
"description": "packagenames",
|
|
3458
|
-
"name": "packagenames",
|
|
3459
|
-
"hasDynamicHelp": false,
|
|
3460
|
-
"multiple": true,
|
|
3461
|
-
"type": "option"
|
|
3462
|
-
},
|
|
3463
|
-
"tracksource": {
|
|
3464
|
-
"char": "t",
|
|
3465
|
-
"description": "tracksource",
|
|
3466
|
-
"name": "tracksource",
|
|
3467
|
-
"allowNo": false,
|
|
3468
|
-
"type": "boolean"
|
|
3469
|
-
},
|
|
3470
|
-
"forceoverwrite": {
|
|
3471
|
-
"char": "f",
|
|
3472
|
-
"dependsOn": [
|
|
3473
|
-
"tracksource"
|
|
3474
|
-
],
|
|
3475
|
-
"description": "forceoverwrite",
|
|
3476
|
-
"name": "forceoverwrite",
|
|
3477
|
-
"allowNo": false,
|
|
3478
|
-
"type": "boolean"
|
|
3479
|
-
},
|
|
3480
|
-
"verbose": {
|
|
3481
|
-
"description": "verbose",
|
|
3482
|
-
"name": "verbose",
|
|
3483
|
-
"allowNo": false,
|
|
3484
|
-
"type": "boolean"
|
|
3485
|
-
},
|
|
3486
3223
|
"debug": {
|
|
3487
3224
|
"char": "d",
|
|
3488
|
-
"description": "
|
|
3225
|
+
"description": "Activate debug mode (more logs)",
|
|
3489
3226
|
"name": "debug",
|
|
3490
3227
|
"allowNo": false,
|
|
3491
3228
|
"type": "boolean"
|
|
3492
3229
|
},
|
|
3493
3230
|
"websocket": {
|
|
3494
|
-
"description": "
|
|
3231
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
3495
3232
|
"name": "websocket",
|
|
3496
3233
|
"hasDynamicHelp": false,
|
|
3497
3234
|
"multiple": false,
|
|
@@ -3521,37 +3258,38 @@
|
|
|
3521
3258
|
},
|
|
3522
3259
|
"hasDynamicHelp": true,
|
|
3523
3260
|
"hiddenAliases": [],
|
|
3524
|
-
"id": "hardis:
|
|
3261
|
+
"id": "hardis:scratch:pull",
|
|
3525
3262
|
"pluginAlias": "sfdx-hardis",
|
|
3526
3263
|
"pluginName": "sfdx-hardis",
|
|
3527
3264
|
"pluginType": "core",
|
|
3528
3265
|
"strict": true,
|
|
3529
3266
|
"enableJsonFlag": true,
|
|
3267
|
+
"title": "Scratch PULL",
|
|
3530
3268
|
"requiresProject": true,
|
|
3531
3269
|
"isESM": true,
|
|
3532
3270
|
"relativePath": [
|
|
3533
3271
|
"lib",
|
|
3534
3272
|
"commands",
|
|
3535
3273
|
"hardis",
|
|
3536
|
-
"
|
|
3537
|
-
"
|
|
3274
|
+
"scratch",
|
|
3275
|
+
"pull.js"
|
|
3538
3276
|
],
|
|
3539
3277
|
"aliasPermutations": [],
|
|
3540
3278
|
"permutations": [
|
|
3541
|
-
"hardis:
|
|
3542
|
-
"
|
|
3543
|
-
"
|
|
3544
|
-
"hardis:
|
|
3545
|
-
"
|
|
3546
|
-
"
|
|
3279
|
+
"hardis:scratch:pull",
|
|
3280
|
+
"scratch:hardis:pull",
|
|
3281
|
+
"scratch:pull:hardis",
|
|
3282
|
+
"hardis:pull:scratch",
|
|
3283
|
+
"pull:hardis:scratch",
|
|
3284
|
+
"pull:scratch:hardis"
|
|
3547
3285
|
]
|
|
3548
3286
|
},
|
|
3549
|
-
"hardis:scratch:
|
|
3287
|
+
"hardis:scratch:push": {
|
|
3550
3288
|
"aliases": [],
|
|
3551
3289
|
"args": {},
|
|
3552
|
-
"description": "
|
|
3290
|
+
"description": "Push local files to scratch org\n\nCalls `sf project deploy start` under the hood\n",
|
|
3553
3291
|
"examples": [
|
|
3554
|
-
"$ sf hardis:scratch:
|
|
3292
|
+
"$ sf hardis:scratch:push"
|
|
3555
3293
|
],
|
|
3556
3294
|
"flags": {
|
|
3557
3295
|
"json": {
|
|
@@ -3569,19 +3307,6 @@
|
|
|
3569
3307
|
"multiple": false,
|
|
3570
3308
|
"type": "option"
|
|
3571
3309
|
},
|
|
3572
|
-
"forcenew": {
|
|
3573
|
-
"char": "n",
|
|
3574
|
-
"description": "If an existing scratch org exists, do not reuse it but create a new one",
|
|
3575
|
-
"name": "forcenew",
|
|
3576
|
-
"allowNo": false,
|
|
3577
|
-
"type": "boolean"
|
|
3578
|
-
},
|
|
3579
|
-
"pool": {
|
|
3580
|
-
"description": "Creates the scratch org for a scratch org pool",
|
|
3581
|
-
"name": "pool",
|
|
3582
|
-
"allowNo": false,
|
|
3583
|
-
"type": "boolean"
|
|
3584
|
-
},
|
|
3585
3310
|
"debug": {
|
|
3586
3311
|
"char": "d",
|
|
3587
3312
|
"description": "Activate debug mode (more logs)",
|
|
@@ -3602,16 +3327,17 @@
|
|
|
3602
3327
|
"allowNo": false,
|
|
3603
3328
|
"type": "boolean"
|
|
3604
3329
|
},
|
|
3605
|
-
"target-
|
|
3330
|
+
"target-org": {
|
|
3606
3331
|
"aliases": [
|
|
3607
|
-
"
|
|
3332
|
+
"targetusername",
|
|
3333
|
+
"u"
|
|
3608
3334
|
],
|
|
3609
|
-
"char": "
|
|
3335
|
+
"char": "o",
|
|
3610
3336
|
"deprecateAliases": true,
|
|
3611
|
-
"name": "target-
|
|
3337
|
+
"name": "target-org",
|
|
3612
3338
|
"noCacheDefault": true,
|
|
3613
3339
|
"required": true,
|
|
3614
|
-
"summary": "Username or alias of the
|
|
3340
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
3615
3341
|
"hasDynamicHelp": true,
|
|
3616
3342
|
"multiple": false,
|
|
3617
3343
|
"type": "option"
|
|
@@ -3619,42 +3345,38 @@
|
|
|
3619
3345
|
},
|
|
3620
3346
|
"hasDynamicHelp": true,
|
|
3621
3347
|
"hiddenAliases": [],
|
|
3622
|
-
"id": "hardis:scratch:
|
|
3348
|
+
"id": "hardis:scratch:push",
|
|
3623
3349
|
"pluginAlias": "sfdx-hardis",
|
|
3624
3350
|
"pluginName": "sfdx-hardis",
|
|
3625
3351
|
"pluginType": "core",
|
|
3626
3352
|
"strict": true,
|
|
3627
3353
|
"enableJsonFlag": true,
|
|
3628
|
-
"title": "
|
|
3354
|
+
"title": "Scratch PUSH",
|
|
3629
3355
|
"requiresProject": true,
|
|
3630
|
-
"requiresSfdxPlugins": [
|
|
3631
|
-
"sfdmu",
|
|
3632
|
-
"texei-sfdx-plugin"
|
|
3633
|
-
],
|
|
3634
3356
|
"isESM": true,
|
|
3635
3357
|
"relativePath": [
|
|
3636
3358
|
"lib",
|
|
3637
3359
|
"commands",
|
|
3638
3360
|
"hardis",
|
|
3639
3361
|
"scratch",
|
|
3640
|
-
"
|
|
3362
|
+
"push.js"
|
|
3641
3363
|
],
|
|
3642
3364
|
"aliasPermutations": [],
|
|
3643
3365
|
"permutations": [
|
|
3644
|
-
"hardis:scratch:
|
|
3645
|
-
"scratch:hardis:
|
|
3646
|
-
"scratch:
|
|
3647
|
-
"hardis:
|
|
3648
|
-
"
|
|
3649
|
-
"
|
|
3366
|
+
"hardis:scratch:push",
|
|
3367
|
+
"scratch:hardis:push",
|
|
3368
|
+
"scratch:push:hardis",
|
|
3369
|
+
"hardis:push:scratch",
|
|
3370
|
+
"push:hardis:scratch",
|
|
3371
|
+
"push:scratch:hardis"
|
|
3650
3372
|
]
|
|
3651
3373
|
},
|
|
3652
|
-
"hardis:
|
|
3374
|
+
"hardis:source:deploy": {
|
|
3653
3375
|
"aliases": [],
|
|
3654
3376
|
"args": {},
|
|
3655
|
-
"description": "Assisted
|
|
3377
|
+
"description": "sfdx-hardis wrapper for sfdx force:source:deploy that displays tips to solve deployment errors.\n\nAdditional to the base command wrapper: If using **--checkonly**, add options **--checkcoverage** and **--coverageformatters json-summary** to check that org coverage is > 75% (or value defined in .sfdx-hardis.yml property **apexTestsMinCoverageOrgWide**)\n\n### Deployment results\n\nYou can also have deployment results as pull request comments, on:\n\n- GitHub (see [GitHub Pull Requests comments config](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-github/))\n- Gitlab (see [Gitlab integration configuration](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-gitlab/))\n- Azure DevOps (see [Azure integration configuration](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-azure/))\n\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n### Deployment pre or post commands\n\nYou can define command lines to run before or after a deployment, with parameters:\n\n- **id**: Unique Id for the command\n- **label**: Human readable label for the command\n- **skipIfError**: If defined to \"true\", the post-command won't be run if there is a deployment failure\n- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**\n- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)\n\nIf the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**\n\nExample:\n\n```yaml\ncommandsPreDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to the deployment user\n command: sf data update record --sobject User --where \"Username='deploy.github@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n\ncommandsPostDeploy:\n - id: knowledgeUnassign\n label: Remove KnowledgeUser right to the user who has it\n command: sf data update record --sobject User --where \"UserPermissionsKnowledgeUser='true'\" --values \"UserPermissionsKnowledgeUser='false'\" --json\n - id: knowledgeAssign\n label: Assign Knowledge user to desired username\n command: sf data update record --sobject User --where \"Username='admin-yser@myclient.com'\" --values \"UserPermissionsKnowledgeUser='true'\" --json\n - id: someActionToRunJustOneTime\n label: And to run only if deployment is success\n command: sf sfdmu:run ...\n skipIfError: true\n context: process-deployment-only\n runOnlyOnceByOrg: true\n```\n\nNotes:\n\n- You can disable coloring of errors in red by defining env variable SFDX_HARDIS_DEPLOY_ERR_COLORS=false\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_deploy)\n",
|
|
3656
3378
|
"examples": [
|
|
3657
|
-
"$ sf hardis:
|
|
3379
|
+
"$ sf hardis:source:deploy -x manifest/package.xml --wait 60 --ignorewarnings --testlevel RunLocalTests --postdestructivechanges ./manifest/destructiveChanges.xml --target-org nicolas.vuillamy@cloudity.com.sfdxhardis --checkonly --checkcoverage --verbose --coverageformatters json-summary"
|
|
3658
3380
|
],
|
|
3659
3381
|
"flags": {
|
|
3660
3382
|
"json": {
|
|
@@ -3672,36 +3394,216 @@
|
|
|
3672
3394
|
"multiple": false,
|
|
3673
3395
|
"type": "option"
|
|
3674
3396
|
},
|
|
3397
|
+
"checkonly": {
|
|
3398
|
+
"char": "c",
|
|
3399
|
+
"description": "checkonly",
|
|
3400
|
+
"name": "checkonly",
|
|
3401
|
+
"allowNo": false,
|
|
3402
|
+
"type": "boolean"
|
|
3403
|
+
},
|
|
3404
|
+
"soapdeploy": {
|
|
3405
|
+
"description": "soapDeploy",
|
|
3406
|
+
"name": "soapdeploy",
|
|
3407
|
+
"allowNo": false,
|
|
3408
|
+
"type": "boolean"
|
|
3409
|
+
},
|
|
3410
|
+
"wait": {
|
|
3411
|
+
"char": "w",
|
|
3412
|
+
"description": "wait",
|
|
3413
|
+
"name": "wait",
|
|
3414
|
+
"default": 60,
|
|
3415
|
+
"hasDynamicHelp": false,
|
|
3416
|
+
"multiple": false,
|
|
3417
|
+
"type": "option"
|
|
3418
|
+
},
|
|
3419
|
+
"testlevel": {
|
|
3420
|
+
"char": "l",
|
|
3421
|
+
"description": "testlevel",
|
|
3422
|
+
"name": "testlevel",
|
|
3423
|
+
"default": "NoTestRun",
|
|
3424
|
+
"hasDynamicHelp": false,
|
|
3425
|
+
"multiple": false,
|
|
3426
|
+
"options": [
|
|
3427
|
+
"NoTestRun",
|
|
3428
|
+
"RunSpecifiedTests",
|
|
3429
|
+
"RunLocalTests",
|
|
3430
|
+
"RunAllTestsInOrg"
|
|
3431
|
+
],
|
|
3432
|
+
"type": "option"
|
|
3433
|
+
},
|
|
3434
|
+
"runtests": {
|
|
3435
|
+
"char": "r",
|
|
3436
|
+
"description": "runTests",
|
|
3437
|
+
"name": "runtests",
|
|
3438
|
+
"default": [],
|
|
3439
|
+
"hasDynamicHelp": false,
|
|
3440
|
+
"multiple": true,
|
|
3441
|
+
"type": "option"
|
|
3442
|
+
},
|
|
3443
|
+
"ignoreerrors": {
|
|
3444
|
+
"description": "ignoreErrors",
|
|
3445
|
+
"name": "ignoreerrors",
|
|
3446
|
+
"allowNo": false,
|
|
3447
|
+
"type": "boolean"
|
|
3448
|
+
},
|
|
3449
|
+
"ignorewarnings": {
|
|
3450
|
+
"char": "g",
|
|
3451
|
+
"description": "ignoreWarnings",
|
|
3452
|
+
"name": "ignorewarnings",
|
|
3453
|
+
"allowNo": false,
|
|
3454
|
+
"type": "boolean"
|
|
3455
|
+
},
|
|
3456
|
+
"validateddeployrequestid": {
|
|
3457
|
+
"char": "q",
|
|
3458
|
+
"description": "validateDeployRequestId",
|
|
3459
|
+
"exclusive": [
|
|
3460
|
+
"manifest",
|
|
3461
|
+
"metadata",
|
|
3462
|
+
"sourcepath",
|
|
3463
|
+
"checkonly",
|
|
3464
|
+
"testlevel",
|
|
3465
|
+
"runtests",
|
|
3466
|
+
"ignoreerrors",
|
|
3467
|
+
"ignorewarnings"
|
|
3468
|
+
],
|
|
3469
|
+
"name": "validateddeployrequestid",
|
|
3470
|
+
"hasDynamicHelp": false,
|
|
3471
|
+
"multiple": false,
|
|
3472
|
+
"type": "option"
|
|
3473
|
+
},
|
|
3474
|
+
"verbose": {
|
|
3475
|
+
"description": "verbose",
|
|
3476
|
+
"name": "verbose",
|
|
3477
|
+
"allowNo": false,
|
|
3478
|
+
"type": "boolean"
|
|
3479
|
+
},
|
|
3480
|
+
"metadata": {
|
|
3481
|
+
"char": "m",
|
|
3482
|
+
"description": "metadata",
|
|
3483
|
+
"exclusive": [
|
|
3484
|
+
"manifest",
|
|
3485
|
+
"sourcepath"
|
|
3486
|
+
],
|
|
3487
|
+
"name": "metadata",
|
|
3488
|
+
"hasDynamicHelp": false,
|
|
3489
|
+
"multiple": true,
|
|
3490
|
+
"type": "option"
|
|
3491
|
+
},
|
|
3492
|
+
"sourcepath": {
|
|
3493
|
+
"char": "p",
|
|
3494
|
+
"description": "sourcePath",
|
|
3495
|
+
"exclusive": [
|
|
3496
|
+
"manifest",
|
|
3497
|
+
"metadata"
|
|
3498
|
+
],
|
|
3499
|
+
"name": "sourcepath",
|
|
3500
|
+
"hasDynamicHelp": false,
|
|
3501
|
+
"multiple": true,
|
|
3502
|
+
"type": "option"
|
|
3503
|
+
},
|
|
3504
|
+
"manifest": {
|
|
3505
|
+
"char": "x",
|
|
3506
|
+
"description": "flagsLong.manifest",
|
|
3507
|
+
"exclusive": [
|
|
3508
|
+
"metadata",
|
|
3509
|
+
"sourcepath"
|
|
3510
|
+
],
|
|
3511
|
+
"name": "manifest",
|
|
3512
|
+
"hasDynamicHelp": false,
|
|
3513
|
+
"multiple": false,
|
|
3514
|
+
"type": "option"
|
|
3515
|
+
},
|
|
3516
|
+
"predestructivechanges": {
|
|
3517
|
+
"dependsOn": [
|
|
3518
|
+
"manifest"
|
|
3519
|
+
],
|
|
3520
|
+
"description": "predestructivechanges",
|
|
3521
|
+
"name": "predestructivechanges",
|
|
3522
|
+
"hasDynamicHelp": false,
|
|
3523
|
+
"multiple": false,
|
|
3524
|
+
"type": "option"
|
|
3525
|
+
},
|
|
3526
|
+
"postdestructivechanges": {
|
|
3527
|
+
"dependsOn": [
|
|
3528
|
+
"manifest"
|
|
3529
|
+
],
|
|
3530
|
+
"description": "postdestructivechanges",
|
|
3531
|
+
"name": "postdestructivechanges",
|
|
3532
|
+
"hasDynamicHelp": false,
|
|
3533
|
+
"multiple": false,
|
|
3534
|
+
"type": "option"
|
|
3535
|
+
},
|
|
3536
|
+
"tracksource": {
|
|
3537
|
+
"char": "t",
|
|
3538
|
+
"description": "tracksource",
|
|
3539
|
+
"exclusive": [
|
|
3540
|
+
"checkonly",
|
|
3541
|
+
"validateddeployrequestid"
|
|
3542
|
+
],
|
|
3543
|
+
"name": "tracksource",
|
|
3544
|
+
"allowNo": false,
|
|
3545
|
+
"type": "boolean"
|
|
3546
|
+
},
|
|
3547
|
+
"forceoverwrite": {
|
|
3548
|
+
"char": "f",
|
|
3549
|
+
"dependsOn": [
|
|
3550
|
+
"tracksource"
|
|
3551
|
+
],
|
|
3552
|
+
"description": "forceoverwrite",
|
|
3553
|
+
"name": "forceoverwrite",
|
|
3554
|
+
"allowNo": false,
|
|
3555
|
+
"type": "boolean"
|
|
3556
|
+
},
|
|
3557
|
+
"resultsdir": {
|
|
3558
|
+
"description": "resultsdir",
|
|
3559
|
+
"name": "resultsdir",
|
|
3560
|
+
"hasDynamicHelp": false,
|
|
3561
|
+
"multiple": false,
|
|
3562
|
+
"type": "option"
|
|
3563
|
+
},
|
|
3564
|
+
"coverageformatters": {
|
|
3565
|
+
"description": "coverageformatters",
|
|
3566
|
+
"name": "coverageformatters",
|
|
3567
|
+
"hasDynamicHelp": false,
|
|
3568
|
+
"multiple": true,
|
|
3569
|
+
"type": "option"
|
|
3570
|
+
},
|
|
3571
|
+
"junit": {
|
|
3572
|
+
"description": "junit",
|
|
3573
|
+
"name": "junit",
|
|
3574
|
+
"allowNo": false,
|
|
3575
|
+
"type": "boolean"
|
|
3576
|
+
},
|
|
3577
|
+
"checkcoverage": {
|
|
3578
|
+
"description": "Check Apex org coverage",
|
|
3579
|
+
"name": "checkcoverage",
|
|
3580
|
+
"allowNo": false,
|
|
3581
|
+
"type": "boolean"
|
|
3582
|
+
},
|
|
3675
3583
|
"debug": {
|
|
3676
|
-
"
|
|
3677
|
-
"description": "Activate debug mode (more logs)",
|
|
3584
|
+
"description": "debug",
|
|
3678
3585
|
"name": "debug",
|
|
3679
3586
|
"allowNo": false,
|
|
3680
3587
|
"type": "boolean"
|
|
3681
3588
|
},
|
|
3682
3589
|
"websocket": {
|
|
3683
|
-
"description": "
|
|
3590
|
+
"description": "websocket",
|
|
3684
3591
|
"name": "websocket",
|
|
3685
3592
|
"hasDynamicHelp": false,
|
|
3686
3593
|
"multiple": false,
|
|
3687
3594
|
"type": "option"
|
|
3688
3595
|
},
|
|
3689
|
-
"
|
|
3690
|
-
"description": "Skip authentication check when a default username is required",
|
|
3691
|
-
"name": "skipauth",
|
|
3692
|
-
"allowNo": false,
|
|
3693
|
-
"type": "boolean"
|
|
3694
|
-
},
|
|
3695
|
-
"target-dev-hub": {
|
|
3596
|
+
"target-org": {
|
|
3696
3597
|
"aliases": [
|
|
3697
|
-
"
|
|
3598
|
+
"targetusername",
|
|
3599
|
+
"u"
|
|
3698
3600
|
],
|
|
3699
|
-
"char": "
|
|
3601
|
+
"char": "o",
|
|
3700
3602
|
"deprecateAliases": true,
|
|
3701
|
-
"name": "target-
|
|
3603
|
+
"name": "target-org",
|
|
3702
3604
|
"noCacheDefault": true,
|
|
3703
3605
|
"required": true,
|
|
3704
|
-
"summary": "Username or alias of the
|
|
3606
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
3705
3607
|
"hasDynamicHelp": true,
|
|
3706
3608
|
"multiple": false,
|
|
3707
3609
|
"type": "option"
|
|
@@ -3709,38 +3611,35 @@
|
|
|
3709
3611
|
},
|
|
3710
3612
|
"hasDynamicHelp": true,
|
|
3711
3613
|
"hiddenAliases": [],
|
|
3712
|
-
"id": "hardis:
|
|
3614
|
+
"id": "hardis:source:deploy",
|
|
3713
3615
|
"pluginAlias": "sfdx-hardis",
|
|
3714
3616
|
"pluginName": "sfdx-hardis",
|
|
3715
3617
|
"pluginType": "core",
|
|
3716
3618
|
"strict": true,
|
|
3717
3619
|
"enableJsonFlag": true,
|
|
3718
|
-
"
|
|
3620
|
+
"requiresProject": true,
|
|
3719
3621
|
"isESM": true,
|
|
3720
3622
|
"relativePath": [
|
|
3721
3623
|
"lib",
|
|
3722
3624
|
"commands",
|
|
3723
3625
|
"hardis",
|
|
3724
|
-
"
|
|
3725
|
-
"
|
|
3626
|
+
"source",
|
|
3627
|
+
"deploy.js"
|
|
3726
3628
|
],
|
|
3727
3629
|
"aliasPermutations": [],
|
|
3728
3630
|
"permutations": [
|
|
3729
|
-
"hardis:
|
|
3730
|
-
"
|
|
3731
|
-
"
|
|
3732
|
-
"hardis:
|
|
3733
|
-
"
|
|
3734
|
-
"
|
|
3631
|
+
"hardis:source:deploy",
|
|
3632
|
+
"source:hardis:deploy",
|
|
3633
|
+
"source:deploy:hardis",
|
|
3634
|
+
"hardis:deploy:source",
|
|
3635
|
+
"deploy:hardis:source",
|
|
3636
|
+
"deploy:source:hardis"
|
|
3735
3637
|
]
|
|
3736
3638
|
},
|
|
3737
|
-
"hardis:
|
|
3639
|
+
"hardis:source:push": {
|
|
3738
3640
|
"aliases": [],
|
|
3739
3641
|
"args": {},
|
|
3740
|
-
"description": "
|
|
3741
|
-
"examples": [
|
|
3742
|
-
"$ sf hardis:scratch:pull"
|
|
3743
|
-
],
|
|
3642
|
+
"description": "sfdx-hardis wrapper for sfdx force:source:push that displays tips to solve deployment errors.\n\n[](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_push)\n",
|
|
3744
3643
|
"flags": {
|
|
3745
3644
|
"json": {
|
|
3746
3645
|
"description": "Format output as json.",
|
|
@@ -3757,26 +3656,48 @@
|
|
|
3757
3656
|
"multiple": false,
|
|
3758
3657
|
"type": "option"
|
|
3759
3658
|
},
|
|
3659
|
+
"forceoverwrite": {
|
|
3660
|
+
"char": "f",
|
|
3661
|
+
"description": "forceoverwrite",
|
|
3662
|
+
"name": "forceoverwrite",
|
|
3663
|
+
"allowNo": false,
|
|
3664
|
+
"type": "boolean"
|
|
3665
|
+
},
|
|
3666
|
+
"wait": {
|
|
3667
|
+
"char": "w",
|
|
3668
|
+
"description": "wait",
|
|
3669
|
+
"name": "wait",
|
|
3670
|
+
"default": 60,
|
|
3671
|
+
"hasDynamicHelp": false,
|
|
3672
|
+
"multiple": false,
|
|
3673
|
+
"type": "option"
|
|
3674
|
+
},
|
|
3675
|
+
"ignorewarnings": {
|
|
3676
|
+
"char": "g",
|
|
3677
|
+
"description": "ignorewarnings",
|
|
3678
|
+
"name": "ignorewarnings",
|
|
3679
|
+
"allowNo": false,
|
|
3680
|
+
"type": "boolean"
|
|
3681
|
+
},
|
|
3682
|
+
"quiet": {
|
|
3683
|
+
"description": "quiet",
|
|
3684
|
+
"name": "quiet",
|
|
3685
|
+
"allowNo": false,
|
|
3686
|
+
"type": "boolean"
|
|
3687
|
+
},
|
|
3760
3688
|
"debug": {
|
|
3761
|
-
"
|
|
3762
|
-
"description": "Activate debug mode (more logs)",
|
|
3689
|
+
"description": "debug",
|
|
3763
3690
|
"name": "debug",
|
|
3764
3691
|
"allowNo": false,
|
|
3765
3692
|
"type": "boolean"
|
|
3766
3693
|
},
|
|
3767
3694
|
"websocket": {
|
|
3768
|
-
"description": "
|
|
3695
|
+
"description": "websocket",
|
|
3769
3696
|
"name": "websocket",
|
|
3770
3697
|
"hasDynamicHelp": false,
|
|
3771
3698
|
"multiple": false,
|
|
3772
3699
|
"type": "option"
|
|
3773
3700
|
},
|
|
3774
|
-
"skipauth": {
|
|
3775
|
-
"description": "Skip authentication check when a default username is required",
|
|
3776
|
-
"name": "skipauth",
|
|
3777
|
-
"allowNo": false,
|
|
3778
|
-
"type": "boolean"
|
|
3779
|
-
},
|
|
3780
3701
|
"target-org": {
|
|
3781
3702
|
"aliases": [
|
|
3782
3703
|
"targetusername",
|
|
@@ -3795,39 +3716,36 @@
|
|
|
3795
3716
|
},
|
|
3796
3717
|
"hasDynamicHelp": true,
|
|
3797
3718
|
"hiddenAliases": [],
|
|
3798
|
-
"id": "hardis:
|
|
3719
|
+
"id": "hardis:source:push",
|
|
3799
3720
|
"pluginAlias": "sfdx-hardis",
|
|
3800
3721
|
"pluginName": "sfdx-hardis",
|
|
3801
3722
|
"pluginType": "core",
|
|
3802
3723
|
"strict": true,
|
|
3803
3724
|
"enableJsonFlag": true,
|
|
3804
|
-
"title": "Scratch PULL",
|
|
3805
3725
|
"requiresProject": true,
|
|
3806
3726
|
"isESM": true,
|
|
3807
3727
|
"relativePath": [
|
|
3808
3728
|
"lib",
|
|
3809
3729
|
"commands",
|
|
3810
3730
|
"hardis",
|
|
3811
|
-
"
|
|
3812
|
-
"
|
|
3731
|
+
"source",
|
|
3732
|
+
"push.js"
|
|
3813
3733
|
],
|
|
3814
3734
|
"aliasPermutations": [],
|
|
3815
3735
|
"permutations": [
|
|
3816
|
-
"hardis:
|
|
3817
|
-
"
|
|
3818
|
-
"
|
|
3819
|
-
"hardis:
|
|
3820
|
-
"
|
|
3821
|
-
"
|
|
3736
|
+
"hardis:source:push",
|
|
3737
|
+
"source:hardis:push",
|
|
3738
|
+
"source:push:hardis",
|
|
3739
|
+
"hardis:push:source",
|
|
3740
|
+
"push:hardis:source",
|
|
3741
|
+
"push:source:hardis"
|
|
3822
3742
|
]
|
|
3823
3743
|
},
|
|
3824
|
-
"hardis:
|
|
3744
|
+
"hardis:source:retrieve": {
|
|
3825
3745
|
"aliases": [],
|
|
3826
3746
|
"args": {},
|
|
3827
|
-
"description": "
|
|
3828
|
-
"examples": [
|
|
3829
|
-
"$ sf hardis:scratch:push"
|
|
3830
|
-
],
|
|
3747
|
+
"description": "sfdx-hardis wrapper for sfdx force:source:retrieve\n\n- If no retrieve constraint is sent, as assisted menu will request the list of metadatas to retrieve\n- If no org is selected , an assisted menu will request the user to choose one\n\n[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_retrieve)\n",
|
|
3748
|
+
"examples": [],
|
|
3831
3749
|
"flags": {
|
|
3832
3750
|
"json": {
|
|
3833
3751
|
"description": "Format output as json.",
|
|
@@ -3844,15 +3762,98 @@
|
|
|
3844
3762
|
"multiple": false,
|
|
3845
3763
|
"type": "option"
|
|
3846
3764
|
},
|
|
3765
|
+
"apiversion": {
|
|
3766
|
+
"char": "a",
|
|
3767
|
+
"description": "Override the api version used for api requests made by this command",
|
|
3768
|
+
"name": "apiversion",
|
|
3769
|
+
"hasDynamicHelp": false,
|
|
3770
|
+
"multiple": false,
|
|
3771
|
+
"type": "option"
|
|
3772
|
+
},
|
|
3773
|
+
"sourcepath": {
|
|
3774
|
+
"char": "p",
|
|
3775
|
+
"description": "sourcePath",
|
|
3776
|
+
"exclusive": [
|
|
3777
|
+
"manifest",
|
|
3778
|
+
"metadata"
|
|
3779
|
+
],
|
|
3780
|
+
"name": "sourcepath",
|
|
3781
|
+
"hasDynamicHelp": false,
|
|
3782
|
+
"multiple": true,
|
|
3783
|
+
"type": "option"
|
|
3784
|
+
},
|
|
3785
|
+
"wait": {
|
|
3786
|
+
"char": "w",
|
|
3787
|
+
"description": "wait",
|
|
3788
|
+
"name": "wait",
|
|
3789
|
+
"hasDynamicHelp": false,
|
|
3790
|
+
"multiple": false,
|
|
3791
|
+
"type": "option"
|
|
3792
|
+
},
|
|
3793
|
+
"manifest": {
|
|
3794
|
+
"char": "x",
|
|
3795
|
+
"description": "manifest",
|
|
3796
|
+
"exclusive": [
|
|
3797
|
+
"metadata",
|
|
3798
|
+
"sourcepath"
|
|
3799
|
+
],
|
|
3800
|
+
"name": "manifest",
|
|
3801
|
+
"hasDynamicHelp": false,
|
|
3802
|
+
"multiple": false,
|
|
3803
|
+
"type": "option"
|
|
3804
|
+
},
|
|
3805
|
+
"metadata": {
|
|
3806
|
+
"char": "m",
|
|
3807
|
+
"description": "metadata",
|
|
3808
|
+
"exclusive": [
|
|
3809
|
+
"manifest",
|
|
3810
|
+
"sourcepath"
|
|
3811
|
+
],
|
|
3812
|
+
"name": "metadata",
|
|
3813
|
+
"hasDynamicHelp": false,
|
|
3814
|
+
"multiple": true,
|
|
3815
|
+
"type": "option"
|
|
3816
|
+
},
|
|
3817
|
+
"packagenames": {
|
|
3818
|
+
"char": "n",
|
|
3819
|
+
"description": "packagenames",
|
|
3820
|
+
"name": "packagenames",
|
|
3821
|
+
"hasDynamicHelp": false,
|
|
3822
|
+
"multiple": true,
|
|
3823
|
+
"type": "option"
|
|
3824
|
+
},
|
|
3825
|
+
"tracksource": {
|
|
3826
|
+
"char": "t",
|
|
3827
|
+
"description": "tracksource",
|
|
3828
|
+
"name": "tracksource",
|
|
3829
|
+
"allowNo": false,
|
|
3830
|
+
"type": "boolean"
|
|
3831
|
+
},
|
|
3832
|
+
"forceoverwrite": {
|
|
3833
|
+
"char": "f",
|
|
3834
|
+
"dependsOn": [
|
|
3835
|
+
"tracksource"
|
|
3836
|
+
],
|
|
3837
|
+
"description": "forceoverwrite",
|
|
3838
|
+
"name": "forceoverwrite",
|
|
3839
|
+
"allowNo": false,
|
|
3840
|
+
"type": "boolean"
|
|
3841
|
+
},
|
|
3842
|
+
"verbose": {
|
|
3843
|
+
"description": "verbose",
|
|
3844
|
+
"name": "verbose",
|
|
3845
|
+
"allowNo": false,
|
|
3846
|
+
"type": "boolean"
|
|
3847
|
+
},
|
|
3847
3848
|
"debug": {
|
|
3848
3849
|
"char": "d",
|
|
3849
|
-
"description": "
|
|
3850
|
+
"description": "debugMode",
|
|
3850
3851
|
"name": "debug",
|
|
3851
3852
|
"allowNo": false,
|
|
3852
3853
|
"type": "boolean"
|
|
3853
3854
|
},
|
|
3854
3855
|
"websocket": {
|
|
3855
|
-
"description": "
|
|
3856
|
+
"description": "websocket",
|
|
3856
3857
|
"name": "websocket",
|
|
3857
3858
|
"hasDynamicHelp": false,
|
|
3858
3859
|
"multiple": false,
|
|
@@ -3882,30 +3883,29 @@
|
|
|
3882
3883
|
},
|
|
3883
3884
|
"hasDynamicHelp": true,
|
|
3884
3885
|
"hiddenAliases": [],
|
|
3885
|
-
"id": "hardis:
|
|
3886
|
+
"id": "hardis:source:retrieve",
|
|
3886
3887
|
"pluginAlias": "sfdx-hardis",
|
|
3887
3888
|
"pluginName": "sfdx-hardis",
|
|
3888
3889
|
"pluginType": "core",
|
|
3889
3890
|
"strict": true,
|
|
3890
3891
|
"enableJsonFlag": true,
|
|
3891
|
-
"title": "Scratch PUSH",
|
|
3892
3892
|
"requiresProject": true,
|
|
3893
3893
|
"isESM": true,
|
|
3894
3894
|
"relativePath": [
|
|
3895
3895
|
"lib",
|
|
3896
3896
|
"commands",
|
|
3897
3897
|
"hardis",
|
|
3898
|
-
"
|
|
3899
|
-
"
|
|
3898
|
+
"source",
|
|
3899
|
+
"retrieve.js"
|
|
3900
3900
|
],
|
|
3901
3901
|
"aliasPermutations": [],
|
|
3902
3902
|
"permutations": [
|
|
3903
|
-
"hardis:
|
|
3904
|
-
"
|
|
3905
|
-
"
|
|
3906
|
-
"hardis:
|
|
3907
|
-
"
|
|
3908
|
-
"
|
|
3903
|
+
"hardis:source:retrieve",
|
|
3904
|
+
"source:hardis:retrieve",
|
|
3905
|
+
"source:retrieve:hardis",
|
|
3906
|
+
"hardis:retrieve:source",
|
|
3907
|
+
"retrieve:hardis:source",
|
|
3908
|
+
"retrieve:source:hardis"
|
|
3909
3909
|
]
|
|
3910
3910
|
},
|
|
3911
3911
|
"hardis:work:new": {
|
|
@@ -5476,15 +5476,12 @@
|
|
|
5476
5476
|
"import:data:org:hardis"
|
|
5477
5477
|
]
|
|
5478
5478
|
},
|
|
5479
|
-
"hardis:org:
|
|
5479
|
+
"hardis:org:files:export": {
|
|
5480
5480
|
"aliases": [],
|
|
5481
5481
|
"args": {},
|
|
5482
|
-
"description": "Export
|
|
5482
|
+
"description": "Export file attachments from a Salesforce org\n\nHandles:\n\n- ContentVersion\n- Attachment\n\nSee article below:\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
|
|
5483
5483
|
"examples": [
|
|
5484
|
-
"$ sf hardis:org:
|
|
5485
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5486
|
-
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5487
|
-
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5484
|
+
"$ sf hardis:org:files:export"
|
|
5488
5485
|
],
|
|
5489
5486
|
"flags": {
|
|
5490
5487
|
"json": {
|
|
@@ -5502,26 +5499,37 @@
|
|
|
5502
5499
|
"multiple": false,
|
|
5503
5500
|
"type": "option"
|
|
5504
5501
|
},
|
|
5505
|
-
"
|
|
5506
|
-
"char": "
|
|
5507
|
-
"description": "
|
|
5508
|
-
"name": "
|
|
5502
|
+
"path": {
|
|
5503
|
+
"char": "p",
|
|
5504
|
+
"description": "Path to the file export project",
|
|
5505
|
+
"name": "path",
|
|
5509
5506
|
"hasDynamicHelp": false,
|
|
5510
5507
|
"multiple": false,
|
|
5511
5508
|
"type": "option"
|
|
5512
5509
|
},
|
|
5513
|
-
"
|
|
5510
|
+
"chunksize": {
|
|
5511
|
+
"char": "c",
|
|
5512
|
+
"description": "Number of records to add in a chunk before it is processed",
|
|
5513
|
+
"name": "chunksize",
|
|
5514
|
+
"default": 1000,
|
|
5515
|
+
"hasDynamicHelp": false,
|
|
5516
|
+
"multiple": false,
|
|
5517
|
+
"type": "option"
|
|
5518
|
+
},
|
|
5519
|
+
"polltimeout": {
|
|
5514
5520
|
"char": "t",
|
|
5515
|
-
"description": "
|
|
5516
|
-
"name": "
|
|
5521
|
+
"description": "Timeout in MS for Bulk API calls",
|
|
5522
|
+
"name": "polltimeout",
|
|
5523
|
+
"default": 300000,
|
|
5517
5524
|
"hasDynamicHelp": false,
|
|
5518
5525
|
"multiple": false,
|
|
5519
5526
|
"type": "option"
|
|
5520
5527
|
},
|
|
5521
|
-
"
|
|
5522
|
-
"char": "
|
|
5523
|
-
"description": "
|
|
5524
|
-
"name": "
|
|
5528
|
+
"startchunknumber": {
|
|
5529
|
+
"char": "s",
|
|
5530
|
+
"description": "Chunk number to start from",
|
|
5531
|
+
"name": "startchunknumber",
|
|
5532
|
+
"default": 0,
|
|
5525
5533
|
"hasDynamicHelp": false,
|
|
5526
5534
|
"multiple": false,
|
|
5527
5535
|
"type": "option"
|
|
@@ -5564,13 +5572,13 @@
|
|
|
5564
5572
|
},
|
|
5565
5573
|
"hasDynamicHelp": true,
|
|
5566
5574
|
"hiddenAliases": [],
|
|
5567
|
-
"id": "hardis:org:
|
|
5575
|
+
"id": "hardis:org:files:export",
|
|
5568
5576
|
"pluginAlias": "sfdx-hardis",
|
|
5569
5577
|
"pluginName": "sfdx-hardis",
|
|
5570
5578
|
"pluginType": "core",
|
|
5571
5579
|
"strict": true,
|
|
5572
5580
|
"enableJsonFlag": true,
|
|
5573
|
-
"title": "
|
|
5581
|
+
"title": "Export files",
|
|
5574
5582
|
"requiresProject": false,
|
|
5575
5583
|
"isESM": true,
|
|
5576
5584
|
"relativePath": [
|
|
@@ -5578,43 +5586,43 @@
|
|
|
5578
5586
|
"commands",
|
|
5579
5587
|
"hardis",
|
|
5580
5588
|
"org",
|
|
5581
|
-
"
|
|
5582
|
-
"
|
|
5589
|
+
"files",
|
|
5590
|
+
"export.js"
|
|
5583
5591
|
],
|
|
5584
5592
|
"aliasPermutations": [],
|
|
5585
5593
|
"permutations": [
|
|
5586
|
-
"hardis:org:
|
|
5587
|
-
"org:hardis:
|
|
5588
|
-
"org:
|
|
5589
|
-
"org:
|
|
5590
|
-
"hardis:
|
|
5591
|
-
"
|
|
5592
|
-
"
|
|
5593
|
-
"
|
|
5594
|
-
"hardis:
|
|
5595
|
-
"
|
|
5596
|
-
"
|
|
5597
|
-
"
|
|
5598
|
-
"hardis:org:
|
|
5599
|
-
"org:hardis:
|
|
5600
|
-
"org:
|
|
5601
|
-
"org:
|
|
5602
|
-
"hardis:
|
|
5603
|
-
"
|
|
5604
|
-
"
|
|
5605
|
-
"
|
|
5606
|
-
"hardis:
|
|
5607
|
-
"
|
|
5608
|
-
"
|
|
5609
|
-
"
|
|
5594
|
+
"hardis:org:files:export",
|
|
5595
|
+
"org:hardis:files:export",
|
|
5596
|
+
"org:files:hardis:export",
|
|
5597
|
+
"org:files:export:hardis",
|
|
5598
|
+
"hardis:files:org:export",
|
|
5599
|
+
"files:hardis:org:export",
|
|
5600
|
+
"files:org:hardis:export",
|
|
5601
|
+
"files:org:export:hardis",
|
|
5602
|
+
"hardis:files:export:org",
|
|
5603
|
+
"files:hardis:export:org",
|
|
5604
|
+
"files:export:hardis:org",
|
|
5605
|
+
"files:export:org:hardis",
|
|
5606
|
+
"hardis:org:export:files",
|
|
5607
|
+
"org:hardis:export:files",
|
|
5608
|
+
"org:export:hardis:files",
|
|
5609
|
+
"org:export:files:hardis",
|
|
5610
|
+
"hardis:export:org:files",
|
|
5611
|
+
"export:hardis:org:files",
|
|
5612
|
+
"export:org:hardis:files",
|
|
5613
|
+
"export:org:files:hardis",
|
|
5614
|
+
"hardis:export:files:org",
|
|
5615
|
+
"export:hardis:files:org",
|
|
5616
|
+
"export:files:hardis:org",
|
|
5617
|
+
"export:files:org:hardis"
|
|
5610
5618
|
]
|
|
5611
5619
|
},
|
|
5612
|
-
"hardis:org:
|
|
5620
|
+
"hardis:org:files:import": {
|
|
5613
5621
|
"aliases": [],
|
|
5614
5622
|
"args": {},
|
|
5615
|
-
"description": "
|
|
5623
|
+
"description": "Import file attachments into a Salesforce org\n\nSee article below to see how to Export them.\n\n[](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
|
|
5616
5624
|
"examples": [
|
|
5617
|
-
"$ sf hardis:org:
|
|
5625
|
+
"$ sf hardis:org:files:import"
|
|
5618
5626
|
],
|
|
5619
5627
|
"flags": {
|
|
5620
5628
|
"json": {
|
|
@@ -5632,6 +5640,21 @@
|
|
|
5632
5640
|
"multiple": false,
|
|
5633
5641
|
"type": "option"
|
|
5634
5642
|
},
|
|
5643
|
+
"path": {
|
|
5644
|
+
"char": "p",
|
|
5645
|
+
"description": "Path to the file export project",
|
|
5646
|
+
"name": "path",
|
|
5647
|
+
"hasDynamicHelp": false,
|
|
5648
|
+
"multiple": false,
|
|
5649
|
+
"type": "option"
|
|
5650
|
+
},
|
|
5651
|
+
"overwrite": {
|
|
5652
|
+
"char": "f",
|
|
5653
|
+
"description": "Override existing files (doubles the number of API calls)",
|
|
5654
|
+
"name": "overwrite",
|
|
5655
|
+
"allowNo": false,
|
|
5656
|
+
"type": "boolean"
|
|
5657
|
+
},
|
|
5635
5658
|
"debug": {
|
|
5636
5659
|
"char": "d",
|
|
5637
5660
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5670,13 +5693,13 @@
|
|
|
5670
5693
|
},
|
|
5671
5694
|
"hasDynamicHelp": true,
|
|
5672
5695
|
"hiddenAliases": [],
|
|
5673
|
-
"id": "hardis:org:
|
|
5696
|
+
"id": "hardis:org:files:import",
|
|
5674
5697
|
"pluginAlias": "sfdx-hardis",
|
|
5675
5698
|
"pluginName": "sfdx-hardis",
|
|
5676
5699
|
"pluginType": "core",
|
|
5677
5700
|
"strict": true,
|
|
5678
5701
|
"enableJsonFlag": true,
|
|
5679
|
-
"title": "
|
|
5702
|
+
"title": "Import files",
|
|
5680
5703
|
"requiresProject": false,
|
|
5681
5704
|
"isESM": true,
|
|
5682
5705
|
"relativePath": [
|
|
@@ -5684,46 +5707,44 @@
|
|
|
5684
5707
|
"commands",
|
|
5685
5708
|
"hardis",
|
|
5686
5709
|
"org",
|
|
5687
|
-
"
|
|
5688
|
-
"
|
|
5710
|
+
"files",
|
|
5711
|
+
"import.js"
|
|
5689
5712
|
],
|
|
5690
5713
|
"aliasPermutations": [],
|
|
5691
5714
|
"permutations": [
|
|
5692
|
-
"hardis:org:
|
|
5693
|
-
"org:hardis:
|
|
5694
|
-
"org:
|
|
5695
|
-
"org:
|
|
5696
|
-
"hardis:
|
|
5697
|
-
"
|
|
5698
|
-
"
|
|
5699
|
-
"
|
|
5700
|
-
"hardis:
|
|
5701
|
-
"
|
|
5702
|
-
"
|
|
5703
|
-
"
|
|
5704
|
-
"hardis:org:
|
|
5705
|
-
"org:hardis:
|
|
5706
|
-
"org:
|
|
5707
|
-
"org:
|
|
5708
|
-
"hardis:
|
|
5709
|
-
"
|
|
5710
|
-
"
|
|
5711
|
-
"
|
|
5712
|
-
"hardis:
|
|
5713
|
-
"
|
|
5714
|
-
"
|
|
5715
|
-
"
|
|
5715
|
+
"hardis:org:files:import",
|
|
5716
|
+
"org:hardis:files:import",
|
|
5717
|
+
"org:files:hardis:import",
|
|
5718
|
+
"org:files:import:hardis",
|
|
5719
|
+
"hardis:files:org:import",
|
|
5720
|
+
"files:hardis:org:import",
|
|
5721
|
+
"files:org:hardis:import",
|
|
5722
|
+
"files:org:import:hardis",
|
|
5723
|
+
"hardis:files:import:org",
|
|
5724
|
+
"files:hardis:import:org",
|
|
5725
|
+
"files:import:hardis:org",
|
|
5726
|
+
"files:import:org:hardis",
|
|
5727
|
+
"hardis:org:import:files",
|
|
5728
|
+
"org:hardis:import:files",
|
|
5729
|
+
"org:import:hardis:files",
|
|
5730
|
+
"org:import:files:hardis",
|
|
5731
|
+
"hardis:import:org:files",
|
|
5732
|
+
"import:hardis:org:files",
|
|
5733
|
+
"import:org:hardis:files",
|
|
5734
|
+
"import:org:files:hardis",
|
|
5735
|
+
"hardis:import:files:org",
|
|
5736
|
+
"import:hardis:files:org",
|
|
5737
|
+
"import:files:hardis:org",
|
|
5738
|
+
"import:files:org:hardis"
|
|
5716
5739
|
]
|
|
5717
5740
|
},
|
|
5718
|
-
"hardis:org:
|
|
5741
|
+
"hardis:org:fix:listviewmine": {
|
|
5719
5742
|
"aliases": [],
|
|
5720
5743
|
"args": {},
|
|
5721
|
-
"description": "
|
|
5744
|
+
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
|
|
5722
5745
|
"examples": [
|
|
5723
|
-
"$ sf hardis:org:
|
|
5724
|
-
"$ sf hardis:org:
|
|
5725
|
-
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
5726
|
-
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
5746
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
5747
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5727
5748
|
],
|
|
5728
5749
|
"flags": {
|
|
5729
5750
|
"json": {
|
|
@@ -5741,28 +5762,10 @@
|
|
|
5741
5762
|
"multiple": false,
|
|
5742
5763
|
"type": "option"
|
|
5743
5764
|
},
|
|
5744
|
-
"
|
|
5745
|
-
"char": "e",
|
|
5746
|
-
"description": "Type of EventLogFile event to analyze",
|
|
5747
|
-
"name": "eventtype",
|
|
5748
|
-
"default": "ApiTotalUsage",
|
|
5749
|
-
"hasDynamicHelp": false,
|
|
5750
|
-
"multiple": false,
|
|
5751
|
-
"type": "option"
|
|
5752
|
-
},
|
|
5753
|
-
"limit": {
|
|
5765
|
+
"listviews": {
|
|
5754
5766
|
"char": "l",
|
|
5755
|
-
"description": "
|
|
5756
|
-
"name": "
|
|
5757
|
-
"default": 999,
|
|
5758
|
-
"hasDynamicHelp": false,
|
|
5759
|
-
"multiple": false,
|
|
5760
|
-
"type": "option"
|
|
5761
|
-
},
|
|
5762
|
-
"outputfile": {
|
|
5763
|
-
"char": "f",
|
|
5764
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
5765
|
-
"name": "outputfile",
|
|
5767
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5768
|
+
"name": "listviews",
|
|
5766
5769
|
"hasDynamicHelp": false,
|
|
5767
5770
|
"multiple": false,
|
|
5768
5771
|
"type": "option"
|
|
@@ -5805,57 +5808,60 @@
|
|
|
5805
5808
|
},
|
|
5806
5809
|
"hasDynamicHelp": true,
|
|
5807
5810
|
"hiddenAliases": [],
|
|
5808
|
-
"id": "hardis:org:
|
|
5811
|
+
"id": "hardis:org:fix:listviewmine",
|
|
5809
5812
|
"pluginAlias": "sfdx-hardis",
|
|
5810
5813
|
"pluginName": "sfdx-hardis",
|
|
5811
5814
|
"pluginType": "core",
|
|
5812
5815
|
"strict": true,
|
|
5813
5816
|
"enableJsonFlag": true,
|
|
5814
|
-
"title": "
|
|
5815
|
-
"requiresProject":
|
|
5817
|
+
"title": "Fix listviews with ",
|
|
5818
|
+
"requiresProject": true,
|
|
5816
5819
|
"isESM": true,
|
|
5817
5820
|
"relativePath": [
|
|
5818
5821
|
"lib",
|
|
5819
5822
|
"commands",
|
|
5820
5823
|
"hardis",
|
|
5821
5824
|
"org",
|
|
5822
|
-
"
|
|
5823
|
-
"
|
|
5825
|
+
"fix",
|
|
5826
|
+
"listviewmine.js"
|
|
5824
5827
|
],
|
|
5825
5828
|
"aliasPermutations": [],
|
|
5826
5829
|
"permutations": [
|
|
5827
|
-
"hardis:org:
|
|
5828
|
-
"org:hardis:
|
|
5829
|
-
"org:
|
|
5830
|
-
"org:
|
|
5831
|
-
"hardis:
|
|
5832
|
-
"
|
|
5833
|
-
"
|
|
5834
|
-
"
|
|
5835
|
-
"hardis:
|
|
5836
|
-
"
|
|
5837
|
-
"
|
|
5838
|
-
"
|
|
5839
|
-
"hardis:org:
|
|
5840
|
-
"org:hardis:
|
|
5841
|
-
"org:
|
|
5842
|
-
"org:
|
|
5843
|
-
"hardis:
|
|
5844
|
-
"
|
|
5845
|
-
"
|
|
5846
|
-
"
|
|
5847
|
-
"hardis:
|
|
5848
|
-
"
|
|
5849
|
-
"
|
|
5850
|
-
"
|
|
5830
|
+
"hardis:org:fix:listviewmine",
|
|
5831
|
+
"org:hardis:fix:listviewmine",
|
|
5832
|
+
"org:fix:hardis:listviewmine",
|
|
5833
|
+
"org:fix:listviewmine:hardis",
|
|
5834
|
+
"hardis:fix:org:listviewmine",
|
|
5835
|
+
"fix:hardis:org:listviewmine",
|
|
5836
|
+
"fix:org:hardis:listviewmine",
|
|
5837
|
+
"fix:org:listviewmine:hardis",
|
|
5838
|
+
"hardis:fix:listviewmine:org",
|
|
5839
|
+
"fix:hardis:listviewmine:org",
|
|
5840
|
+
"fix:listviewmine:hardis:org",
|
|
5841
|
+
"fix:listviewmine:org:hardis",
|
|
5842
|
+
"hardis:org:listviewmine:fix",
|
|
5843
|
+
"org:hardis:listviewmine:fix",
|
|
5844
|
+
"org:listviewmine:hardis:fix",
|
|
5845
|
+
"org:listviewmine:fix:hardis",
|
|
5846
|
+
"hardis:listviewmine:org:fix",
|
|
5847
|
+
"listviewmine:hardis:org:fix",
|
|
5848
|
+
"listviewmine:org:hardis:fix",
|
|
5849
|
+
"listviewmine:org:fix:hardis",
|
|
5850
|
+
"hardis:listviewmine:fix:org",
|
|
5851
|
+
"listviewmine:hardis:fix:org",
|
|
5852
|
+
"listviewmine:fix:hardis:org",
|
|
5853
|
+
"listviewmine:fix:org:hardis"
|
|
5851
5854
|
]
|
|
5852
5855
|
},
|
|
5853
|
-
"hardis:org:diagnose:
|
|
5856
|
+
"hardis:org:diagnose:audittrail": {
|
|
5854
5857
|
"aliases": [],
|
|
5855
5858
|
"args": {},
|
|
5856
|
-
"description": "
|
|
5859
|
+
"description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\n\nAlso detects updates of Custom Settings values (disable by defining `SKIP_AUDIT_TRAIL_CUSTOM_SETTINGS=true`)\n\nRegular setup actions performed in major orgs are filtered.\n\n- \"\"\n - createScratchOrg\n - changedsenderemail\n - deleteScratchOrg\n - loginasgrantedtopartnerbt\n- Certificate and Key Management\n - insertCertificate\n- Custom App Licenses\n - addeduserpackagelicense\n - granteduserpackagelicense\n - revokeduserpackagelicense\n- Customer Portal\n - createdcustomersuccessuser\n - CSPUserDisabled\n- Currency\n - updateddatedexchrate\n- Data Management\n - queueMembership\n- Email Administration\n - dkimRotationPreparationSuccessful\n - dkimRotationSuccessful\n- External Objects\n - xdsEncryptedFieldChange\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n - siqUserAcceptedTOS\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedofflineuseroffon\n - changedprofileforuserstdtostd\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserAdminVerifiedStatusVerified\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedknowledgeuseroffon\n - changedsfcontentuseroffon\n - changedsupportuseroffon\n - changedusername\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\n - changedUserPhoneVerifiedStatusVerified\n - deactivateduser\n - deleteAuthenticatorPairing\n - deleteTwoFactorInfo2\n - deleteTwoFactorTempCode\n - frozeuser\n - insertAuthenticatorPairing\n - insertTwoFactorInfo2\n - insertTwoFactorTempCode\n - lightningloginenroll\n - PermSetAssign\n - PermSetGroupAssign\n - PermSetGroupUnassign\n - PermSetLicenseAssign\n - PermSetUnassign\n - PermSetLicenseUnassign\n - registeredUserPhoneNumber\n - resetpassword\n - suNetworkAdminLogin\n - suNetworkAdminLogout\n - suOrgAdminLogin\n - suOrgAdminLogout\n - unfrozeuser\n - useremailchangesent\n- Mobile Administration\n - assigneduserstomobileconfig\n- Reporting Snapshots\n - createdReportJob\n - deletedReportJob\n- Sandboxes\n - DeleteSandbox\n\nBy default, deployment user defined in .sfdx-hardis.yml targetUsername property will be excluded.\n\nYou can define additional users to exclude in .sfdx-hardis.yml **monitoringExcludeUsernames** property.\n\nYou can also add more sections / actions considered as not suspect using property **monitoringAllowedSectionsActions**\n\nExample:\n\n```yaml\nmonitoringExcludeUsernames:\n - deploymentuser@cloudity.com\n - marketingcloud@cloudity.com\n - integration-user@cloudity.com\n\nmonitoringAllowedSectionsActions:\n \"Some section\": [] // Will ignore all actions from such section\n \"Some other section\": [\"actionType1\",\"actionType2\",\"actionType3\"] // Will ignore only those 3 actions from section \"Some other section\". Other actions in the same section will be considered as suspect.\n```\n\n## Excel output example\n\n\n\n## Local output example\n\n\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-suspect-audit-trail/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
5857
5860
|
"examples": [
|
|
5858
|
-
"$ sf hardis:org:diagnose:
|
|
5861
|
+
"$ sf hardis:org:diagnose:audittrail",
|
|
5862
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
|
|
5863
|
+
"$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
|
|
5864
|
+
"$ sf hardis:org:diagnose:audittrail --lastndays 5"
|
|
5859
5865
|
],
|
|
5860
5866
|
"flags": {
|
|
5861
5867
|
"json": {
|
|
@@ -5873,6 +5879,22 @@
|
|
|
5873
5879
|
"multiple": false,
|
|
5874
5880
|
"type": "option"
|
|
5875
5881
|
},
|
|
5882
|
+
"excludeusers": {
|
|
5883
|
+
"char": "e",
|
|
5884
|
+
"description": "Comma-separated list of usernames to exclude",
|
|
5885
|
+
"name": "excludeusers",
|
|
5886
|
+
"hasDynamicHelp": false,
|
|
5887
|
+
"multiple": false,
|
|
5888
|
+
"type": "option"
|
|
5889
|
+
},
|
|
5890
|
+
"lastndays": {
|
|
5891
|
+
"char": "t",
|
|
5892
|
+
"description": "Number of days to extract from today (included)",
|
|
5893
|
+
"name": "lastndays",
|
|
5894
|
+
"hasDynamicHelp": false,
|
|
5895
|
+
"multiple": false,
|
|
5896
|
+
"type": "option"
|
|
5897
|
+
},
|
|
5876
5898
|
"outputfile": {
|
|
5877
5899
|
"char": "f",
|
|
5878
5900
|
"description": "Force the path and name of output report file. Must end with .csv",
|
|
@@ -5881,13 +5903,6 @@
|
|
|
5881
5903
|
"multiple": false,
|
|
5882
5904
|
"type": "option"
|
|
5883
5905
|
},
|
|
5884
|
-
"usedonly": {
|
|
5885
|
-
"char": "u",
|
|
5886
|
-
"description": "Filter to have only used licenses",
|
|
5887
|
-
"name": "usedonly",
|
|
5888
|
-
"allowNo": false,
|
|
5889
|
-
"type": "boolean"
|
|
5890
|
-
},
|
|
5891
5906
|
"debug": {
|
|
5892
5907
|
"char": "d",
|
|
5893
5908
|
"description": "Activate debug mode (more logs)",
|
|
@@ -5926,57 +5941,57 @@
|
|
|
5926
5941
|
},
|
|
5927
5942
|
"hasDynamicHelp": true,
|
|
5928
5943
|
"hiddenAliases": [],
|
|
5929
|
-
"id": "hardis:org:diagnose:
|
|
5944
|
+
"id": "hardis:org:diagnose:audittrail",
|
|
5930
5945
|
"pluginAlias": "sfdx-hardis",
|
|
5931
5946
|
"pluginName": "sfdx-hardis",
|
|
5932
5947
|
"pluginType": "core",
|
|
5933
5948
|
"strict": true,
|
|
5934
5949
|
"enableJsonFlag": true,
|
|
5935
|
-
"title": "
|
|
5950
|
+
"title": "Diagnose content of Setup Audit Trail",
|
|
5936
5951
|
"requiresProject": false,
|
|
5937
|
-
"isESM": true,
|
|
5938
|
-
"relativePath": [
|
|
5939
|
-
"lib",
|
|
5940
|
-
"commands",
|
|
5941
|
-
"hardis",
|
|
5942
|
-
"org",
|
|
5943
|
-
"diagnose",
|
|
5944
|
-
"
|
|
5945
|
-
],
|
|
5946
|
-
"aliasPermutations": [],
|
|
5947
|
-
"permutations": [
|
|
5948
|
-
"hardis:org:diagnose:
|
|
5949
|
-
"org:hardis:diagnose:
|
|
5950
|
-
"org:diagnose:hardis:
|
|
5951
|
-
"org:diagnose:
|
|
5952
|
-
"hardis:diagnose:org:
|
|
5953
|
-
"diagnose:hardis:org:
|
|
5954
|
-
"diagnose:org:hardis:
|
|
5955
|
-
"diagnose:org:
|
|
5956
|
-
"hardis:diagnose:
|
|
5957
|
-
"diagnose:hardis:
|
|
5958
|
-
"diagnose:
|
|
5959
|
-
"diagnose:
|
|
5960
|
-
"hardis:org:
|
|
5961
|
-
"org:hardis:
|
|
5962
|
-
"org:
|
|
5963
|
-
"org:
|
|
5964
|
-
"hardis:
|
|
5965
|
-
"
|
|
5966
|
-
"
|
|
5967
|
-
"
|
|
5968
|
-
"hardis:
|
|
5969
|
-
"
|
|
5970
|
-
"
|
|
5971
|
-
"
|
|
5952
|
+
"isESM": true,
|
|
5953
|
+
"relativePath": [
|
|
5954
|
+
"lib",
|
|
5955
|
+
"commands",
|
|
5956
|
+
"hardis",
|
|
5957
|
+
"org",
|
|
5958
|
+
"diagnose",
|
|
5959
|
+
"audittrail.js"
|
|
5960
|
+
],
|
|
5961
|
+
"aliasPermutations": [],
|
|
5962
|
+
"permutations": [
|
|
5963
|
+
"hardis:org:diagnose:audittrail",
|
|
5964
|
+
"org:hardis:diagnose:audittrail",
|
|
5965
|
+
"org:diagnose:hardis:audittrail",
|
|
5966
|
+
"org:diagnose:audittrail:hardis",
|
|
5967
|
+
"hardis:diagnose:org:audittrail",
|
|
5968
|
+
"diagnose:hardis:org:audittrail",
|
|
5969
|
+
"diagnose:org:hardis:audittrail",
|
|
5970
|
+
"diagnose:org:audittrail:hardis",
|
|
5971
|
+
"hardis:diagnose:audittrail:org",
|
|
5972
|
+
"diagnose:hardis:audittrail:org",
|
|
5973
|
+
"diagnose:audittrail:hardis:org",
|
|
5974
|
+
"diagnose:audittrail:org:hardis",
|
|
5975
|
+
"hardis:org:audittrail:diagnose",
|
|
5976
|
+
"org:hardis:audittrail:diagnose",
|
|
5977
|
+
"org:audittrail:hardis:diagnose",
|
|
5978
|
+
"org:audittrail:diagnose:hardis",
|
|
5979
|
+
"hardis:audittrail:org:diagnose",
|
|
5980
|
+
"audittrail:hardis:org:diagnose",
|
|
5981
|
+
"audittrail:org:hardis:diagnose",
|
|
5982
|
+
"audittrail:org:diagnose:hardis",
|
|
5983
|
+
"hardis:audittrail:diagnose:org",
|
|
5984
|
+
"audittrail:hardis:diagnose:org",
|
|
5985
|
+
"audittrail:diagnose:hardis:org",
|
|
5986
|
+
"audittrail:diagnose:org:hardis"
|
|
5972
5987
|
]
|
|
5973
5988
|
},
|
|
5974
|
-
"hardis:org:diagnose:
|
|
5989
|
+
"hardis:org:diagnose:instanceupgrade": {
|
|
5975
5990
|
"aliases": [],
|
|
5976
5991
|
"args": {},
|
|
5977
|
-
"description": "
|
|
5992
|
+
"description": "Get the date when the org instance will be upgraded (to Spring, Summer or Winter)\n ",
|
|
5978
5993
|
"examples": [
|
|
5979
|
-
"$ sf hardis:org:diagnose:
|
|
5994
|
+
"$ sf hardis:org:diagnose:instanceupgrade"
|
|
5980
5995
|
],
|
|
5981
5996
|
"flags": {
|
|
5982
5997
|
"json": {
|
|
@@ -5994,14 +6009,6 @@
|
|
|
5994
6009
|
"multiple": false,
|
|
5995
6010
|
"type": "option"
|
|
5996
6011
|
},
|
|
5997
|
-
"outputfile": {
|
|
5998
|
-
"char": "f",
|
|
5999
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6000
|
-
"name": "outputfile",
|
|
6001
|
-
"hasDynamicHelp": false,
|
|
6002
|
-
"multiple": false,
|
|
6003
|
-
"type": "option"
|
|
6004
|
-
},
|
|
6005
6012
|
"debug": {
|
|
6006
6013
|
"char": "d",
|
|
6007
6014
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6040,13 +6047,13 @@
|
|
|
6040
6047
|
},
|
|
6041
6048
|
"hasDynamicHelp": true,
|
|
6042
6049
|
"hiddenAliases": [],
|
|
6043
|
-
"id": "hardis:org:diagnose:
|
|
6050
|
+
"id": "hardis:org:diagnose:instanceupgrade",
|
|
6044
6051
|
"pluginAlias": "sfdx-hardis",
|
|
6045
6052
|
"pluginName": "sfdx-hardis",
|
|
6046
6053
|
"pluginType": "core",
|
|
6047
6054
|
"strict": true,
|
|
6048
6055
|
"enableJsonFlag": true,
|
|
6049
|
-
"title": "
|
|
6056
|
+
"title": "Get Instance Upgrade date",
|
|
6050
6057
|
"requiresProject": false,
|
|
6051
6058
|
"isESM": true,
|
|
6052
6059
|
"relativePath": [
|
|
@@ -6055,43 +6062,45 @@
|
|
|
6055
6062
|
"hardis",
|
|
6056
6063
|
"org",
|
|
6057
6064
|
"diagnose",
|
|
6058
|
-
"
|
|
6065
|
+
"instanceupgrade.js"
|
|
6059
6066
|
],
|
|
6060
6067
|
"aliasPermutations": [],
|
|
6061
6068
|
"permutations": [
|
|
6062
|
-
"hardis:org:diagnose:
|
|
6063
|
-
"org:hardis:diagnose:
|
|
6064
|
-
"org:diagnose:hardis:
|
|
6065
|
-
"org:diagnose:
|
|
6066
|
-
"hardis:diagnose:org:
|
|
6067
|
-
"diagnose:hardis:org:
|
|
6068
|
-
"diagnose:org:hardis:
|
|
6069
|
-
"diagnose:org:
|
|
6070
|
-
"hardis:diagnose:
|
|
6071
|
-
"diagnose:hardis:
|
|
6072
|
-
"diagnose:
|
|
6073
|
-
"diagnose:
|
|
6074
|
-
"hardis:org:
|
|
6075
|
-
"org:hardis:
|
|
6076
|
-
"org:
|
|
6077
|
-
"org:
|
|
6078
|
-
"hardis:
|
|
6079
|
-
"
|
|
6080
|
-
"
|
|
6081
|
-
"
|
|
6082
|
-
"hardis:
|
|
6083
|
-
"
|
|
6084
|
-
"
|
|
6085
|
-
"
|
|
6069
|
+
"hardis:org:diagnose:instanceupgrade",
|
|
6070
|
+
"org:hardis:diagnose:instanceupgrade",
|
|
6071
|
+
"org:diagnose:hardis:instanceupgrade",
|
|
6072
|
+
"org:diagnose:instanceupgrade:hardis",
|
|
6073
|
+
"hardis:diagnose:org:instanceupgrade",
|
|
6074
|
+
"diagnose:hardis:org:instanceupgrade",
|
|
6075
|
+
"diagnose:org:hardis:instanceupgrade",
|
|
6076
|
+
"diagnose:org:instanceupgrade:hardis",
|
|
6077
|
+
"hardis:diagnose:instanceupgrade:org",
|
|
6078
|
+
"diagnose:hardis:instanceupgrade:org",
|
|
6079
|
+
"diagnose:instanceupgrade:hardis:org",
|
|
6080
|
+
"diagnose:instanceupgrade:org:hardis",
|
|
6081
|
+
"hardis:org:instanceupgrade:diagnose",
|
|
6082
|
+
"org:hardis:instanceupgrade:diagnose",
|
|
6083
|
+
"org:instanceupgrade:hardis:diagnose",
|
|
6084
|
+
"org:instanceupgrade:diagnose:hardis",
|
|
6085
|
+
"hardis:instanceupgrade:org:diagnose",
|
|
6086
|
+
"instanceupgrade:hardis:org:diagnose",
|
|
6087
|
+
"instanceupgrade:org:hardis:diagnose",
|
|
6088
|
+
"instanceupgrade:org:diagnose:hardis",
|
|
6089
|
+
"hardis:instanceupgrade:diagnose:org",
|
|
6090
|
+
"instanceupgrade:hardis:diagnose:org",
|
|
6091
|
+
"instanceupgrade:diagnose:hardis:org",
|
|
6092
|
+
"instanceupgrade:diagnose:org:hardis"
|
|
6086
6093
|
]
|
|
6087
6094
|
},
|
|
6088
|
-
"hardis:org:diagnose:
|
|
6095
|
+
"hardis:org:diagnose:legacyapi": {
|
|
6089
6096
|
"aliases": [],
|
|
6090
6097
|
"args": {},
|
|
6091
|
-
"description": "
|
|
6098
|
+
"description": "Checks if an org uses retired or someday retired API version\n\n\nSee article below\n\n[](https://nicolas.vuillamy.fr/handle-salesforce-api-versions-deprecation-like-a-pro-335065f52238)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-deprecated-api-calls/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6092
6099
|
"examples": [
|
|
6093
|
-
"$ sf hardis:org:diagnose:
|
|
6094
|
-
"$ sf hardis:org:diagnose:
|
|
6100
|
+
"$ sf hardis:org:diagnose:legacyapi",
|
|
6101
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
|
|
6102
|
+
"$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
|
|
6103
|
+
"$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
|
|
6095
6104
|
],
|
|
6096
6105
|
"flags": {
|
|
6097
6106
|
"json": {
|
|
@@ -6109,18 +6118,28 @@
|
|
|
6109
6118
|
"multiple": false,
|
|
6110
6119
|
"type": "option"
|
|
6111
6120
|
},
|
|
6112
|
-
"
|
|
6113
|
-
"char": "
|
|
6114
|
-
"description": "
|
|
6115
|
-
"name": "
|
|
6121
|
+
"eventtype": {
|
|
6122
|
+
"char": "e",
|
|
6123
|
+
"description": "Type of EventLogFile event to analyze",
|
|
6124
|
+
"name": "eventtype",
|
|
6125
|
+
"default": "ApiTotalUsage",
|
|
6116
6126
|
"hasDynamicHelp": false,
|
|
6117
6127
|
"multiple": false,
|
|
6118
6128
|
"type": "option"
|
|
6119
6129
|
},
|
|
6120
|
-
"
|
|
6121
|
-
"char": "
|
|
6122
|
-
"description": "
|
|
6123
|
-
"name": "
|
|
6130
|
+
"limit": {
|
|
6131
|
+
"char": "l",
|
|
6132
|
+
"description": "Number of latest EventLogFile events to analyze",
|
|
6133
|
+
"name": "limit",
|
|
6134
|
+
"default": 999,
|
|
6135
|
+
"hasDynamicHelp": false,
|
|
6136
|
+
"multiple": false,
|
|
6137
|
+
"type": "option"
|
|
6138
|
+
},
|
|
6139
|
+
"outputfile": {
|
|
6140
|
+
"char": "f",
|
|
6141
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6142
|
+
"name": "outputfile",
|
|
6124
6143
|
"hasDynamicHelp": false,
|
|
6125
6144
|
"multiple": false,
|
|
6126
6145
|
"type": "option"
|
|
@@ -6163,13 +6182,13 @@
|
|
|
6163
6182
|
},
|
|
6164
6183
|
"hasDynamicHelp": true,
|
|
6165
6184
|
"hiddenAliases": [],
|
|
6166
|
-
"id": "hardis:org:diagnose:
|
|
6185
|
+
"id": "hardis:org:diagnose:legacyapi",
|
|
6167
6186
|
"pluginAlias": "sfdx-hardis",
|
|
6168
6187
|
"pluginName": "sfdx-hardis",
|
|
6169
6188
|
"pluginType": "core",
|
|
6170
6189
|
"strict": true,
|
|
6171
6190
|
"enableJsonFlag": true,
|
|
6172
|
-
"title": "
|
|
6191
|
+
"title": "Check for legacy API use",
|
|
6173
6192
|
"requiresProject": false,
|
|
6174
6193
|
"isESM": true,
|
|
6175
6194
|
"relativePath": [
|
|
@@ -6178,42 +6197,42 @@
|
|
|
6178
6197
|
"hardis",
|
|
6179
6198
|
"org",
|
|
6180
6199
|
"diagnose",
|
|
6181
|
-
"
|
|
6200
|
+
"legacyapi.js"
|
|
6182
6201
|
],
|
|
6183
6202
|
"aliasPermutations": [],
|
|
6184
6203
|
"permutations": [
|
|
6185
|
-
"hardis:org:diagnose:
|
|
6186
|
-
"org:hardis:diagnose:
|
|
6187
|
-
"org:diagnose:hardis:
|
|
6188
|
-
"org:diagnose:
|
|
6189
|
-
"hardis:diagnose:org:
|
|
6190
|
-
"diagnose:hardis:org:
|
|
6191
|
-
"diagnose:org:hardis:
|
|
6192
|
-
"diagnose:org:
|
|
6193
|
-
"hardis:diagnose:
|
|
6194
|
-
"diagnose:hardis:
|
|
6195
|
-
"diagnose:
|
|
6196
|
-
"diagnose:
|
|
6197
|
-
"hardis:org:
|
|
6198
|
-
"org:hardis:
|
|
6199
|
-
"org:
|
|
6200
|
-
"org:
|
|
6201
|
-
"hardis:
|
|
6202
|
-
"
|
|
6203
|
-
"
|
|
6204
|
-
"
|
|
6205
|
-
"hardis:
|
|
6206
|
-
"
|
|
6207
|
-
"
|
|
6208
|
-
"
|
|
6204
|
+
"hardis:org:diagnose:legacyapi",
|
|
6205
|
+
"org:hardis:diagnose:legacyapi",
|
|
6206
|
+
"org:diagnose:hardis:legacyapi",
|
|
6207
|
+
"org:diagnose:legacyapi:hardis",
|
|
6208
|
+
"hardis:diagnose:org:legacyapi",
|
|
6209
|
+
"diagnose:hardis:org:legacyapi",
|
|
6210
|
+
"diagnose:org:hardis:legacyapi",
|
|
6211
|
+
"diagnose:org:legacyapi:hardis",
|
|
6212
|
+
"hardis:diagnose:legacyapi:org",
|
|
6213
|
+
"diagnose:hardis:legacyapi:org",
|
|
6214
|
+
"diagnose:legacyapi:hardis:org",
|
|
6215
|
+
"diagnose:legacyapi:org:hardis",
|
|
6216
|
+
"hardis:org:legacyapi:diagnose",
|
|
6217
|
+
"org:hardis:legacyapi:diagnose",
|
|
6218
|
+
"org:legacyapi:hardis:diagnose",
|
|
6219
|
+
"org:legacyapi:diagnose:hardis",
|
|
6220
|
+
"hardis:legacyapi:org:diagnose",
|
|
6221
|
+
"legacyapi:hardis:org:diagnose",
|
|
6222
|
+
"legacyapi:org:hardis:diagnose",
|
|
6223
|
+
"legacyapi:org:diagnose:hardis",
|
|
6224
|
+
"hardis:legacyapi:diagnose:org",
|
|
6225
|
+
"legacyapi:hardis:diagnose:org",
|
|
6226
|
+
"legacyapi:diagnose:hardis:org",
|
|
6227
|
+
"legacyapi:diagnose:org:hardis"
|
|
6209
6228
|
]
|
|
6210
6229
|
},
|
|
6211
|
-
"hardis:org:diagnose:
|
|
6230
|
+
"hardis:org:diagnose:licenses": {
|
|
6212
6231
|
"aliases": [],
|
|
6213
6232
|
"args": {},
|
|
6214
|
-
"description": "
|
|
6233
|
+
"description": "Mostly used for monitoring (Grafana) but you can also use it manually :)",
|
|
6215
6234
|
"examples": [
|
|
6216
|
-
"$ sf hardis:org:diagnose:
|
|
6235
|
+
"$ sf hardis:org:diagnose:licenses"
|
|
6217
6236
|
],
|
|
6218
6237
|
"flags": {
|
|
6219
6238
|
"json": {
|
|
@@ -6239,6 +6258,13 @@
|
|
|
6239
6258
|
"multiple": false,
|
|
6240
6259
|
"type": "option"
|
|
6241
6260
|
},
|
|
6261
|
+
"usedonly": {
|
|
6262
|
+
"char": "u",
|
|
6263
|
+
"description": "Filter to have only used licenses",
|
|
6264
|
+
"name": "usedonly",
|
|
6265
|
+
"allowNo": false,
|
|
6266
|
+
"type": "boolean"
|
|
6267
|
+
},
|
|
6242
6268
|
"debug": {
|
|
6243
6269
|
"char": "d",
|
|
6244
6270
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6277,30 +6303,13 @@
|
|
|
6277
6303
|
},
|
|
6278
6304
|
"hasDynamicHelp": true,
|
|
6279
6305
|
"hiddenAliases": [],
|
|
6280
|
-
"id": "hardis:org:diagnose:
|
|
6306
|
+
"id": "hardis:org:diagnose:licenses",
|
|
6281
6307
|
"pluginAlias": "sfdx-hardis",
|
|
6282
6308
|
"pluginName": "sfdx-hardis",
|
|
6283
6309
|
"pluginType": "core",
|
|
6284
6310
|
"strict": true,
|
|
6285
6311
|
"enableJsonFlag": true,
|
|
6286
|
-
"title": "
|
|
6287
|
-
"allowedInactiveConnectedApps": [
|
|
6288
|
-
"Ant Migration Tool",
|
|
6289
|
-
"Chatter Desktop",
|
|
6290
|
-
"Chatter Mobile for BlackBerry",
|
|
6291
|
-
"Force.com IDE",
|
|
6292
|
-
"OIQ_Integration",
|
|
6293
|
-
"Salesforce CLI",
|
|
6294
|
-
"Salesforce Files",
|
|
6295
|
-
"Salesforce Mobile Dashboards",
|
|
6296
|
-
"Salesforce Touch",
|
|
6297
|
-
"Salesforce for Outlook",
|
|
6298
|
-
"SalesforceA",
|
|
6299
|
-
"SalesforceA for Android",
|
|
6300
|
-
"SalesforceA for iOS",
|
|
6301
|
-
"SalesforceDX Namespace Registry",
|
|
6302
|
-
"SalesforceIQ"
|
|
6303
|
-
],
|
|
6312
|
+
"title": "List licenses subscribed and used in a Salesforce org",
|
|
6304
6313
|
"requiresProject": false,
|
|
6305
6314
|
"isESM": true,
|
|
6306
6315
|
"relativePath": [
|
|
@@ -6309,43 +6318,42 @@
|
|
|
6309
6318
|
"hardis",
|
|
6310
6319
|
"org",
|
|
6311
6320
|
"diagnose",
|
|
6312
|
-
"
|
|
6321
|
+
"licenses.js"
|
|
6313
6322
|
],
|
|
6314
6323
|
"aliasPermutations": [],
|
|
6315
6324
|
"permutations": [
|
|
6316
|
-
"hardis:org:diagnose:
|
|
6317
|
-
"org:hardis:diagnose:
|
|
6318
|
-
"org:diagnose:hardis:
|
|
6319
|
-
"org:diagnose:
|
|
6320
|
-
"hardis:diagnose:org:
|
|
6321
|
-
"diagnose:hardis:org:
|
|
6322
|
-
"diagnose:org:hardis:
|
|
6323
|
-
"diagnose:org:
|
|
6324
|
-
"hardis:diagnose:
|
|
6325
|
-
"diagnose:hardis:
|
|
6326
|
-
"diagnose:
|
|
6327
|
-
"diagnose:
|
|
6328
|
-
"hardis:org:
|
|
6329
|
-
"org:hardis:
|
|
6330
|
-
"org:
|
|
6331
|
-
"org:
|
|
6332
|
-
"hardis:
|
|
6333
|
-
"
|
|
6334
|
-
"
|
|
6335
|
-
"
|
|
6336
|
-
"hardis:
|
|
6337
|
-
"
|
|
6338
|
-
"
|
|
6339
|
-
"
|
|
6325
|
+
"hardis:org:diagnose:licenses",
|
|
6326
|
+
"org:hardis:diagnose:licenses",
|
|
6327
|
+
"org:diagnose:hardis:licenses",
|
|
6328
|
+
"org:diagnose:licenses:hardis",
|
|
6329
|
+
"hardis:diagnose:org:licenses",
|
|
6330
|
+
"diagnose:hardis:org:licenses",
|
|
6331
|
+
"diagnose:org:hardis:licenses",
|
|
6332
|
+
"diagnose:org:licenses:hardis",
|
|
6333
|
+
"hardis:diagnose:licenses:org",
|
|
6334
|
+
"diagnose:hardis:licenses:org",
|
|
6335
|
+
"diagnose:licenses:hardis:org",
|
|
6336
|
+
"diagnose:licenses:org:hardis",
|
|
6337
|
+
"hardis:org:licenses:diagnose",
|
|
6338
|
+
"org:hardis:licenses:diagnose",
|
|
6339
|
+
"org:licenses:hardis:diagnose",
|
|
6340
|
+
"org:licenses:diagnose:hardis",
|
|
6341
|
+
"hardis:licenses:org:diagnose",
|
|
6342
|
+
"licenses:hardis:org:diagnose",
|
|
6343
|
+
"licenses:org:hardis:diagnose",
|
|
6344
|
+
"licenses:org:diagnose:hardis",
|
|
6345
|
+
"hardis:licenses:diagnose:org",
|
|
6346
|
+
"licenses:hardis:diagnose:org",
|
|
6347
|
+
"licenses:diagnose:hardis:org",
|
|
6348
|
+
"licenses:diagnose:org:hardis"
|
|
6340
6349
|
]
|
|
6341
6350
|
},
|
|
6342
|
-
"hardis:org:diagnose:
|
|
6351
|
+
"hardis:org:diagnose:releaseupdates": {
|
|
6343
6352
|
"aliases": [],
|
|
6344
6353
|
"args": {},
|
|
6345
|
-
"description": "
|
|
6354
|
+
"description": "Export Release Updates into a CSV file with selected criteria, and highlight Release Updates that should be checked.\n\nBefore publishing **Breaking Changes** ❌, Salesforce announce them in the setup menu [**Release Updates**](https://help.salesforce.com/s/articleView?id=sf.release_updates.htm&type=5)\n\n⚠️ Some of them are very important, because if you don't make the related upgrades in time (ex: before Winter 25) , your production org can crash !\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-release-updates/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6346
6355
|
"examples": [
|
|
6347
|
-
"$ sf hardis:org:diagnose:
|
|
6348
|
-
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6356
|
+
"$ sf hardis:org:diagnose:releaseupdates"
|
|
6349
6357
|
],
|
|
6350
6358
|
"flags": {
|
|
6351
6359
|
"json": {
|
|
@@ -6409,32 +6417,14 @@
|
|
|
6409
6417
|
},
|
|
6410
6418
|
"hasDynamicHelp": true,
|
|
6411
6419
|
"hiddenAliases": [],
|
|
6412
|
-
"id": "hardis:org:diagnose:
|
|
6420
|
+
"id": "hardis:org:diagnose:releaseupdates",
|
|
6413
6421
|
"pluginAlias": "sfdx-hardis",
|
|
6414
6422
|
"pluginName": "sfdx-hardis",
|
|
6415
6423
|
"pluginType": "core",
|
|
6416
6424
|
"strict": true,
|
|
6417
6425
|
"enableJsonFlag": true,
|
|
6418
|
-
"title": "
|
|
6426
|
+
"title": "Check Release Updates of an org",
|
|
6419
6427
|
"requiresProject": false,
|
|
6420
|
-
"additionalPermissionSetsToAlwaysGet": [
|
|
6421
|
-
"Sales_User"
|
|
6422
|
-
],
|
|
6423
|
-
"permSetsPermSetLicenses": [
|
|
6424
|
-
{
|
|
6425
|
-
"permSet": "Sales_User",
|
|
6426
|
-
"permSetLicense": "SalesUserPsl"
|
|
6427
|
-
}
|
|
6428
|
-
],
|
|
6429
|
-
"profilesPermissionSetLicenses": [
|
|
6430
|
-
{
|
|
6431
|
-
"profile": "Salesforce API Only",
|
|
6432
|
-
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6433
|
-
}
|
|
6434
|
-
],
|
|
6435
|
-
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6436
|
-
"IdentityConnect"
|
|
6437
|
-
],
|
|
6438
6428
|
"isESM": true,
|
|
6439
6429
|
"relativePath": [
|
|
6440
6430
|
"lib",
|
|
@@ -6442,46 +6432,43 @@
|
|
|
6442
6432
|
"hardis",
|
|
6443
6433
|
"org",
|
|
6444
6434
|
"diagnose",
|
|
6445
|
-
"
|
|
6435
|
+
"releaseupdates.js"
|
|
6446
6436
|
],
|
|
6447
6437
|
"aliasPermutations": [],
|
|
6448
6438
|
"permutations": [
|
|
6449
|
-
"hardis:org:diagnose:
|
|
6450
|
-
"org:hardis:diagnose:
|
|
6451
|
-
"org:diagnose:hardis:
|
|
6452
|
-
"org:diagnose:
|
|
6453
|
-
"hardis:diagnose:org:
|
|
6454
|
-
"diagnose:hardis:org:
|
|
6455
|
-
"diagnose:org:hardis:
|
|
6456
|
-
"diagnose:org:
|
|
6457
|
-
"hardis:diagnose:
|
|
6458
|
-
"diagnose:hardis:
|
|
6459
|
-
"diagnose:
|
|
6460
|
-
"diagnose:
|
|
6461
|
-
"hardis:org:
|
|
6462
|
-
"org:hardis:
|
|
6463
|
-
"org:
|
|
6464
|
-
"org:
|
|
6465
|
-
"hardis:
|
|
6466
|
-
"
|
|
6467
|
-
"
|
|
6468
|
-
"
|
|
6469
|
-
"hardis:
|
|
6470
|
-
"
|
|
6471
|
-
"
|
|
6472
|
-
"
|
|
6439
|
+
"hardis:org:diagnose:releaseupdates",
|
|
6440
|
+
"org:hardis:diagnose:releaseupdates",
|
|
6441
|
+
"org:diagnose:hardis:releaseupdates",
|
|
6442
|
+
"org:diagnose:releaseupdates:hardis",
|
|
6443
|
+
"hardis:diagnose:org:releaseupdates",
|
|
6444
|
+
"diagnose:hardis:org:releaseupdates",
|
|
6445
|
+
"diagnose:org:hardis:releaseupdates",
|
|
6446
|
+
"diagnose:org:releaseupdates:hardis",
|
|
6447
|
+
"hardis:diagnose:releaseupdates:org",
|
|
6448
|
+
"diagnose:hardis:releaseupdates:org",
|
|
6449
|
+
"diagnose:releaseupdates:hardis:org",
|
|
6450
|
+
"diagnose:releaseupdates:org:hardis",
|
|
6451
|
+
"hardis:org:releaseupdates:diagnose",
|
|
6452
|
+
"org:hardis:releaseupdates:diagnose",
|
|
6453
|
+
"org:releaseupdates:hardis:diagnose",
|
|
6454
|
+
"org:releaseupdates:diagnose:hardis",
|
|
6455
|
+
"hardis:releaseupdates:org:diagnose",
|
|
6456
|
+
"releaseupdates:hardis:org:diagnose",
|
|
6457
|
+
"releaseupdates:org:hardis:diagnose",
|
|
6458
|
+
"releaseupdates:org:diagnose:hardis",
|
|
6459
|
+
"hardis:releaseupdates:diagnose:org",
|
|
6460
|
+
"releaseupdates:hardis:diagnose:org",
|
|
6461
|
+
"releaseupdates:diagnose:hardis:org",
|
|
6462
|
+
"releaseupdates:diagnose:org:hardis"
|
|
6473
6463
|
]
|
|
6474
6464
|
},
|
|
6475
|
-
"hardis:org:diagnose:
|
|
6465
|
+
"hardis:org:diagnose:unused-apex-classes": {
|
|
6476
6466
|
"aliases": [],
|
|
6477
6467
|
"args": {},
|
|
6478
|
-
"description": "
|
|
6468
|
+
"description": "List all async Apex classes (Batch,Queueable,Schedulable) that has not been called for more than 365 days.\n \nThe result class list probably can be removed from the project, and that will improve your test classes performances :)\n\nThe number of unused day is overridable using --days option. \n\nThe command uses queries on AsyncApexJob and CronTrigger technical tables to build the result.\n\nApex Classes CreatedBy and CreatedOn fields are calculated from MIN(date from git, date from org)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-apex-classes/) and can output Grafana, Slack and MsTeams Notifications.\n\n\n",
|
|
6479
6469
|
"examples": [
|
|
6480
|
-
"$ sf hardis:org:diagnose:
|
|
6481
|
-
"$ sf hardis:org:diagnose:
|
|
6482
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6483
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6484
|
-
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
6470
|
+
"$ sf hardis:org:diagnose:unused-apex-classes",
|
|
6471
|
+
"$ sf hardis:org:diagnose:unused-apex-classes --days 700"
|
|
6485
6472
|
],
|
|
6486
6473
|
"flags": {
|
|
6487
6474
|
"json": {
|
|
@@ -6515,33 +6502,6 @@
|
|
|
6515
6502
|
"multiple": false,
|
|
6516
6503
|
"type": "option"
|
|
6517
6504
|
},
|
|
6518
|
-
"licensetypes": {
|
|
6519
|
-
"char": "l",
|
|
6520
|
-
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6521
|
-
"name": "licensetypes",
|
|
6522
|
-
"hasDynamicHelp": false,
|
|
6523
|
-
"multiple": false,
|
|
6524
|
-
"options": [
|
|
6525
|
-
"all",
|
|
6526
|
-
"all-crm",
|
|
6527
|
-
"all-paying"
|
|
6528
|
-
],
|
|
6529
|
-
"type": "option"
|
|
6530
|
-
},
|
|
6531
|
-
"licenseidentifiers": {
|
|
6532
|
-
"char": "i",
|
|
6533
|
-
"description": "Comma-separated list of license identifiers, in case licensetypes is not used.. Identifiers available at https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm",
|
|
6534
|
-
"name": "licenseidentifiers",
|
|
6535
|
-
"hasDynamicHelp": false,
|
|
6536
|
-
"multiple": false,
|
|
6537
|
-
"type": "option"
|
|
6538
|
-
},
|
|
6539
|
-
"returnactiveusers": {
|
|
6540
|
-
"description": "Inverts the command by returning the active users",
|
|
6541
|
-
"name": "returnactiveusers",
|
|
6542
|
-
"allowNo": false,
|
|
6543
|
-
"type": "boolean"
|
|
6544
|
-
},
|
|
6545
6505
|
"debug": {
|
|
6546
6506
|
"char": "d",
|
|
6547
6507
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6580,13 +6540,13 @@
|
|
|
6580
6540
|
},
|
|
6581
6541
|
"hasDynamicHelp": true,
|
|
6582
6542
|
"hiddenAliases": [],
|
|
6583
|
-
"id": "hardis:org:diagnose:
|
|
6543
|
+
"id": "hardis:org:diagnose:unused-apex-classes",
|
|
6584
6544
|
"pluginAlias": "sfdx-hardis",
|
|
6585
6545
|
"pluginName": "sfdx-hardis",
|
|
6586
6546
|
"pluginType": "core",
|
|
6587
6547
|
"strict": true,
|
|
6588
6548
|
"enableJsonFlag": true,
|
|
6589
|
-
"title": "Detect unused
|
|
6549
|
+
"title": "Detect unused Apex classes in an org",
|
|
6590
6550
|
"requiresProject": false,
|
|
6591
6551
|
"isESM": true,
|
|
6592
6552
|
"relativePath": [
|
|
@@ -6595,42 +6555,42 @@
|
|
|
6595
6555
|
"hardis",
|
|
6596
6556
|
"org",
|
|
6597
6557
|
"diagnose",
|
|
6598
|
-
"
|
|
6558
|
+
"unused-apex-classes.js"
|
|
6599
6559
|
],
|
|
6600
6560
|
"aliasPermutations": [],
|
|
6601
6561
|
"permutations": [
|
|
6602
|
-
"hardis:org:diagnose:
|
|
6603
|
-
"org:hardis:diagnose:
|
|
6604
|
-
"org:diagnose:hardis:
|
|
6605
|
-
"org:diagnose:
|
|
6606
|
-
"hardis:diagnose:org:
|
|
6607
|
-
"diagnose:hardis:org:
|
|
6608
|
-
"diagnose:org:hardis:
|
|
6609
|
-
"diagnose:org:
|
|
6610
|
-
"hardis:diagnose:
|
|
6611
|
-
"diagnose:hardis:
|
|
6612
|
-
"diagnose:
|
|
6613
|
-
"diagnose:
|
|
6614
|
-
"hardis:org:
|
|
6615
|
-
"org:hardis:
|
|
6616
|
-
"org:
|
|
6617
|
-
"org:
|
|
6618
|
-
"hardis:
|
|
6619
|
-
"
|
|
6620
|
-
"
|
|
6621
|
-
"
|
|
6622
|
-
"hardis:
|
|
6623
|
-
"
|
|
6624
|
-
"
|
|
6625
|
-
"
|
|
6562
|
+
"hardis:org:diagnose:unused-apex-classes",
|
|
6563
|
+
"org:hardis:diagnose:unused-apex-classes",
|
|
6564
|
+
"org:diagnose:hardis:unused-apex-classes",
|
|
6565
|
+
"org:diagnose:unused-apex-classes:hardis",
|
|
6566
|
+
"hardis:diagnose:org:unused-apex-classes",
|
|
6567
|
+
"diagnose:hardis:org:unused-apex-classes",
|
|
6568
|
+
"diagnose:org:hardis:unused-apex-classes",
|
|
6569
|
+
"diagnose:org:unused-apex-classes:hardis",
|
|
6570
|
+
"hardis:diagnose:unused-apex-classes:org",
|
|
6571
|
+
"diagnose:hardis:unused-apex-classes:org",
|
|
6572
|
+
"diagnose:unused-apex-classes:hardis:org",
|
|
6573
|
+
"diagnose:unused-apex-classes:org:hardis",
|
|
6574
|
+
"hardis:org:unused-apex-classes:diagnose",
|
|
6575
|
+
"org:hardis:unused-apex-classes:diagnose",
|
|
6576
|
+
"org:unused-apex-classes:hardis:diagnose",
|
|
6577
|
+
"org:unused-apex-classes:diagnose:hardis",
|
|
6578
|
+
"hardis:unused-apex-classes:org:diagnose",
|
|
6579
|
+
"unused-apex-classes:hardis:org:diagnose",
|
|
6580
|
+
"unused-apex-classes:org:hardis:diagnose",
|
|
6581
|
+
"unused-apex-classes:org:diagnose:hardis",
|
|
6582
|
+
"hardis:unused-apex-classes:diagnose:org",
|
|
6583
|
+
"unused-apex-classes:hardis:diagnose:org",
|
|
6584
|
+
"unused-apex-classes:diagnose:hardis:org",
|
|
6585
|
+
"unused-apex-classes:diagnose:org:hardis"
|
|
6626
6586
|
]
|
|
6627
6587
|
},
|
|
6628
|
-
"hardis:org:
|
|
6588
|
+
"hardis:org:diagnose:unused-connected-apps": {
|
|
6629
6589
|
"aliases": [],
|
|
6630
6590
|
"args": {},
|
|
6631
|
-
"description": "
|
|
6591
|
+
"description": "Request objects ConnectedApp, LoginHistory and OAuthToken to find which connected apps might not be used anymore, and could be deleted for security / technical debt reasons.\n\nCheck with Connected Apps metadatas if the app is still active (inactive = \"Admin Users are pre-authorized + no Profile or Permission set assigned\")\n\nThe following default Salesforce Connected Apps are ignored:\n\n- Ant Migration Tool\n- Chatter Desktop\n- Chatter Mobile for BlackBerry\n- Force.com IDE\n- OIQ_Integration\n- Salesforce CLI\n- Salesforce Files\n- Salesforce Mobile Dashboards\n- Salesforce Touch\n- Salesforce for Outlook\n- SalesforceA\n- SalesforceA for Android\n- SalesforceA for iOS\n- SalesforceDX Namespace Registry\n- SalesforceIQ\n\nYou can add more ignored apps by defining a comma-separated list of names in variable ALLOWED_INACTIVE_CONNECTED_APPS\n\n_Example: ALLOWED_INACTIVE_CONNECTED_APPS=My App 1,My App 2, My App 3_\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-release-updates/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6632
6592
|
"examples": [
|
|
6633
|
-
"$ sf hardis:org:
|
|
6593
|
+
"$ sf hardis:org:diagnose:unused-connected-apps"
|
|
6634
6594
|
],
|
|
6635
6595
|
"flags": {
|
|
6636
6596
|
"json": {
|
|
@@ -6648,37 +6608,10 @@
|
|
|
6648
6608
|
"multiple": false,
|
|
6649
6609
|
"type": "option"
|
|
6650
6610
|
},
|
|
6651
|
-
"
|
|
6652
|
-
"char": "
|
|
6653
|
-
"description": "
|
|
6654
|
-
"name": "
|
|
6655
|
-
"hasDynamicHelp": false,
|
|
6656
|
-
"multiple": false,
|
|
6657
|
-
"type": "option"
|
|
6658
|
-
},
|
|
6659
|
-
"chunksize": {
|
|
6660
|
-
"char": "c",
|
|
6661
|
-
"description": "Number of records to add in a chunk before it is processed",
|
|
6662
|
-
"name": "chunksize",
|
|
6663
|
-
"default": 1000,
|
|
6664
|
-
"hasDynamicHelp": false,
|
|
6665
|
-
"multiple": false,
|
|
6666
|
-
"type": "option"
|
|
6667
|
-
},
|
|
6668
|
-
"polltimeout": {
|
|
6669
|
-
"char": "t",
|
|
6670
|
-
"description": "Timeout in MS for Bulk API calls",
|
|
6671
|
-
"name": "polltimeout",
|
|
6672
|
-
"default": 300000,
|
|
6673
|
-
"hasDynamicHelp": false,
|
|
6674
|
-
"multiple": false,
|
|
6675
|
-
"type": "option"
|
|
6676
|
-
},
|
|
6677
|
-
"startchunknumber": {
|
|
6678
|
-
"char": "s",
|
|
6679
|
-
"description": "Chunk number to start from",
|
|
6680
|
-
"name": "startchunknumber",
|
|
6681
|
-
"default": 0,
|
|
6611
|
+
"outputfile": {
|
|
6612
|
+
"char": "f",
|
|
6613
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6614
|
+
"name": "outputfile",
|
|
6682
6615
|
"hasDynamicHelp": false,
|
|
6683
6616
|
"multiple": false,
|
|
6684
6617
|
"type": "option"
|
|
@@ -6721,13 +6654,30 @@
|
|
|
6721
6654
|
},
|
|
6722
6655
|
"hasDynamicHelp": true,
|
|
6723
6656
|
"hiddenAliases": [],
|
|
6724
|
-
"id": "hardis:org:
|
|
6657
|
+
"id": "hardis:org:diagnose:unused-connected-apps",
|
|
6725
6658
|
"pluginAlias": "sfdx-hardis",
|
|
6726
6659
|
"pluginName": "sfdx-hardis",
|
|
6727
6660
|
"pluginType": "core",
|
|
6728
6661
|
"strict": true,
|
|
6729
6662
|
"enableJsonFlag": true,
|
|
6730
|
-
"title": "
|
|
6663
|
+
"title": "Unused Connected Apps in an org",
|
|
6664
|
+
"allowedInactiveConnectedApps": [
|
|
6665
|
+
"Ant Migration Tool",
|
|
6666
|
+
"Chatter Desktop",
|
|
6667
|
+
"Chatter Mobile for BlackBerry",
|
|
6668
|
+
"Force.com IDE",
|
|
6669
|
+
"OIQ_Integration",
|
|
6670
|
+
"Salesforce CLI",
|
|
6671
|
+
"Salesforce Files",
|
|
6672
|
+
"Salesforce Mobile Dashboards",
|
|
6673
|
+
"Salesforce Touch",
|
|
6674
|
+
"Salesforce for Outlook",
|
|
6675
|
+
"SalesforceA",
|
|
6676
|
+
"SalesforceA for Android",
|
|
6677
|
+
"SalesforceA for iOS",
|
|
6678
|
+
"SalesforceDX Namespace Registry",
|
|
6679
|
+
"SalesforceIQ"
|
|
6680
|
+
],
|
|
6731
6681
|
"requiresProject": false,
|
|
6732
6682
|
"isESM": true,
|
|
6733
6683
|
"relativePath": [
|
|
@@ -6735,43 +6685,44 @@
|
|
|
6735
6685
|
"commands",
|
|
6736
6686
|
"hardis",
|
|
6737
6687
|
"org",
|
|
6738
|
-
"
|
|
6739
|
-
"
|
|
6688
|
+
"diagnose",
|
|
6689
|
+
"unused-connected-apps.js"
|
|
6740
6690
|
],
|
|
6741
6691
|
"aliasPermutations": [],
|
|
6742
6692
|
"permutations": [
|
|
6743
|
-
"hardis:org:
|
|
6744
|
-
"org:hardis:
|
|
6745
|
-
"org:
|
|
6746
|
-
"org:
|
|
6747
|
-
"hardis:
|
|
6748
|
-
"
|
|
6749
|
-
"
|
|
6750
|
-
"
|
|
6751
|
-
"hardis:
|
|
6752
|
-
"
|
|
6753
|
-
"
|
|
6754
|
-
"
|
|
6755
|
-
"hardis:org:
|
|
6756
|
-
"org:hardis:
|
|
6757
|
-
"org:
|
|
6758
|
-
"org:
|
|
6759
|
-
"hardis:
|
|
6760
|
-
"
|
|
6761
|
-
"
|
|
6762
|
-
"
|
|
6763
|
-
"hardis:
|
|
6764
|
-
"
|
|
6765
|
-
"
|
|
6766
|
-
"
|
|
6693
|
+
"hardis:org:diagnose:unused-connected-apps",
|
|
6694
|
+
"org:hardis:diagnose:unused-connected-apps",
|
|
6695
|
+
"org:diagnose:hardis:unused-connected-apps",
|
|
6696
|
+
"org:diagnose:unused-connected-apps:hardis",
|
|
6697
|
+
"hardis:diagnose:org:unused-connected-apps",
|
|
6698
|
+
"diagnose:hardis:org:unused-connected-apps",
|
|
6699
|
+
"diagnose:org:hardis:unused-connected-apps",
|
|
6700
|
+
"diagnose:org:unused-connected-apps:hardis",
|
|
6701
|
+
"hardis:diagnose:unused-connected-apps:org",
|
|
6702
|
+
"diagnose:hardis:unused-connected-apps:org",
|
|
6703
|
+
"diagnose:unused-connected-apps:hardis:org",
|
|
6704
|
+
"diagnose:unused-connected-apps:org:hardis",
|
|
6705
|
+
"hardis:org:unused-connected-apps:diagnose",
|
|
6706
|
+
"org:hardis:unused-connected-apps:diagnose",
|
|
6707
|
+
"org:unused-connected-apps:hardis:diagnose",
|
|
6708
|
+
"org:unused-connected-apps:diagnose:hardis",
|
|
6709
|
+
"hardis:unused-connected-apps:org:diagnose",
|
|
6710
|
+
"unused-connected-apps:hardis:org:diagnose",
|
|
6711
|
+
"unused-connected-apps:org:hardis:diagnose",
|
|
6712
|
+
"unused-connected-apps:org:diagnose:hardis",
|
|
6713
|
+
"hardis:unused-connected-apps:diagnose:org",
|
|
6714
|
+
"unused-connected-apps:hardis:diagnose:org",
|
|
6715
|
+
"unused-connected-apps:diagnose:hardis:org",
|
|
6716
|
+
"unused-connected-apps:diagnose:org:hardis"
|
|
6767
6717
|
]
|
|
6768
6718
|
},
|
|
6769
|
-
"hardis:org:
|
|
6719
|
+
"hardis:org:diagnose:unusedlicenses": {
|
|
6770
6720
|
"aliases": [],
|
|
6771
6721
|
"args": {},
|
|
6772
|
-
"description": "
|
|
6722
|
+
"description": "When you assign a Permission Set to a user, and that this Permission Set is related to a Permission Set License, a Permission Set License Assignment is automatically created for the user.\n\nBut when you unassign this Permission Set from the user, **the Permission Set License Assignment is not deleted**.\n\nThis leads that you can be **charged for Permission Set Licenses that are not used** !\n\nThis command detects such useless Permission Set Licenses Assignments and suggests to delete them.\n\nMany thanks to [Vincent Finet](https://www.linkedin.com/in/vincentfinet/) for the inspiration during his great speaker session at [French Touch Dreamin '23](https://frenchtouchdreamin.com/), and his kind agreement for reusing such inspiration in this command :)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-licenses/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6773
6723
|
"examples": [
|
|
6774
|
-
"$ sf hardis:org:
|
|
6724
|
+
"$ sf hardis:org:diagnose:unusedlicenses",
|
|
6725
|
+
"$ sf hardis:org:diagnose:unusedlicenses --fix"
|
|
6775
6726
|
],
|
|
6776
6727
|
"flags": {
|
|
6777
6728
|
"json": {
|
|
@@ -6789,21 +6740,14 @@
|
|
|
6789
6740
|
"multiple": false,
|
|
6790
6741
|
"type": "option"
|
|
6791
6742
|
},
|
|
6792
|
-
"
|
|
6793
|
-
"char": "
|
|
6794
|
-
"description": "
|
|
6795
|
-
"name": "
|
|
6743
|
+
"outputfile": {
|
|
6744
|
+
"char": "f",
|
|
6745
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6746
|
+
"name": "outputfile",
|
|
6796
6747
|
"hasDynamicHelp": false,
|
|
6797
6748
|
"multiple": false,
|
|
6798
6749
|
"type": "option"
|
|
6799
6750
|
},
|
|
6800
|
-
"overwrite": {
|
|
6801
|
-
"char": "f",
|
|
6802
|
-
"description": "Override existing files (doubles the number of API calls)",
|
|
6803
|
-
"name": "overwrite",
|
|
6804
|
-
"allowNo": false,
|
|
6805
|
-
"type": "boolean"
|
|
6806
|
-
},
|
|
6807
6751
|
"debug": {
|
|
6808
6752
|
"char": "d",
|
|
6809
6753
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6842,58 +6786,79 @@
|
|
|
6842
6786
|
},
|
|
6843
6787
|
"hasDynamicHelp": true,
|
|
6844
6788
|
"hiddenAliases": [],
|
|
6845
|
-
"id": "hardis:org:
|
|
6789
|
+
"id": "hardis:org:diagnose:unusedlicenses",
|
|
6846
6790
|
"pluginAlias": "sfdx-hardis",
|
|
6847
6791
|
"pluginName": "sfdx-hardis",
|
|
6848
6792
|
"pluginType": "core",
|
|
6849
6793
|
"strict": true,
|
|
6850
6794
|
"enableJsonFlag": true,
|
|
6851
|
-
"title": "
|
|
6795
|
+
"title": "Detect unused Permission Set Licenses (beta)",
|
|
6852
6796
|
"requiresProject": false,
|
|
6797
|
+
"additionalPermissionSetsToAlwaysGet": [
|
|
6798
|
+
"Sales_User"
|
|
6799
|
+
],
|
|
6800
|
+
"permSetsPermSetLicenses": [
|
|
6801
|
+
{
|
|
6802
|
+
"permSet": "Sales_User",
|
|
6803
|
+
"permSetLicense": "SalesUserPsl"
|
|
6804
|
+
}
|
|
6805
|
+
],
|
|
6806
|
+
"profilesPermissionSetLicenses": [
|
|
6807
|
+
{
|
|
6808
|
+
"profile": "Salesforce API Only",
|
|
6809
|
+
"permSetLicense": "SalesforceAPIIntegrationPsl"
|
|
6810
|
+
}
|
|
6811
|
+
],
|
|
6812
|
+
"alwaysExcludeForActiveUsersPermissionSetLicenses": [
|
|
6813
|
+
"IdentityConnect"
|
|
6814
|
+
],
|
|
6853
6815
|
"isESM": true,
|
|
6854
6816
|
"relativePath": [
|
|
6855
6817
|
"lib",
|
|
6856
6818
|
"commands",
|
|
6857
6819
|
"hardis",
|
|
6858
6820
|
"org",
|
|
6859
|
-
"
|
|
6860
|
-
"
|
|
6821
|
+
"diagnose",
|
|
6822
|
+
"unusedlicenses.js"
|
|
6861
6823
|
],
|
|
6862
6824
|
"aliasPermutations": [],
|
|
6863
6825
|
"permutations": [
|
|
6864
|
-
"hardis:org:
|
|
6865
|
-
"org:hardis:
|
|
6866
|
-
"org:
|
|
6867
|
-
"org:
|
|
6868
|
-
"hardis:
|
|
6869
|
-
"
|
|
6870
|
-
"
|
|
6871
|
-
"
|
|
6872
|
-
"hardis:
|
|
6873
|
-
"
|
|
6874
|
-
"
|
|
6875
|
-
"
|
|
6876
|
-
"hardis:org:
|
|
6877
|
-
"org:hardis:
|
|
6878
|
-
"org:
|
|
6879
|
-
"org:
|
|
6880
|
-
"hardis:
|
|
6881
|
-
"
|
|
6882
|
-
"
|
|
6883
|
-
"
|
|
6884
|
-
"hardis:
|
|
6885
|
-
"
|
|
6886
|
-
"
|
|
6887
|
-
"
|
|
6826
|
+
"hardis:org:diagnose:unusedlicenses",
|
|
6827
|
+
"org:hardis:diagnose:unusedlicenses",
|
|
6828
|
+
"org:diagnose:hardis:unusedlicenses",
|
|
6829
|
+
"org:diagnose:unusedlicenses:hardis",
|
|
6830
|
+
"hardis:diagnose:org:unusedlicenses",
|
|
6831
|
+
"diagnose:hardis:org:unusedlicenses",
|
|
6832
|
+
"diagnose:org:hardis:unusedlicenses",
|
|
6833
|
+
"diagnose:org:unusedlicenses:hardis",
|
|
6834
|
+
"hardis:diagnose:unusedlicenses:org",
|
|
6835
|
+
"diagnose:hardis:unusedlicenses:org",
|
|
6836
|
+
"diagnose:unusedlicenses:hardis:org",
|
|
6837
|
+
"diagnose:unusedlicenses:org:hardis",
|
|
6838
|
+
"hardis:org:unusedlicenses:diagnose",
|
|
6839
|
+
"org:hardis:unusedlicenses:diagnose",
|
|
6840
|
+
"org:unusedlicenses:hardis:diagnose",
|
|
6841
|
+
"org:unusedlicenses:diagnose:hardis",
|
|
6842
|
+
"hardis:unusedlicenses:org:diagnose",
|
|
6843
|
+
"unusedlicenses:hardis:org:diagnose",
|
|
6844
|
+
"unusedlicenses:org:hardis:diagnose",
|
|
6845
|
+
"unusedlicenses:org:diagnose:hardis",
|
|
6846
|
+
"hardis:unusedlicenses:diagnose:org",
|
|
6847
|
+
"unusedlicenses:hardis:diagnose:org",
|
|
6848
|
+
"unusedlicenses:diagnose:hardis:org",
|
|
6849
|
+
"unusedlicenses:diagnose:org:hardis"
|
|
6888
6850
|
]
|
|
6889
6851
|
},
|
|
6890
|
-
"hardis:org:
|
|
6852
|
+
"hardis:org:diagnose:unusedusers": {
|
|
6891
6853
|
"aliases": [],
|
|
6892
6854
|
"args": {},
|
|
6893
|
-
"description": "
|
|
6855
|
+
"description": "Efficient user management is vital in Salesforce to ensure resources are optimized and costs are controlled. However, inactive or unused user accounts can often go unnoticed, leading to wasted licenses and potential security risks. This tool addresses this challenge by enabling administrators to identify users who haven't logged in within a specified period.\n\nBy analyzing user login activity and last login timestamps, this feature highlights inactive user accounts, allowing administrators to take appropriate action. Whether it's deactivating dormant accounts, freeing up licenses, or ensuring compliance with security policies, this functionality empowers administrators to maintain a lean and secure Salesforce environment.\n\nlicensetypes values are the following:\n\n- all-crm: SFDC,AUL,AUL1,AULL_IGHT\n\n- all-paying: SFDC,AUL,AUL1,AULL_IGHT,PID_Customer_Community,PID_Customer_Community_Login,PID_Partner_Community,PID_Partner_Community_Login\n\nNote: You can see the full list of available license identifiers in [Salesforce Documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm)\n\nUse --returnactiveusers to revert the command and retrieve active users that has logged in during the period.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-inactive-users/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
6894
6856
|
"examples": [
|
|
6895
|
-
"$ sf hardis:org:
|
|
6896
|
-
"$ sf hardis:org:
|
|
6857
|
+
"$ sf hardis:org:diagnose:unusedusers",
|
|
6858
|
+
"$ sf hardis:org:diagnose:unusedusers --days 365",
|
|
6859
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
|
|
6860
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
|
|
6861
|
+
"$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
|
|
6897
6862
|
],
|
|
6898
6863
|
"flags": {
|
|
6899
6864
|
"json": {
|
|
@@ -6911,14 +6876,49 @@
|
|
|
6911
6876
|
"multiple": false,
|
|
6912
6877
|
"type": "option"
|
|
6913
6878
|
},
|
|
6914
|
-
"
|
|
6879
|
+
"outputfile": {
|
|
6880
|
+
"char": "f",
|
|
6881
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
6882
|
+
"name": "outputfile",
|
|
6883
|
+
"hasDynamicHelp": false,
|
|
6884
|
+
"multiple": false,
|
|
6885
|
+
"type": "option"
|
|
6886
|
+
},
|
|
6887
|
+
"days": {
|
|
6888
|
+
"char": "t",
|
|
6889
|
+
"description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
|
|
6890
|
+
"name": "days",
|
|
6891
|
+
"hasDynamicHelp": false,
|
|
6892
|
+
"multiple": false,
|
|
6893
|
+
"type": "option"
|
|
6894
|
+
},
|
|
6895
|
+
"licensetypes": {
|
|
6915
6896
|
"char": "l",
|
|
6916
|
-
"description": "
|
|
6917
|
-
"name": "
|
|
6897
|
+
"description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
|
|
6898
|
+
"name": "licensetypes",
|
|
6899
|
+
"hasDynamicHelp": false,
|
|
6900
|
+
"multiple": false,
|
|
6901
|
+
"options": [
|
|
6902
|
+
"all",
|
|
6903
|
+
"all-crm",
|
|
6904
|
+
"all-paying"
|
|
6905
|
+
],
|
|
6906
|
+
"type": "option"
|
|
6907
|
+
},
|
|
6908
|
+
"licenseidentifiers": {
|
|
6909
|
+
"char": "i",
|
|
6910
|
+
"description": "Comma-separated list of license identifiers, in case licensetypes is not used.. Identifiers available at https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm",
|
|
6911
|
+
"name": "licenseidentifiers",
|
|
6918
6912
|
"hasDynamicHelp": false,
|
|
6919
6913
|
"multiple": false,
|
|
6920
6914
|
"type": "option"
|
|
6921
6915
|
},
|
|
6916
|
+
"returnactiveusers": {
|
|
6917
|
+
"description": "Inverts the command by returning the active users",
|
|
6918
|
+
"name": "returnactiveusers",
|
|
6919
|
+
"allowNo": false,
|
|
6920
|
+
"type": "boolean"
|
|
6921
|
+
},
|
|
6922
6922
|
"debug": {
|
|
6923
6923
|
"char": "d",
|
|
6924
6924
|
"description": "Activate debug mode (more logs)",
|
|
@@ -6957,49 +6957,49 @@
|
|
|
6957
6957
|
},
|
|
6958
6958
|
"hasDynamicHelp": true,
|
|
6959
6959
|
"hiddenAliases": [],
|
|
6960
|
-
"id": "hardis:org:
|
|
6960
|
+
"id": "hardis:org:diagnose:unusedusers",
|
|
6961
6961
|
"pluginAlias": "sfdx-hardis",
|
|
6962
6962
|
"pluginName": "sfdx-hardis",
|
|
6963
6963
|
"pluginType": "core",
|
|
6964
6964
|
"strict": true,
|
|
6965
6965
|
"enableJsonFlag": true,
|
|
6966
|
-
"title": "
|
|
6967
|
-
"requiresProject":
|
|
6966
|
+
"title": "Detect unused Users in Salesforce",
|
|
6967
|
+
"requiresProject": false,
|
|
6968
6968
|
"isESM": true,
|
|
6969
6969
|
"relativePath": [
|
|
6970
6970
|
"lib",
|
|
6971
6971
|
"commands",
|
|
6972
6972
|
"hardis",
|
|
6973
6973
|
"org",
|
|
6974
|
-
"
|
|
6975
|
-
"
|
|
6974
|
+
"diagnose",
|
|
6975
|
+
"unusedusers.js"
|
|
6976
6976
|
],
|
|
6977
6977
|
"aliasPermutations": [],
|
|
6978
6978
|
"permutations": [
|
|
6979
|
-
"hardis:org:
|
|
6980
|
-
"org:hardis:
|
|
6981
|
-
"org:
|
|
6982
|
-
"org:
|
|
6983
|
-
"hardis:
|
|
6984
|
-
"
|
|
6985
|
-
"
|
|
6986
|
-
"
|
|
6987
|
-
"hardis:
|
|
6988
|
-
"
|
|
6989
|
-
"
|
|
6990
|
-
"
|
|
6991
|
-
"hardis:org:
|
|
6992
|
-
"org:hardis:
|
|
6993
|
-
"org:
|
|
6994
|
-
"org:
|
|
6995
|
-
"hardis:
|
|
6996
|
-
"
|
|
6997
|
-
"
|
|
6998
|
-
"
|
|
6999
|
-
"hardis:
|
|
7000
|
-
"
|
|
7001
|
-
"
|
|
7002
|
-
"
|
|
6979
|
+
"hardis:org:diagnose:unusedusers",
|
|
6980
|
+
"org:hardis:diagnose:unusedusers",
|
|
6981
|
+
"org:diagnose:hardis:unusedusers",
|
|
6982
|
+
"org:diagnose:unusedusers:hardis",
|
|
6983
|
+
"hardis:diagnose:org:unusedusers",
|
|
6984
|
+
"diagnose:hardis:org:unusedusers",
|
|
6985
|
+
"diagnose:org:hardis:unusedusers",
|
|
6986
|
+
"diagnose:org:unusedusers:hardis",
|
|
6987
|
+
"hardis:diagnose:unusedusers:org",
|
|
6988
|
+
"diagnose:hardis:unusedusers:org",
|
|
6989
|
+
"diagnose:unusedusers:hardis:org",
|
|
6990
|
+
"diagnose:unusedusers:org:hardis",
|
|
6991
|
+
"hardis:org:unusedusers:diagnose",
|
|
6992
|
+
"org:hardis:unusedusers:diagnose",
|
|
6993
|
+
"org:unusedusers:hardis:diagnose",
|
|
6994
|
+
"org:unusedusers:diagnose:hardis",
|
|
6995
|
+
"hardis:unusedusers:org:diagnose",
|
|
6996
|
+
"unusedusers:hardis:org:diagnose",
|
|
6997
|
+
"unusedusers:org:hardis:diagnose",
|
|
6998
|
+
"unusedusers:org:diagnose:hardis",
|
|
6999
|
+
"hardis:unusedusers:diagnose:org",
|
|
7000
|
+
"unusedusers:hardis:diagnose:org",
|
|
7001
|
+
"unusedusers:diagnose:hardis:org",
|
|
7002
|
+
"unusedusers:diagnose:org:hardis"
|
|
7003
7003
|
]
|
|
7004
7004
|
},
|
|
7005
7005
|
"hardis:org:generate:packagexmlfull": {
|
|
@@ -14843,5 +14843,5 @@
|
|
|
14843
14843
|
]
|
|
14844
14844
|
}
|
|
14845
14845
|
},
|
|
14846
|
-
"version": "5.44.2-
|
|
14846
|
+
"version": "5.44.2-alpha202507221328.0"
|
|
14847
14847
|
}
|