Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,27 @@ release can deliver to devices)
`--version`, `--tag`, `--tag-operator`, `--delta-updatable` and `--notes`
change the group's settings. `--tag ""` and `--version ""` clear a condition.
A new release and setting changes go to the server as separate requests:
settings (and `--state off`) first, then the release, then `--state on`
settings (and `--state off`) first, then the release, then `--state on`.
The release is created with `POST .../releases` on a server that has the
release API, and with the older release `PUT` otherwise (`firmware upload
--deploy` does the same)
- `release list <group>` — the group's releases, newest first: number, current
marker (`*`), firmware version and UUID, archive, required, delta status,
who created it and when
- `release show <group> <number>` — one release, including its description,
notes and connecting code
- `release create <group>` — `--firmware <uuid>` (required), `--archive`,
`--required`, `--description`, `--notes`, `--connecting-code` or
`--connecting-code-file <path>` (`-` for stdin), and
`--connecting-code-mode first|last|override` (where the release's code runs
relative to the group's; the server defaults to `last`). The new release
becomes the current one and has no archive unless `--archive` is given
- `release update <group> <number>` — `--required` or `--required=false`,
`--connecting-code`, `--connecting-code-file` or `--clear-connecting-code`,
and `--connecting-code-mode`. A release's firmware, archive, description and
notes can't change once it's made
- The `release` commands need a NervesHub server with the deployment release
API; on an older server they fail with a message saying to upgrade

**`nh key`** — manage firmware signing keys (see [Signing key schemes](#signing-key-schemes))
- `list`, `show <name>` — include each key's `scheme`; for an RSA key the Secure
Expand Down
8 changes: 7 additions & 1 deletion cmd/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,13 @@ change the group's own settings. --tag replaces the tag list, and --tag "" or
The server applies a new release and setting changes in separate requests, so
nh sends them one after another: the settings (including --state off) first,
then the new release, and --state on last. That way a release never reaches
devices outside the new conditions, or a group that's being turned off.`,
devices outside the new conditions, or a group that's being turned off.

On a server with the deployment release API the new release is created there,
as "nh deployment release create" does; an older server gets the release
request it has always taken. To create a release with a description, notes
or connecting code, or to change one once it's made, use
"nh deployment release".`,
Args: exactlyOneArg(
"deployment name missing",
"too many arguments: provide a single deployment name",
Expand Down
Loading
Loading