Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Feature/installsourcepackage #185

Merged
merged 5 commits into from
Oct 26, 2020
Merged
Show file tree
Hide file tree
Changes from 4 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
39 changes: 39 additions & 0 deletions packages/sfpowerscripts-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ utility_sfpowerscripts_package_version_id=04t2v000007X2YWAA0
* [`sfpowerscripts:ExportSource`](#sfpowerscriptsexportsource)
* [`sfpowerscripts:GenerateChangelog [BETA]`](#sfpowerscriptsgeneratechangelog)
* [`sfpowerscripts:IncrementBuildNumber`](#sfpowerscriptsincrementbuildnumber)
* [`sfpowerscripts:InstallSourcePackage`](#sfpowerscriptsinstallsourcepackage)
* [`sfpowerscripts:InstallUnlockedPackage`](#sfpowerscriptsinstallunlockedpackage)
* [`sfpowerscripts:TriggerApexTest`](#sfpowerscriptstriggerapextest)
* [`sfpowerscripts:ValidateApexCoverage`](#sfpowerscriptsvalidateapexcoverage)
Expand Down Expand Up @@ -666,6 +667,44 @@ EXAMPLE
<refname>_sfpowerscripts_incremented_project_version
```

## `sfpowerscripts:InstallSourcePackage`

Installs a sfpowerscripts source package to the target org


```
USAGE
$ sfdx sfpowerscripts:InstallSourcePackage -n <string> -u <string> [--artifactdir <directory>] [-s] [--subdirectory <directory>] [-o] [-t] [--waittime <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
-n, --package=package (required) Name of the package to be installed

-o, --optimizedeployment Optimize deployment by triggering test classes that are in
the package, rather than using the whole tests in the org

-s, --skiponmissingartifact Skip package installation if the build artifact is missing.
Enable this if artifacts are only being created for modified
packages

-t, --skiptesting Skips running test when deploying to a sandbox

-u, --targetorg=targetorg (required) Alias/User Name of the target environment

--artifactdir=artifactdir [default: artifacts] The directory where the artifact is located

--json format output as json

--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for this command invocation

--subdirectory=subdirectory Install specific subdirectory in the package. Useful when package
consists of multiple discrete subdirectories in a single package

--waittime=waittime [default: 120] wait time for command to finish in minutes

EXAMPLE
$ sfdx sfpowerscripts:InstallSourcePackage -n mypackage -u <org>
```


## `sfpowerscripts:InstallUnlockedPackage`
Expand Down
11 changes: 11 additions & 0 deletions packages/sfpowerscripts-cli/messages/install_source_package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commandDescription": "Installs a sfpowerscripts source package to the target org",
"packageFlagDescription": "Name of the package to be installed",
"targetOrgFlagDescription": "Alias/User Name of the target environment",
"artifactDirectoryFlagDescription": "The directory where the artifact is located",
"skipOnMissingArtifactFlagDescription": "Skip package installation if the build artifact is missing. Enable this if artifacts are only being created for modified packages",
"subdirectoryFlagDescription": "Install specific subdirectory in the package. Useful when package consists of multiple discrete sub-packages",
"waitTimeFlagDescription": "wait time for command to finish in minutes",
"optimizedeployment":"Optimize deployment by triggering test classes that are in the package, rather than using the whole tests in the org",
"skiptesting":"Skips running test when deploying to a sandbox"
}
2 changes: 1 addition & 1 deletion packages/sfpowerscripts-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sfpowerscripts-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@dxatscale/sfpowerscripts",
"description": "Simple wrappers around sfdx commands to help set up CI/CD quickly",
"version": "1.0.14",
"version": "1.0.15",
"author": "dxatscale",
"bin": {
"readVars": "./scripts/readVars.sh"
Expand Down
Loading