-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added better example for command #34
- Loading branch information
1 parent
2dab0e2
commit ea49b11
Showing
4 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,12 +63,12 @@ OPTIONS | |
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for | ||
this command invocation | ||
EXAMPLE | ||
$ sfdx texei:data:export --objects Account,Contact,MyCustomObject__c --outputdir ./data --targetusername texei | ||
Data exported! | ||
EXAMPLES | ||
sfdx texei:data:export --objects Account,Contact,MyCustomObject__c --outputdir ./data --targetusername texei | ||
sfdx texei:data:export --dataplan ./data/data-plan.json --outputdir ./data --targetusername texei | ||
``` | ||
|
||
_See code: [src/commands/texei/data/export.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/data/export.ts)_ | ||
_See code: [src/commands/texei/data/export.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/data/export.ts)_ | ||
|
||
## `sfdx texei:data:import -d <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -99,7 +99,7 @@ EXAMPLE | |
Data imported! | ||
``` | ||
|
||
_See code: [src/commands/texei/data/import.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/data/import.ts)_ | ||
_See code: [src/commands/texei/data/import.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/data/import.ts)_ | ||
|
||
## `sfdx texei:data:plan:generate -d <string> -o <string> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -126,7 +126,7 @@ EXAMPLE | |
$ sfdx texei:data:plan:generate --objects Account,Contact,MyCustomObject__c --outputdir ./data | ||
``` | ||
|
||
_See code: [src/commands/texei/data/plan/generate.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/data/plan/generate.ts)_ | ||
_See code: [src/commands/texei/data/plan/generate.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/data/plan/generate.ts)_ | ||
|
||
## `sfdx texei:org:contractfieldhistory:fix [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -154,7 +154,7 @@ EXAMPLE | |
History tracking fixed. | ||
``` | ||
|
||
_See code: [src/commands/texei/org/contractfieldhistory/fix.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/org/contractfieldhistory/fix.ts)_ | ||
_See code: [src/commands/texei/org/contractfieldhistory/fix.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/org/contractfieldhistory/fix.ts)_ | ||
|
||
## `sfdx texei:org:shape:extract [-d <string>] [-s <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -189,7 +189,7 @@ EXAMPLE | |
$ sfdx texei:org:shape:extract -u [email protected]" | ||
``` | ||
|
||
_See code: [src/commands/texei/org/shape/extract.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/org/shape/extract.ts)_ | ||
_See code: [src/commands/texei/org/shape/extract.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/org/shape/extract.ts)_ | ||
|
||
## `sfdx texei:package:dependencies:install [-k <string>] [-b <string>] [-p <string>] [-s <string>] [-n <string>] [-w <number>] [-r] [-a <string>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -252,7 +252,7 @@ EXAMPLE | |
$ texei:package:dependencies:install -u MyScratchOrg -v MyDevHub -k "1:MyPackage1Key 2: 3:MyPackage3Key" -b "DEV" | ||
``` | ||
|
||
_See code: [src/commands/texei/package/dependencies/install.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/package/dependencies/install.ts)_ | ||
_See code: [src/commands/texei/package/dependencies/install.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/package/dependencies/install.ts)_ | ||
|
||
## `sfdx texei:profile:clean [-k <string>] [-p <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -286,7 +286,7 @@ EXAMPLES | |
custom-sfdx-source-folder/main/profiles,source-folder-2/main/profiles/myAdmin.profile-meta.xml | ||
``` | ||
|
||
_See code: [src/commands/texei/profile/clean.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/profile/clean.ts)_ | ||
_See code: [src/commands/texei/profile/clean.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/profile/clean.ts)_ | ||
|
||
## `sfdx texei:sharedactivities:enable [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -313,7 +313,7 @@ EXAMPLE | |
$ sfdx texei:sharedactivities:enable | ||
``` | ||
|
||
_See code: [src/commands/texei/sharedactivities/enable.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/sharedactivities/enable.ts)_ | ||
_See code: [src/commands/texei/sharedactivities/enable.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/sharedactivities/enable.ts)_ | ||
|
||
## `sfdx texei:sharingcalc:suspend [-s <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -344,7 +344,7 @@ EXAMPLE | |
Sharing calculations suspended | ||
``` | ||
|
||
_See code: [src/commands/texei/sharingcalc/suspend.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/sharingcalc/suspend.ts)_ | ||
_See code: [src/commands/texei/sharingcalc/suspend.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/sharingcalc/suspend.ts)_ | ||
|
||
## `sfdx texei:skinnyprofile:retrieve [-t <string>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -377,7 +377,7 @@ EXAMPLE | |
$ texei:skinnyprofile:retrieve -u MyScratchOrg | ||
``` | ||
|
||
_See code: [src/commands/texei/skinnyprofile/retrieve.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/skinnyprofile/retrieve.ts)_ | ||
_See code: [src/commands/texei/skinnyprofile/retrieve.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/skinnyprofile/retrieve.ts)_ | ||
|
||
## `sfdx texei:source:customlabel:replace -l <string> -v <string> [-p <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -401,7 +401,7 @@ EXAMPLE | |
$ texei:source:customlabel:replace --label GreatSalesforceBlog --value https://blog.texei.com | ||
``` | ||
|
||
_See code: [src/commands/texei/source/customlabel/replace.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/source/customlabel/replace.ts)_ | ||
_See code: [src/commands/texei/source/customlabel/replace.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/source/customlabel/replace.ts)_ | ||
|
||
## `sfdx texei:source:layouts:cleanorg [-p <string>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -434,7 +434,7 @@ EXAMPLES | |
$ texei:source:layouts:cleanorg --targetusername myScratchOrg --targetdevhubusername myDevHub | ||
``` | ||
|
||
_See code: [src/commands/texei/source/layouts/cleanorg.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/source/layouts/cleanorg.ts)_ | ||
_See code: [src/commands/texei/source/layouts/cleanorg.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/source/layouts/cleanorg.ts)_ | ||
|
||
## `sfdx texei:user:update [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
|
||
|
@@ -461,10 +461,11 @@ OPTIONS | |
this command invocation | ||
EXAMPLES | ||
$ sfdx texei:user:update --targetusername [email protected] --values "LanguageLocaleKey='fr'" | ||
sfdx texei:user:update --targetusername [email protected] --values "LanguageLocaleKey='fr'" | ||
Successfully updated record: 005D2A90N8A11SVPE2. | ||
$ sfdx texei:user:update --values "UserPermissionsKnowledgeUser=true" --json | ||
sfdx texei:user:update --values "UserPermissionsKnowledgeUser=true" --json | ||
sfdx texei:user:update --values "LanguageLocaleKey=en_US UserPermissionsMarketingUser=true" --json | ||
``` | ||
|
||
_See code: [src/commands/texei/user/update.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.1/src/commands/texei/user/update.ts)_ | ||
_See code: [src/commands/texei/user/update.ts](https://github.com/texei/texei-sfdx-plugin/blob/v1.6.2/src/commands/texei/user/update.ts)_ | ||
<!-- commandsstop --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,9 @@ export default class Update extends SfdxCommand { | |
public static description = messages.getMessage('commandDescription'); | ||
|
||
public static examples = [ | ||
`$ sfdx texei:user:update --targetusername [email protected] --values "LanguageLocaleKey='fr'" \nSuccessfully updated record: 005D2A90N8A11SVPE2.`, | ||
`$ sfdx texei:user:update --values "UserPermissionsKnowledgeUser=true" --json` | ||
`sfdx texei:user:update --targetusername [email protected] --values "LanguageLocaleKey='fr'" \nSuccessfully updated record: 005D2A90N8A11SVPE2.`, | ||
`sfdx texei:user:update --values "UserPermissionsKnowledgeUser=true" --json`, | ||
`sfdx texei:user:update --values "LanguageLocaleKey=en_US UserPermissionsMarketingUser=true" --json` | ||
]; | ||
|
||
//public static args = [{ name: 'file' }]; | ||
|