octopus release create

Create a release in Octopus Deploy

Usage:
  octopus release create [flags]

Flags:
  -p, --project string              Name or ID of the project to create the release in
  -c, --channel string              Name or ID of the channel to use
  -r, --git-ref string              Git Reference e.g. refs/heads/main. Only relevant for config-as-code projects
      --git-commit string           Git Commit Hash; Specify this in addition to Git Reference if you want to reference a commit other than the latest for that branch/tag.
      --package-version string      Default version to use for all Packages
      --release-notes string        Release notes to attach
      --release-notes-file string   Release notes to attach (from file)
  -v, --version string              Override the Release Version
  -x, --ignore-existing             If a release with the same version exists, do nothing instead of failing.
      --ignore-channel-rules        Allow creation of a release where channel rules would otherwise prevent it.
      --package stringArray         Version specification a specific packages.
                                    Format as {package}:{version}, {step}:{version} or {package-ref-name}:{packageOrStep}:{version}
                                    You may specify this multiple times


Global Flags:
  -h, --help                   Show help for a command
      --no-prompt              Disable prompting in interactive mode
  -f, --output-format string   Specify the output format for a command ("json", "table", or "basic") (default "table")
  -s, --space string           Specify the space for operations

Examples

Octopus Samples instance

Many of the examples we use, reference the samples instance of Octopus Deploy. If you’d like to explore the samples instance, you can log in as a guest.

$ octopus release create --project MyProject --channel Beta --version 1.2.3
$ octopus release create -p MyProject -c Beta -v 1.2.3
$ octopus release create -p MyProject -c default --package "utils:1.2.3" --package "utils:InstallOnly:5.6.7"
$ octopus release create -p MyProject -c Beta --no-prompt

Learn more

Help us continuously improve

Please let us know if you have any feedback about this page.

Send feedback

Page updated on Thursday, February 1, 2024