Skip to content

Commit b8f0f9a

Browse files
authored
Merge pull request #3790 from replicatedhq/alicenstar/sc-133212/release-create-command-should-also-support
update docs with release create --required flag in CLI
2 parents 27bd0cf + 97dec2f commit b8f0f9a

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

docs/reference/replicated-cli-release-create.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ Create a new release by providing application manifests for the next release in
2626
replicated release create [flags]
2727
```
2828

29+
### Examples
30+
31+
```
32+
# Create and promote a release to the Unstable channel
33+
replicated release create --yaml-dir ./manifests --promote Unstable --version 1.0.0
34+
35+
# Create and promote a required release (users cannot skip this upgrade)
36+
replicated release create --yaml-dir ./manifests --promote Unstable --version 1.0.0 --required
37+
38+
# Create a release with auto-generated values (useful in CI/CD)
39+
replicated release create --auto --confirm-auto
40+
```
41+
2942
### Options
3043

3144
```
@@ -38,6 +51,7 @@ replicated release create [flags]
3851
-o, --output string The output format to use. One of: json|table (default "table")
3952
--promote string Channel name (case sensitive) or id to promote this release to
4053
--release-notes string When used with --promote <channel>, sets the **markdown** release notes
54+
--required When used with --promote <channel>, marks this release as required during upgrades.
4155
--version string When used with --promote <channel>, sets the version label for the release in this channel
4256
--yaml-dir string The directory containing multiple yamls for a Kots release. Cannot be used with the --yaml flag.
4357
```

docs/vendor/ci-workflows.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,14 @@ Add a job that promotes the release to a shared internal-only or customer-facing
289289

290290
Consider the following requirements and recommendations:
291291

292-
* Replicated recommends that you include the `--version` flag with the `release promote` command to explicitly declare the version label for the release. Use the same version label that was used when the release was created as part of [Create a release and promote to a temporary channel](#rel-release) above. Although the `--version` flag is not required, declaring the same release version label during promotion provides additional consistency that makes the releases easier to track.
292+
* Replicated recommends that you include the `--version` flag with the `release promote` command to explicitly declare the version label for the release. Use the same version label that was used when the release was created as part of [Create a release and promote to a temporary channel](#rel-release) above. Although the `--version` flag is not required, declaring the same release version label during promotion provides additional consistency that makes the releases easier to track.
293293

294294
* The channel to which the release is promoted depends on the event triggers that you defined for the workflow. For example, if the workflow runs on every commit to the `main` branch, then promote the release to an internal-only channel, such as Unstable. For more information, see [Define Workflow Triggers](#rel-triggers) above.
295295

296296
* Use the `--release-notes` flag to include detailed release notes in markdown.
297297

298+
* For release versions that must not be skipped during upgrades (such as versions that include a required database migration), use the `--required` flag to mark the release as required. This flag can be used with both `release create --promote` and `release promote` commands. For more information about required releases, see [Required Releases](/vendor/releases-about#required-releases) in _About Channels and Releases_.
299+
298300
### Archive the temporary channel and customer {#rel-cleanup}
299301

300302
Finally, add a job to archive the temporary channel and customer that you created. This ensures that these artifacts are removed from your Replicated team and that they do not have to be manually archived after the release is promoted.

docs/vendor/releases-creating-cli.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ To create and promote a release:
7070
* `PATH_TO_RELEASE_DIR` is the path to the directory with the release files.
7171
* `CHANNEL` is the channel ID or the case sensitive name of the channel.
7272

73+
For a complete list of options for the command, see [release create](/reference/replicated-cli-release-create).
74+
7375
* **Create and edit the release before promoting**:
7476

7577
1. Create the release:

0 commit comments

Comments
 (0)