The handoff between repo create and init --repo is error-prone.
repo create always generates a random 8-character domain (e.g. 7bcf54bf) and prints it in a human-readable message. init --repo needs that exact domain string.
Two problems observed in an agent test session:
-
repo create silently ignores positional arguments. Running prismic repo create my-repo-name doesn't warn that the positional was unused — the domain is still randomly generated. The agent assumed my-repo-name was the domain and passed it to init --repo, which then failed with "Repository not found."
-
The domain is only available in human-readable output. There's no --json flag on repo create to reliably capture the generated domain.
The handoff between
repo createandinit --repois error-prone.repo createalways generates a random 8-character domain (e.g.7bcf54bf) and prints it in a human-readable message.init --reponeeds that exact domain string.Two problems observed in an agent test session:
repo createsilently ignores positional arguments. Runningprismic repo create my-repo-namedoesn't warn that the positional was unused — the domain is still randomly generated. The agent assumedmy-repo-namewas the domain and passed it toinit --repo, which then failed with "Repository not found."The domain is only available in human-readable output. There's no
--jsonflag onrepo createto reliably capture the generated domain.