|
1 | 1 | # description |
2 | 2 |
|
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. |
7 | 4 |
|
8 | 5 | # summary |
9 | 6 |
|
10 | | -display properties of metadata components of a specified type |
| 7 | +List the metadata components and properties of a specified type. |
11 | 8 |
|
12 | 9 | # examples |
13 | 10 |
|
14 | | -- $ <%= config.bin %> <%= command.id %> -m CustomObject |
| 11 | +- List the CustomObject components, and their properties, in the org with alias "my-dev-org": |
15 | 12 |
|
16 | | -- $ <%= config.bin %> <%= command.id %> -m CustomObject -a 43.0 |
| 13 | + $ <%= config.bin %> <%= command.id %> --metadata-type CustomObject --target-org my-dev-org |
17 | 14 |
|
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: |
19 | 16 |
|
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 |
21 | 18 |
|
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: |
23 | 20 |
|
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 |
25 | 22 |
|
26 | | -- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername -o [email protected] |
| 23 | +# flags.api-version.summary |
27 | 24 |
|
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. |
29 | 26 |
|
30 | | -- $ <%= config.bin %> <%= command.id %> -m CustomObject -o [email protected] -f /path/to/outputfilename.txt |
| 27 | +# flags.output-file.summary |
31 | 28 |
|
32 | | -# flags.api-version |
| 29 | +Pathname of the file in which to write the results. |
33 | 30 |
|
34 | | -API version to use |
| 31 | +# flags.metadata-type.summary |
35 | 32 |
|
36 | | -# flags.output-file |
| 33 | +Metadata type to be retrieved, such as CustomObject; metadata type names are case-sensitive. |
37 | 34 |
|
38 | | -path to the file where results are stored |
| 35 | +# flags.folder.summary |
39 | 36 |
|
40 | | -# flags.metadatatype |
| 37 | +Folder associated with the component; required for components that use folders; folder names are case-sensitive. |
41 | 38 |
|
42 | | -metadata type to be retrieved, such as CustomObject; metadata type value is case-sensitive |
| 39 | +# flags.folder.description |
43 | 40 |
|
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. |
64 | 42 |
|
65 | 43 | # noMatchingMetadata |
66 | 44 |
|
67 | | -No metadata found for type: %s in org: %s |
| 45 | +No metadata found for type: %s in org: %s. |
0 commit comments