Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,16 @@ Rename a metadata component using the Metadata API.

```
USAGE
$ sf metadata:rename -t <type> -o <oldname> -n <newname> [-u <username>] [--json]
$ sf metadata:rename -t <type> -d <oldname> -n <newname> [-o <username>] [--json]

OPTIONS
-t, --metadatatype (required) Metadata type (e.g. CustomObject, CustomField)
-o, --oldfullname (required) Current API name of the component
-n, --newfullname (required) New API name for the component
-u, --targetusername Username or alias for the target org
-t, --metadatatype (required) Metadata type (e.g. CustomObject, CustomField)
-d, --oldfullname (required) Current API name of the component
-n, --newfullname (required) New API name for the component
-o, --target-org Username or alias for the target org; defaults to the configured default org

EXAMPLES
$ sf metadata:rename -t CustomObject -o MyObject__c -n RenamedObject__c
$ sf metadata:rename -t CustomObject -d MyObject__c -n RenamedObject__c
```

---
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/apex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ApexDeploy extends SfCommand<any> {
public static description = messages.getMessage('apexDeploy');

public static examples = [
'$ sfdx deploy:apex -p filepath'
'$ sf deploy:apex -p filepath'
];

public static readonly flags = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/aura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class AuraDeploy extends SfCommand<any> {
public static description = messages.getMessage('auraDeploy');

public static examples = [
'$ sfdx deploy:aura -p filepath'
'$ sf deploy:aura -p filepath'
];

public static readonly flags = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/lwc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class LWCDeploy extends SfCommand<any> {
public static description = messages.getMessage('lwcDeploy');

public static examples = [
'$ sfdx deploy:lwc -p filepath'
'$ sf deploy:lwc -p filepath'
];

public static readonly flags = {
Expand Down
6 changes: 3 additions & 3 deletions src/commands/deploy/staticresource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default class StaticResourceDeploy extends SfCommand<any> {
public static description = messages.getMessage("staticresourceDeploy");

public static examples = [
"$ sfdx deploy:staticresource -p <filepath>",
"$ sfdx deploy:staticresource -p <filepath> --cachecontrol public",
"$ sfdx deploy:staticresource -p <filepath> --cachecontrol public --resourcefolder <name of the folder where you have single page app>"
"$ sf deploy:staticresource -p <filepath>",
"$ sf deploy:staticresource -p <filepath> --cachecontrol public",
"$ sf deploy:staticresource -p <filepath> --cachecontrol public --resourcefolder <name of the folder where you have single page app>"
];

public static readonly flags = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class TriggerDeploy extends SfCommand<any> {
public static description = messages.getMessage('triggerDeploy');

public static examples = [
'$ sfdx deploy:trigger -p filepath'
'$ sf deploy:trigger -p filepath'
];

public static readonly flags = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/vf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class VfDeploy extends SfCommand<any> {
public static description = messages.getMessage('vfDeploy');

public static examples = [
'$ sfdx deploy:vf -p filepath'
'$ sf deploy:vf -p filepath'
];

public static readonly flags = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/vfcomponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class ApexComponentDeploy extends SfCommand<any> {
public static description = messages.getMessage('vfComponentDeploy');

public static examples = [
'$ sfdx deploy:vfcomponent -p filepath'
'$ sf deploy:vfcomponent -p filepath'
];

public static readonly flags = {
Expand Down
6 changes: 3 additions & 3 deletions src/commands/metadata/rename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default class RenameMetadata extends SfCommand<any> {
public static description = messages.getMessage('renamemetadata');

public static examples = [
'$ sfdx metadata:rename -t <metadatatype> -n <newname> -o <oldname>',
'$ sfdx metadata:rename -t CustomObject -n MyCustomObject1New__c -o MyCustomObject1__c'
'$ sf metadata:rename -t <metadatatype> -n <newname> -d <oldname>',
'$ sf metadata:rename -t CustomObject -n MyCustomObject1New__c -d MyCustomObject1__c'
];

public static readonly flags = {
Expand All @@ -31,7 +31,7 @@ export default class RenameMetadata extends SfCommand<any> {
description: 'new name of the metadata element'
}),
oldfullname: Flags.string({
char: 'o',
char: 'd',
required: true,
description:
'old name of the metadata element'
Expand Down
8 changes: 4 additions & 4 deletions src/commands/retrieve/dxsource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export default class DxSource extends SfCommand<any> {
public static description = messages.getMessage('retrieveDxSource');

public static examples = [
'$ sfdx retrieve:dxsource -n <package/changeset>',
'$ sfdx retrieve:dxsource -n <package/changeset> -m "true"',
'$ sfdx retrieve:dxsource -n <package/changeset> -p <[pathName]>',
'$ sfdx retrieve:dxsource -u myOrg@example.com -n <package/changeset> -p <[pathName]>'
'$ sf retrieve:dxsource -n <package/changeset>',
'$ sf retrieve:dxsource -n <package/changeset> -m "true"',
'$ sf retrieve:dxsource -n <package/changeset> -p <[pathName]>',
'$ sf retrieve:dxsource -o myOrg@example.com -n <package/changeset> -p <[pathName]>'
];

public static readonly flags = {
Expand Down
6 changes: 3 additions & 3 deletions src/commands/retrieve/pkgsource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export default class Pkgsource extends SfCommand<any> {
public static description = messages.getMessage('retrieveSource');

public static examples = [
'$ sfdx retrieve:pkgsource -n <package/changeset>',
'$ sfdx retrieve:pkgsource -n <package/changeset> -r <relative path where source is retrieved and unzipped>',
'$ sfdx retrieve:pkgsource -n <package/changeset> -r /changesets/src'
'$ sf retrieve:pkgsource -n <package/changeset>',
'$ sf retrieve:pkgsource -n <package/changeset> -r <relative path where source is retrieved and unzipped>',
'$ sf retrieve:pkgsource -n <package/changeset> -r /changesets/src'
];

public static readonly flags = {
Expand Down
Loading