Skip to content

Commit 75be874

Browse files
fix: edit messages for "org list metadata"
1 parent 93dcdb6 commit 75be874

File tree

2 files changed

+24
-47
lines changed

2 files changed

+24
-47
lines changed

messages/list.metadata.md

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,45 @@
11
# description
22

3-
This command is useful when you want to identify individual components in your manifest file or if you want a high-level
4-
view of particular components in your organization. For example, you could use this target to return a list of names of
5-
all Layout components in your org, then use this information in a retrieve operation that returns a subset of these
6-
components.
3+
Use this command to identify individual components in your manifest file or if you want a high-level view of particular metadata types in your org. For example, you can use this command to return a list of names of all the CustomObject or Layout components in your org, then use this information in a retrieve command that returns a subset of these components.
74

85
# summary
96

10-
display properties of metadata components of a specified type
7+
List the metadata components and properties of a specified type.
118

129
# examples
1310

14-
- $ <%= config.bin %> <%= command.id %> -m CustomObject
11+
- List the CustomObject components, and their properties, in the org with alias "my-dev-org":
1512

16-
- $ <%= config.bin %> <%= command.id %> -m CustomObject -a 43.0
13+
$ <%= config.bin %> <%= command.id %> --metadata-type CustomObject --target-org my-dev-org
1714

18-
- $ <%= config.bin %> <%= command.id %> -m CustomObject -o [email protected]
15+
- List the CustomObject components in your default org, write the output to the specified file, and use API version 57.0:
1916

20-
- $ <%= config.bin %> <%= command.id %> -m CustomObject -f /path/to/outputfilename.txt
17+
$ <%= config.bin %> <%= command.id %> --metadata-type CustomObject --api-version 57.0 --output-file /path/to/outputfilename.txt
2118

22-
- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername
19+
- List the Dashboard components in your default org that are contained in the "folderSales" folder, write the output to the specified file, and use API version 57.0:
2320

24-
- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername -a 43.0
21+
$ <%= config.bin %> <%= command.id %> --metadata-type Dashboard --folder folderSales --api-version 57.0 --output-file /path/to/outputfilename.txt
2522

26-
- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername -o [email protected]
23+
# flags.api-version.summary
2724

28-
- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername -f /path/to/outputfilename.txt
25+
API version to use; default is the latest API version.
2926

30-
- $ <%= config.bin %> <%= command.id %> -m CustomObject -o [email protected] -f /path/to/outputfilename.txt
27+
# flags.output-file.summary
3128

32-
# flags.api-version
29+
Pathname of the file in which to write the results.
3330

34-
API version to use
31+
# flags.metadata-type.summary
3532

36-
# flags.output-file
33+
Metadata type to be retrieved, such as CustomObject; metadata type names are case-sensitive.
3734

38-
path to the file where results are stored
35+
# flags.folder.summary
3936

40-
# flags.metadatatype
37+
Folder associated with the component; required for components that use folders; folder names are case-sensitive.
4138

42-
metadata type to be retrieved, such as CustomObject; metadata type value is case-sensitive
39+
# flags.folder.description
4340

44-
# flags.folder
45-
46-
folder associated with the component; required for components that use folders; folder names are case-sensitive
47-
48-
# flagsLong.apiversion
49-
50-
The API version to use. The default is the latest API version
51-
52-
# flagsLong.output-file
53-
54-
The path to the file where the results of the command are stored. The default output destination is the console.
55-
56-
# flagsLong.metadatatype
57-
58-
The metadata type to be retrieved, such as CustomObject or Report. The metadata type value is case-sensitive.
59-
60-
# flagsLong.folder
61-
62-
The folder associated with the component. This parameter is required for components that use folders, such as Dashboard,
63-
Document, EmailTemplate, or Report. The folder name value is case-sensitive.
41+
Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
6442

6543
# noMatchingMetadata
6644

67-
No metadata found for type: %s in org: %s
45+
No metadata found for type: %s in org: %s.

src/commands/org/list/metadata.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,26 @@ export class ListMetadata extends SfCommand<ListMetadataCommandResult> {
2525
'api-version': Flags.orgApiVersion({
2626
aliases: ['apiversion', 'a'],
2727
deprecateAliases: true,
28-
summary: messages.getMessage('flags.api-version'),
28+
summary: messages.getMessage('flags.api-version.summary'),
2929
}),
3030
loglevel,
3131
'target-org': requiredOrgFlagWithDeprecations,
3232
'output-file': Flags.file({
3333
aliases: ['resultfile'],
3434
deprecateAliases: true,
3535
char: 'f',
36-
summary: messages.getMessage('flags.output-file'),
36+
summary: messages.getMessage('flags.output-file.summary'),
3737
}),
3838
'metadata-type': Flags.string({
3939
aliases: ['metadatatype'],
4040
deprecateAliases: true,
4141
char: 'm',
42-
summary: messages.getMessage('flags.metadatatype'),
43-
description: messages.getMessage('flagsLong.metadatatype'),
42+
summary: messages.getMessage('flags.metadata-type.summary'),
4443
required: true,
4544
}),
4645
folder: Flags.string({
47-
summary: messages.getMessage('flags.folder'),
48-
description: messages.getMessage('flagsLong.folder'),
46+
summary: messages.getMessage('flags.folder.summary'),
47+
description: messages.getMessage('flags.folder.description'),
4948
}),
5049
};
5150

0 commit comments

Comments
 (0)