generated from salesforcecli/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support generating a manifest from an org with include and excl…
…ude metadata lists
- Loading branch information
Showing
7 changed files
with
69 additions
and
13 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
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 |
---|---|---|
|
@@ -19,6 +19,8 @@ Use --name to specify a custom name for the generated manifest if the pre-define | |
|
||
To include multiple metadata components, either set multiple --metadata <name> flags or a single --metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double quotes. The same syntax applies to --include-packages and --source-dir. | ||
|
||
To build a manifest from the metadata in an org use the --from-org flag optionally combining it with the --metadata flag to only include certain metadata types, or the --exclude-metadata flag to exclude certain metadata types. When building a manifest from an org, the command makes many API calls concurrently to discover the metadata that exists in the org. To limit the number of concurrent requests use the `SF_LIST_METADATA_BATCH_SIZE` environment variable and set it to a size that works best for your org and environment. If you are experiencing timeouts and/or inconsistent manifest contents then setting this environment variable should improve accuracy. However, the command will take longer to run since it sends fewer requests at a time. | ||
|
||
# examples | ||
|
||
- Create a manifest for deploying or retrieving all Apex classes and custom objects: | ||
|
@@ -37,10 +39,22 @@ To include multiple metadata components, either set multiple --metadata <name> f | |
|
||
$ <%= config.bin %> <%= command.id %> --from-org [email protected] --include-packages unlocked | ||
|
||
- Create a manifest from specific metadata types in an org: | ||
|
||
$ <%= config.bin %> <%= command.id %> --from-org [email protected] --metadata ApexClass,CustomObject,CustomLabels | ||
|
||
- Create a manifest from all metadata components in an org excluding specific metadata types: | ||
|
||
$ <%= config.bin %> <%= command.id %> --from-org [email protected] --exclude-metadata StandardValueSet | ||
|
||
# flags.include-packages.summary | ||
|
||
Package types (managed, unlocked) whose metadata is included in the manifest; by default, metadata in managed and unlocked packages is excluded. Metadata in unmanaged packages is always included. | ||
|
||
# flags.exclude-metadata.summary | ||
|
||
Metadata types (types only; not names) to exclude when building a manifest from an org. | ||
|
||
# flags.from-org.summary | ||
|
||
Username or alias of the org that contains the metadata components from which to build a manifest. | ||
|
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
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 |
---|---|---|
|
@@ -1671,6 +1671,25 @@ | |
cli-progress "^3.12.0" | ||
terminal-link "^3.0.0" | ||
|
||
"@salesforce/[email protected]": | ||
version "12.10.4-dev-17431548.0" | ||
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.4-dev-17431548.0.tgz#3d1214fa7b69c9e4eaf68912cad198d55208b15c" | ||
integrity sha512-tAvqDNp3Oa0QDGhs1rJCOJQYvRO7pfKxzWutjVN2g7fbxn/ej5U5ZX6hKfCp411+NmI7MsN5wUpjQOs185h0mA== | ||
dependencies: | ||
"@salesforce/core" "^8.8.0" | ||
"@salesforce/kit" "^3.2.2" | ||
"@salesforce/ts-types" "^2.0.12" | ||
fast-levenshtein "^3.0.0" | ||
fast-xml-parser "^4.5.0" | ||
got "^11.8.6" | ||
graceful-fs "^4.2.11" | ||
ignore "^5.3.2" | ||
isbinaryfile "^5.0.2" | ||
jszip "^3.10.1" | ||
mime "2.6.0" | ||
minimatch "^9.0.5" | ||
proxy-agent "^6.4.0" | ||
|
||
"@salesforce/source-deploy-retrieve@^12.10.2", "@salesforce/source-deploy-retrieve@^12.7.4": | ||
version "12.10.2" | ||
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.2.tgz#c3737f3751f84cb4754b666edd83c014c91b87bb" | ||
|