You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cella): replace flag-based create with apply -f <manifest.yaml>
The Sandbox Manifest (sandbox spec 81) is now the only path for
spinning up a Cella from the CLI. The old flag-soup
`latere cella create --name --image --tier --disk --cpu --memory
--auto-stop-minutes --auto-delete-hours --ttl --env --credential
--policy` is gone in favour of a single command:
latere cella apply -f sandbox.yaml
The CLI does no schema work. It reads the file (or stdin), POSTs
the raw bytes to /v1/sandboxes with
Content-Type: application/yaml, and surfaces the server's
response verbatim. The same body the dashboard's YAML tab and a
curl -H 'Content-Type: application/yaml' send.
Help text, root examples, the policy-sidecar error message, and
the CLI's own docs/cella.md README now teach apply as the
canonical path. Tests rewritten: the legacy --image default test
deleted, four new tests pin the apply-only flag surface, a
round-trip wire test, a stdin path, and the 64 KiB body cap.
Towards sandbox spec 82 / 83 promises (the CLI side users see
the docs and landing page point at).
Copy file name to clipboardExpand all lines: internal/api/client.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ func (e *APIError) Error() string {
201
201
ife.Code=="policy_sidecar_required" {
202
202
return"cannot create cella: the selected policy requires Cella's credential sidecar, but the server has no complete sidecar configuration for this CLI token.\n"+
203
203
"This is not a local command syntax problem. Re-run `latere auth login` with the latest CLI, then retry.\n"+
204
-
"To choose another policy, run `latere cella policy list` and retry with `latere cella create --policy <name>` using a selectable policy where sidecar is `no`.\n"+
204
+
"To choose another policy, run `latere cella policy list` and set `spec.policy` in your Manifest to a selectable policy where sidecar is `no`.\n"+
205
205
"If no such policy is available, ask your Latere admin/support to configure the CLI sidecar client or assign a non-sidecar policy.\n"+
fmt.Fprintln(os.Stdout, "No policy profiles are visible to this token.")
383
-
fmt.Fprintln(os.Stdout, "Ask your Latere admin to assign a selectable policy, then retry `latere cella create --policy <name>`.")
367
+
fmt.Fprintln(os.Stdout, "Ask your Latere admin to assign a selectable policy, then re-run `latere cella apply` with `spec.policy` set in your Manifest.")
0 commit comments