Skip to content
Docs

CLI reference

The binary is launchset. Run it with npx launchset <command>, or install the package and run launchset <command>. It needs Node 24 or newer.

The sections below are generated from the CLI itself: the text in each box is the output of launchset <command> --help.

Command Use it to
init Set up a repo.
add Create a changeset.
status See pending changes and the next version.
version Apply the pending changesets locally.
plan Print the release plan.
stamp Write version and build number into a target’s files.
verify Ask a store, registry or npm whether the build exists.
mark Record that a target shipped.
ship Prepare a manual target for a hand-made build.
finalize Create the release tag and GitHub Release.
hotfix Create a maintenance branch.
check Run the PR check.

The action in your workflows runs check, stamp, verify, mark, finalize and add through the same code as these commands, so you can run them by hand too (the ones that touch GitHub need a token). Three action commands have no CLI command: release (opens the release PR and decides the mode), preview-plan (plans a preview and, on prerelease branches, reserves the tag) and preview-comment (the sticky preview comment and the GitHub pre-release). The CLI’s launchset plan and launchset plan --preview are the dry runs of the first two: they print the plan and change nothing. See the action reference.

Usage: launchset [options] [command]
Changesets-style releases for lock-step monorepos: one version, many targets.
Options:
-V, --version print the launchset version
--cwd <dir> run in this directory (default: the nearest folder with a
launchset config)
--json print JSON on stdout (logs go to stderr)
--yes never ask; accept defaults
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN /
$GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab;
default: from the origin remote)
-h, --help display help for command
Commands:
init [options] Set up a repo: detect versions and targets, write the config, CI
files (GitHub workflows or GitLab CI) and README.
add [options] Create a changeset: the bump (major, minor, patch) and a summary
for the changelog.
status [options] Show pending changesets, the next version, the last release and
anything unfinished.
version [options] Apply the pending changesets locally (what the release PR commit
does).
plan [options] Print the release plan (mode, matrix, version, build number) as
JSON. Writes nothing.
release [options] Decide the release mode and update (or close) the release PR/MR.
`plan` is the dry run.
preview-plan [options] Plan a preview build and reserve its prerelease tag. `plan
--preview` is the dry run.
preview-comment [options] Post the preview results (a sticky comment, or the prerelease
notes).
preview-sweep [options] GitLab: start an MR pipeline for MRs that just got the preview
label (run it on a schedule).
stamp [options] Write the version and build number into one target's files (never
committed).
verify [options] Check the stores and registries: is this version and build number
already published?
mark [options] Create and push the marker tag for a target (for a manual target:
--version).
ship [options] Prepare a manual target for a hand-made build of a released
version, then stamp it.
finalize [options] Create the release tag and the GitHub (or GitLab) release once
every target is built.
hotfix [options] <major.minor> Create a maintenance branch for a released <major>.<minor> line.
check [options] Run the PR check: is there a valid changeset? (--push: the
pre-push hook warning.)
help [command] display help for command
Every command works without prompts when stdin is not a terminal. Add --json for machine-readable output.
Docs: https://demonsters.github.io/launchset/

Rules that hold for every command:

  • Nothing asks a question when stdin is not a terminal, or when --yes or --json is given. A command that needs an answer then says which flag to pass.
  • --json prints JSON on stdout and sends logs and warnings to stderr.
  • The exit code is 0 on success, 1 when the command failed and 2 for wrong usage (an unknown command or flag).
  • --cwd <dir> sets the repo root. Without it, launchset uses the nearest parent folder that has a launchset.config.* file. init has no config yet, so it defaults to the git repository root (CI configuration only runs from there: GitHub workflows, .gitlab-ci.yml) and says so when that isn’t the folder you ran it in.
  • GitHub-facing commands take a token from --token, then LAUNCHSET_TOKEN, then GITHUB_TOKEN, and the repository from --repo, then GITHUB_REPOSITORY, then the origin remote.
  • --plan takes the plan JSON itself, @file.json, or reads LAUNCHSET_PLAN.
  • --ci (default: on when GITLAB_CI=true; --no-ci turns it off) is accepted by every command that produces outputs: release, plan, preview-plan, preview-comment, preview-sweep, stamp, verify, mark, finalize, check, ship and status. See CI output files below.
  • Colors are only used in a terminal, and never when NO_COLOR is set. LAUNCHSET_DEBUG=1 prints stack traces.

A CI runner without the GitHub Action gets a command’s results as files, written to the working directory after the command ran (also when it failed, not when it crashed):

  • plan.json (LAUNCHSET_PLAN_FILE): the plan JSON, written when the command produced a plan. Pass it on with --plan @plan.json.
  • launchset.env (LAUNCHSET_DOTENV): GitLab artifacts:reports:dotenv format, one NAME=value per line. Values with a line break are left out. GitLab accepts at most 5 KB and (by default) 20 variables in a dotenv report; release, whose file the GitLab templates upload as one, warns when it is over that.
  • launchset.sh (LAUNCHSET_SHELL_ENV): the same variables as export NAME='value' lines, including multi-line values. Run launchset stamp --target web --plan @plan.json --ci, then . ./launchset.sh as the next script line, and later lines see $LAUNCHSET_VERSION. Keep them two lines, not a && b: CI shells run with set -e, which ignores a failure on the left of &&.

Every output except plan becomes LAUNCHSET_ plus its name in upper snake case: already-published is LAUNCHSET_ALREADY_PUBLISHED, build-number is LAUNCHSET_BUILD_NUMBER, release-sha is LAUNCHSET_RELEASE_SHA. The exported variables of stamp and ship (LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER, LAUNCHSET_CHANNEL) are added as they are and win on a clash.

Commands that run in one job (stamp, then verify, then mark) merge into the same files: variables a command sets are replaced, the others stay. With --ci the job summary is printed after the result lines (on stderr with --json), and these files (also a plan.json from a parent job’s artifacts) don’t count as uncommitted changes for the commands that need a clean working tree.

Sets up a repo: finds versions and native projects, writes launchset.config.ts, .launchset/README.md, the three workflows and a CHANGELOG.md if there is none, retires release machinery that conflicts with launchset, and converts .changeset/*.md files. It refuses to run when a launchset config already exists.

In a terminal it asks the open questions. With --yes it accepts every default. --detect --json writes nothing and prints what it found plus the list of decisions, so an agent can ask a human and then run init --yes --decide <id>=<value>. See Migrating to launchset for the decision ids.

Usage: launchset init [options]
Set up a repo: detect versions and targets, write the config, CI files (GitHub workflows or GitLab
CI) and README.
Options:
--cwd <dir> set up this folder (default: the git repo root; CI configuration only runs
from the root: GitHub workflows, .gitlab-ci.yml)
--yes Accept the default for every decision that isn't given; never prompt.
--decide <id=value> Answer a decision: --decide <id>=<value> (repeatable). See --detect --json
for the ids.
--detect Only detect: print what was found and the decisions, write nothing.
--json Print JSON.
--convert-only Only convert .changeset/*.md files into .launchset/ (e.g. on a Changesets
pre-mode branch).
--baseline Mark the canonical version as released (baseline in the config): the first
release workflow run after the merge creates its release tag.
--no-baseline do not: Mark the canonical version as released (baseline in the config): the
first release workflow run after the merge creates its release tag.
--skill Install the launchset agent skill and the AGENTS.md section.
--no-skill do not: Install the launchset agent skill and the AGENTS.md section.
--hook Add `launchset check --push` to the existing pre-push hook (simple-git-hooks,
husky, lefthook).
--no-hook do not: Add `launchset check --push` to the existing pre-push hook
(simple-git-hooks, husky, lefthook).
-h, --help display help for command
Example:
$ launchset init --detect --json # what would init do? writes nothing
$ launchset init --yes --decide version=1.4.0

Creates a changeset in .launchset/ with a random three-word name and prints its path. In a terminal, launchset add asks for the bump and the summary. In scripts pass --bump and --message, or --empty for a change that needs no release.

Usage: launchset add [options]
Create a changeset: the bump (major, minor, patch) and a summary for the changelog.
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--yes never ask; accept defaults
--bump <type> bump type (choices: "none", "patch", "minor", "major")
-m, --message <text> summary for the changelog
--empty a change that needs no release (bump: none)
-h, --help display help for command
Example:
$ launchset add --bump minor --message "Add dark mode"
$ launchset add --empty
$ launchset add # asks, in a terminal

Shows the pending changesets, the next version, the last release, unfinished releases, the last shipped version of every manual target and whether the version files agree. Warns when there are commits since the last release but no changeset at all. With --require-changeset it exits 1 unless a changeset was added or changed compared with --since (default origin/<base branch>).

Usage: launchset status [options]
Show pending changesets, the next version, the last release and anything unfinished.
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from
the origin remote)
--require-changeset exit 1 unless a changeset was added or changed compared with --since
--since <ref> base ref for --require-changeset (default: origin/<base branch>)
--no-fetch don't fetch tags first
-h, --help display help for command
Example:
$ launchset status --json
$ launchset status --require-changeset --since origin/main
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).

Applies the pending changesets in your working tree: bumps the version, stamps the marketing version into every target’s files, adds the changelog section and deletes the changesets. This is what the release PR commit does. Use --dry-run to see the diff first.

Usage: launchset version [options]
Apply the pending changesets locally (what the release PR commit does).
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from the
origin remote)
--dry-run print the diff, write nothing
--no-fetch don't fetch tags first
-h, --help display help for command
Example:
$ launchset version --dry-run

Prints the plan as JSON and writes nothing: the mode (publish, ship, release-pr or none), the matrix, the version and the build number. With --preview it plans a preview build instead. That is a dry run: on a prerelease branch it shows the version the next prerelease would get, but reserves no tag (only the action’s preview-plan does), so the real run may pick a higher number. Outside CI a preview needs --run-number.

Usage: launchset plan [options]
Print the release plan (mode, matrix, version, build number) as JSON. Writes nothing.
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from
the origin remote)
--preview plan a preview build instead (a dry run: prerelease tags are not reserved)
--target <names> a manual target to ship; with --preview: targets to build (comma separated,
or all)
--version <version> with --target: the released version to ship
--force with --target: allow a version lower than the target's highest marker
--attempt <n> with --target: the attempt part (1 to 99) of a semver build number, for
another upload of the same version
--branch <name> plan for this branch (default: the current branch)
--run-number <n> with --preview: the run number (default: $GITHUB_RUN_NUMBER, on GitLab
$CI_PIPELINE_IID)
--no-fetch don't fetch tags first
--gitlab [file] write the GitLab child pipeline for the plan to <file> (default:
launchset-child.yml) and print the plan JSON as usual; with -, print the
child pipeline on stdout instead of the plan JSON
-h, --help display help for command
Example:
$ launchset plan > plan.json
$ launchset plan --preview
$ launchset plan --gitlab -
$ launchset plan --gitlab child.yml
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_MODE, LAUNCHSET_MATRIX, LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER, LAUNCHSET_CHANNEL, LAUNCHSET_RELEASE_SHA, ...

Decides the release mode from the pending changesets and the tags, then acts on it: opens or updates the release PR/MR, or closes it when nothing is pending. The plan command is the dry run. For a manual target, --target and --version plan a hand-made build. This is what the action’s release command does.

Usage: launchset release [options]
Decide the release mode and update (or close) the release PR/MR. `plan` is the dry run.
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from
the origin remote)
--target <name> a manual target to ship
--version <version> with --target: the released version to ship
--force with --target: allow a version lower than the target's highest marker
--attempt <n> with --target: the attempt part (1 to 99) of a semver build number, for
another upload of the same version
--branch <name> release for this branch (default: the current branch)
--no-fetch don't fetch tags first
-h, --help display help for command
Example:
$ launchset release --ci
$ launchset release --target ios --version 1.5.0
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_MODE, LAUNCHSET_MATRIX, LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER, LAUNCHSET_CHANNEL, LAUNCHSET_RELEASE_SHA, LAUNCHSET_TAG, LAUNCHSET_DIST_TAG, LAUNCHSET_PR_NUMBER, ...

Plans a preview build and, on a prerelease branch, reserves the prerelease tag by pushing it. plan --preview is the dry run. --target lists the targets of a manual run (comma separated, or all). The plan is skipped (with a reason) when there is nothing to preview.

Usage: launchset preview-plan [options]
Plan a preview build and reserve its prerelease tag. `plan --preview` is the dry run.
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI is
true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from the
origin remote)
--target <names> targets to build for a manual run (comma separated, or all)
--no-fetch don't fetch tags first
-h, --help display help for command
Example:
$ launchset preview-plan --ci
$ launchset preview-plan --target web,android
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_MATRIX, LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER, LAUNCHSET_CHANNEL, LAUNCHSET_PRERELEASE, LAUNCHSET_RELEASE_SHA, LAUNCHSET_TAG, LAUNCHSET_SKIPPED, ...

Posts the preview results: the sticky PR comment, or the prerelease notes on a prerelease branch. Pass the plan from preview-plan. An empty or missing plan means the preview was skipped, and nothing is posted. On GitLab it runs as the last job of the preview’s child pipeline.

Usage: launchset preview-comment [options]
Post the preview results (a sticky comment, or the prerelease notes).
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from
the origin remote)
--plan <json|@file> the preview plan (default: $LAUNCHSET_PLAN; empty or a missing @file: nothing
to report)
-h, --help display help for command
Example:
$ launchset preview-comment --plan @plan.json
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_COMMENT_URL, LAUNCHSET_RELEASE_URL

GitLab only. Starts a merge request pipeline for each open MR that got the preview label since its last MR pipeline for the head commit, so its preview builds without a push (GitLab starts no pipeline when a label is added). Runs in a pipeline schedule with LAUNCHSET_PREVIEW_SWEEP=true; see Previews on GitLab. Starts at most --max pipelines (default 10), oldest label first, skips fork MRs and the release MR, and reports every MR. --dry-run only reports. Exits 1 when a pipeline couldn’t be started (the others are still started). Needs LAUNCHSET_TOKEN, and refuses when preview.rebuildOnPush is false.

Usage: launchset preview-sweep [options]
GitLab: start an MR pipeline for MRs that just got the preview label (run it on a schedule).
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI is
true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from the
origin remote)
--dry-run report the MRs that need a pipeline, start none
--max <n> pipelines to start at most, oldest label first (default: 10)
-h, --help display help for command
Example:
$ launchset preview-sweep --dry-run
$ launchset preview-sweep --max 5 --json

Writes the version and build number into one target’s files in the current checkout. Nothing is committed. In CI the action runs this for you. By hand, give it a plan or --version.

Usage: launchset stamp [options]
Write the version and build number into one target's files (never committed).
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--target <name> target name from the config
--plan <json|@file> the plan (default: $LAUNCHSET_PLAN)
--version <version> without a plan: the version to write
--build-number <n> without a plan: the build number
--channel <channel> without a plan: release, prerelease or preview (choices: "release",
"prerelease", "preview")
-h, --help display help for command
Example:
$ launchset stamp --target android --version 1.5.0 --build-number 217000000
$ launchset stamp --target web --plan @plan.json
$ launchset stamp --target web --plan @plan.json --ci
$ . ./launchset.sh
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER, LAUNCHSET_CHANNEL, LAUNCHSET_MARKETING_VERSION, LAUNCHSET_RELEASE_SHA, ...

Asks the store, registry or npm whether this version and build number is already published (see verify on the target). It prints already-published and fails when the store already has a higher build number.

Usage: launchset verify [options]
Check the stores and registries: is this version and build number already published?
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--target <name> target name from the config
--plan <json|@file> the plan (default: $LAUNCHSET_PLAN)
-h, --help display help for command
Example:
$ launchset verify --target docker-api --plan @plan.json
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_ALREADY_PUBLISHED, LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER, ...

Creates and pushes the marker tag launchset/<target>@<version> that records one target shipped. For a manual target you shipped by hand, pass --version (and --build-number). It needs a token that can push.

Usage: launchset mark [options]
Create and push the marker tag for a target (for a manual target: --version).
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from
the origin remote)
--target <name> target name from the config
--plan <json|@file> the plan (default: $LAUNCHSET_PLAN)
--version <version> a released version shipped by hand (manual targets)
--build-number <n> with --version: the build number that shipped
-h, --help display help for command
Example:
$ launchset mark --target ios --version 1.5.0 --build-number 217000000
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_VERSION, LAUNCHSET_RELEASE_SHA

Prepares a manual target for a build you make yourself: checks that HEAD is at the release tag of the version, computes a build number and stamps the target’s files. After the upload, run launchset mark. For a target with the semver build-number strategy, --attempt sets the attempt part of the number (1 outside CI), so another upload of the same version gets a new one.

Usage: launchset ship [options]
Prepare a manual target for a hand-made build of a released version, then stamp it.
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from
the origin remote)
--target <name> a manual target from the config
--version <version> the released version (default: the latest release)
--force allow a version lower than the target's highest marker
--attempt <n> semver targets only: the attempt part of the build number (1 to 99, default
1), for another upload of the same version
--no-fetch don't fetch tags first
-h, --help display help for command
Example:
$ launchset ship --target ios --json
$ launchset ship --target ios --attempt 2
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER, LAUNCHSET_CHANNEL, LAUNCHSET_MARKETING_VERSION, ...

Creates the release tag and the GitHub Release once every auto target has a marker on the release commit. Also marks superseded releases as partial and opens the changelog backport PR after a maintenance release. It fails and lists the missing targets when the release is incomplete.

Usage: launchset finalize [options]
Create the release tag and the GitHub (or GitLab) release once every target is built.
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI
is true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from
the origin remote)
--plan <json|@file> the plan (default: $LAUNCHSET_PLAN)
--no-fetch don't fetch tags first
-h, --help display help for command
Example:
$ launchset finalize --plan @plan.json --token $GITHUB_TOKEN
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_VERSION, LAUNCHSET_TAG, LAUNCHSET_PR_NUMBER, ...

Creates the maintenance branch release/<major>.<minor>.x at the latest release tag of that line and pushes it. It fails when the branch exists or the line has no release.

Usage: launchset hotfix [options] <major.minor>
Create a maintenance branch for a released <major>.<minor> line.
Arguments:
major.minor the version line, e.g. 1.4
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from the
origin remote)
--no-fetch don't fetch tags first
-h, --help display help for command
Example:
$ launchset hotfix 1.4

Runs the PR check: a valid changeset, no invalid changesets, no version mismatch and, on a maintenance branch, only patch or none. In a workflow it also posts the sticky PR comment. --push is for a pre-push hook: it only warns, and never fails.

Usage: launchset check [options]
Run the PR check: is there a valid changeset? (--push: the pre-push hook warning.)
Options:
--cwd <dir> run in this directory (default: the nearest folder with a launchset config)
--json print JSON on stdout (logs go to stderr)
--ci write plan.json, launchset.env and launchset.sh (default: on when $GITLAB_CI is
true)
--no-ci don't write the CI output files
--token <token> token (default: $LAUNCHSET_TOKEN, then $GITHUB_TOKEN / $GITLAB_TOKEN)
--repo <path> repository path (owner/repo, or group/sub/project on GitLab; default: from the
origin remote)
--base <ref> compare against this ref (default: the PR's base commit)
--push pre-push hook mode: warn when a changeset is missing, never fail
--no-comment don't post the sticky PR comment
--no-fetch don't fetch tags first (--push never fetches)
-h, --help display help for command
Example:
$ launchset check --base origin/main
$ launchset check --push
In --ci mode also writes plan.json, launchset.env and launchset.sh (see docs).
Variables: LAUNCHSET_PR_NUMBER