vakna: "<id>" matches more than one box
Note
This page is generated from a mock CLI, and its numbers are placeholders.
Verified against vakna 0.0.0-mock on · generated from the CLI's own definitions
Use the box's name or its full id; vakna list shows both.
Why does a part of an id match more than one box?
A part of an id addresses a box only while it matches one. Vakna never picks the first of several.
What it looks like
sh
vakna shell sbx_eu1a_01JB -- lsprints vakna: "sbx_eu1a_01JB" matches 7 boxes: api, worker, web, docs, prove-hypothesis-42-0137, prove-hypothesis-42-0588, prove-hypothesis-42-0412
hint: vakna list # use a name, or the full id
Exit code 255.
As JSON
With --format json the error is one JSON line. Branch on its code, not on the message or the exit code.
Output
{"v":1,"event":"error","code":"ambiguous","message":"\"sbx_eu1a_01JB\" matches 7 boxes: api, worker, web, docs, prove-hypothesis-42-0137, prove-hypothesis-42-0588, prove-hypothesis-42-0412","hint":"vakna list # use a name, or the full id","docs":"https://vakna.com/docs/errors/ambiguous","mocked":true}