Aliases:placements, placementCommands that act on one placement take its ID either as a positional argument or with --id. If you omit it, the CLI opens an interactive picker, so always pass it in scripts.The server-* commands also open a picker for --server if you omit it.
Create a new placement. Accepts input from a JSON file or stdin, with an optional cloud-init configuration for the placed servers.Placements require an SSH certificate authority. Set it in the payload’s spec.serverSpec.sshCertificateAuthorityId field or pass --ssh-ca-id. Use nscale ssh-cas list to find the ID.
Change a placement’s server image or update strategy. The CLI reads the placement, changes only the fields you pass, and writes it back, keeping every other field. Pass --image, --strategy, or both. All other placement fields are fixed after creation.Changing the image marks the placement’s servers as drifted. How they move onto the new image depends on the update strategy:
manual (the default for a new placement): servers keep their current image until you rebuild each one with server-reconcile.
rolling: the service rebuilds drifted servers for you, at most --max-unavailable at a time. --strategy rolling requires --max-unavailable, and --max-unavailable is only accepted with --strategy rolling.
If you omit --strategy, the placement keeps the strategy it already has, so an image change on a rolling placement starts a rollout.
Rebuilding a server onto a new image wipes its local disk. Under rolling, that happens to every server, --max-unavailable at a time, as soon as the update is accepted. Back up anything on local disk before you change the image.
# Roll a new image out, one server at a timenscale placements update <placement-id> --image <image-id> --strategy rolling --max-unavailable 1 --yes# Change the image but rebuild servers yourself with server-reconcilenscale placements update <placement-id> --image <image-id> --strategy manual --yes# Preview the request body without sending itnscale placements update <placement-id> --image <image-id> --dry-run
Rebuild one drifted server onto the placement’s image. The server stays on the same host, but its local disk contents are lost. Use this after an image change under the manualupdate strategy to move servers onto the new image one at a time. If the server already runs the placement’s image, nothing changes.