|
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. |
| 4 | + |
| 5 | +The username that you use to connect to the org must have the Modify All Data or Modify Metadata Through Metadata API Functions permission. |
7 | 6 |
|
8 | 7 | # summary |
9 | 8 |
|
10 | | -display properties of metadata components of a specified type |
| 9 | +List the metadata components and properties of a specified type. |
11 | 10 |
|
12 | 11 | # examples |
13 | 12 |
|
14 | | -- $ <%= config.bin %> <%= command.id %> -m CustomObject |
15 | | - |
16 | | -- $ <%= config.bin %> <%= command.id %> -m CustomObject -a 43.0 |
17 | | - |
18 | | -- $ <%= config.bin %> <%= command.id %> -m CustomObject -o [email protected] |
19 | | - |
20 | | -- $ <%= config.bin %> <%= command.id %> -m CustomObject -f /path/to/outputfilename.txt |
21 | | - |
22 | | -- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername |
23 | | - |
24 | | -- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername -a 43.0 |
25 | | - |
26 | | -- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername -o [email protected] |
27 | | - |
28 | | -- $ <%= config.bin %> <%= command.id %> -m Dashboard --folder foldername -f /path/to/outputfilename.txt |
29 | | - |
30 | | -- $ <%= config.bin %> <%= command.id %> -m CustomObject -o [email protected] -f /path/to/outputfilename.txt |
31 | | - |
32 | | -# flags.api-version |
| 13 | +- List the CustomObject components, and their properties, in the org with alias "my-dev-org": |
33 | 14 |
|
34 | | -API version to use |
| 15 | + $ <%= config.bin %> <%= command.id %> --metadata-type CustomObject --target-org my-dev-org |
35 | 16 |
|
36 | | -# flags.output-file |
| 17 | +- List the CustomObject components in your default org, write the output to the specified file, and use API version 57.0: |
37 | 18 |
|
38 | | -path to the file where results are stored |
| 19 | + $ <%= config.bin %> <%= command.id %> --metadata-type CustomObject --api-version 57.0 --output-file /path/to/outputfilename.txt |
39 | 20 |
|
40 | | -# flags.metadatatype |
| 21 | +- 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: |
41 | 22 |
|
42 | | -metadata type to be retrieved, such as CustomObject; metadata type value is case-sensitive |
| 23 | + $ <%= config.bin %> <%= command.id %> --metadata-type Dashboard --folder folderSales --api-version 57.0 --output-file /path/to/outputfilename.txt |
43 | 24 |
|
44 | | -# flags.folder |
| 25 | +# flags.api-version.summary |
45 | 26 |
|
46 | | -folder associated with the component; required for components that use folders; folder names are case-sensitive |
| 27 | +API version to use; default is the most recent API version. |
47 | 28 |
|
48 | | -# flagsLong.apiversion |
| 29 | +# flags.output-file.summary |
49 | 30 |
|
50 | | -The API version to use. The default is the latest API version |
| 31 | +Pathname of the file in which to write the results. |
51 | 32 |
|
52 | | -# flagsLong.output-file |
| 33 | +# flags.metadata-type.summary |
53 | 34 |
|
54 | | -The path to the file where the results of the command are stored. The default output destination is the console. |
| 35 | +Metadata type to be retrieved, such as CustomObject; metadata type names are case-sensitive. |
55 | 36 |
|
56 | | -# flagsLong.metadatatype |
| 37 | +# flags.folder.summary |
57 | 38 |
|
58 | | -The metadata type to be retrieved, such as CustomObject or Report. The metadata type value is case-sensitive. |
| 39 | +Folder associated with the component; required for components that use folders; folder names are case-sensitive. |
59 | 40 |
|
60 | | -# flagsLong.folder |
| 41 | +# flags.folder.description |
61 | 42 |
|
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. |
| 43 | +Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report. |
64 | 44 |
|
65 | 45 | # noMatchingMetadata |
66 | 46 |
|
67 | | -No metadata found for type: %s in org: %s |
| 47 | +No metadata found for type: %s in org: %s. |
0 commit comments