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

Commit

Permalink
Update CLI README.md
Browse files Browse the repository at this point in the history
Add release command
Remove branch parameter from changelog:generate
  • Loading branch information
aly76 committed May 5, 2021
1 parent e07d369 commit da31daf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
40 changes: 37 additions & 3 deletions packages/sfpowerscripts-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ utility_sfpowerscripts_package_version_id=04t2v000007X2YWAA0
- [`sfdx sfpowerscripts:orchestrator:quickbuild`](#sfdx-sfpowerscriptsorchestratorquickbuild)
- [`sfdx sfpowerscripts:orchestrator:build`](#sfdx-sfpowerscriptsorchestratorbuild)
- [`sfdx sfpowerscripts:orchestrator:deploy`](#sfdx-sfpowerscriptsorchestratordeploy)
- [`sfdx sfpowerscripts:orchestrator:release`](#sfdx-sfpowerscriptsorchestratorrelease)
- [`sfdx sfpowerscripts:orchestrator:promote`](#sfdx-sfpowerscriptsorchestratorpromote)
- [`sfdx sfpowerscripts:orchestrator:publish`](#sfdx-sfpowerscriptsorchestratorpublish)

Expand Down Expand Up @@ -509,6 +510,42 @@ EXAMPLE

_See code: [commands/sfpowerscripts/orchestrator/deploy.ts](https://github.com/Accenture/sfpowerscripts/tree/develop/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts)_

## `sfdx sfpowerscripts:orchestrator:release`

Initiate a release to an org, according to the configuration defined in a release-definition YAML file

```
USAGE
$ sfdx sfpowerscripts:orchestrator:release -u <string> [-p <filepath>] [--scope <string> [--npm | -f <filepath>]] [--npmrcpath <filepath> undefined] [-g <array>] [-t <string>] [--waittime <number>] [--keys <string>] [--generatechangelog]
[--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
-f, --scriptpath=scriptpath (Optional: no-NPM) Path to script that authenticates and downloads artifacts from the registry
-g, --logsgroupsymbol=logsgroupsymbol Symbol used by CICD platform to group/collapse logs in the console. Provide an opening group, and an optional closing group symbol.
-p, --releasedefinition=releasedefinition Path to YAML file containing map of packages and package versions to download
-t, --tag=tag Tag the release with a label, useful for identification in metrics
-u, --targetorg=targetorg (required) [default: scratchorg] Alias/User Name of the target environment
--generatechangelog Create a release changelog
--json format output as json
--keys=keys Keys to be used while installing any managed package dependencies. Required format is a string of key-value pairs separated by spaces e.g. packageA:pw123
packageB:pw123 packageC:pw123
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for this command invocation
--npm Download artifacts from a pre-authenticated private npm registry
--npmrcpath=npmrcpath Path to .npmrc file used for authentication to registry. If left blank, defaults to home directory
--scope=scope (required for NPM) User or Organisation scope of the NPM package
--waittime=waittime [default: 120] Wait time for package installation
EXAMPLE
sfdx sfpowerscripts:orchestrator:release -p path/to/releasedefinition.yml -u myorg --npm --scope myscope --generatechangelog
```

_See code: [commands/sfpowerscripts/orchestrator/release.ts](https://github.com/Accenture/sfpowerscripts/tree/develop/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/release.ts)_

## `sfdx sfpowerscripts:orchestrator:promote`

Expand Down Expand Up @@ -601,9 +638,6 @@ USAGE
$ sfdx sfpowerscripts:changelog:generate -d <directory> -n <string> -w <string> -r <string> -b <string> [--limit
<integer>] [--workitemurl <string>] [--showallartifacts]
OPTIONS
-b, --branchname=branchname (required) Repository branch in
which the changelog files are
located
-d, --artifactdir=artifactdir (required) [default: artifacts]
Directory containing sfpowerscripts
Expand Down
2 changes: 1 addition & 1 deletion packages/sfpowerscripts-cli/messages/release.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"commandDescription": "Release artifacts to an org",
"commandDescription": "Initiate a release to an org, according to the configuration defined in a release-definition YAML file",
"releaseDefinitionFlagDescription": "Path to YAML file containing map of packages and package versions to download",
"targetOrgFlagDescription": "Alias/User Name of the target environment",
"scriptPathFlagDescription": "(Optional: no-NPM) Path to script that authenticates and downloads artifacts from the registry",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class Release extends SfpowerscriptsCommand {
public static description = messages.getMessage('commandDescription');

public static examples = [
`sfdx sfpowerscripts:orchestrator:release -p path/to/releasedefinition.yml -u myorg --npm --scope myscope`
`sfdx sfpowerscripts:orchestrator:release -p path/to/releasedefinition.yml -u myorg --npm --scope myscope --generatechangelog`
];

protected static requiresUsername = false;
Expand Down

0 comments on commit da31daf

Please sign in to comment.