diff --git a/changelog/fragments/alias-run-packagemanifests.yaml b/changelog/fragments/alias-run-packagemanifests.yaml new file mode 100644 index 0000000000..04e970d6c7 --- /dev/null +++ b/changelog/fragments/alias-run-packagemanifests.yaml @@ -0,0 +1,3 @@ +entries: + - description: Alias `run packagemanifests` as `run pm` + kind: addition diff --git a/cmd/operator-sdk/run/packagemanifests/packagemanifests.go b/cmd/operator-sdk/run/packagemanifests/packagemanifests.go index 184fb44e9a..93221439e1 100644 --- a/cmd/operator-sdk/run/packagemanifests/packagemanifests.go +++ b/cmd/operator-sdk/run/packagemanifests/packagemanifests.go @@ -39,6 +39,7 @@ func NewCmd() *cobra.Command { Short: "Deploy an Operator in the package manifests format with OLM", Long: `'run packagemanifests' deploys an Operator's package manifests with OLM. The command's argument must be set to a valid package manifests root directory, ex. '/packagemanifests'.`, + Aliases: []string{"pm"}, RunE: func(cmd *cobra.Command, args []string) error { if len(args) > 0 { if len(args) > 1 {