Skip to content

wayglass init

Create the trunk repo in Artifacts and write .wayglass/policy.yaml.

Creates the project and its trunk repo through the Worker, writes .wayglass/policy.yaml (from the built-in example, if missing) and .wayglass/config.yaml, commits them, and pushes HEAD to the trunk with a short-lived trunk token that is never written to disk.

Terminal window
wayglass init [flags]
Flag Default Description
--jurisdiction string us where the project’s repos live (us or eu); tags every change and cannot be changed later
--no-push create the project but do not push HEAD to the trunk
--project string project name (default: current directory name)
--public opt the project in to the public read-only audit view (the Worker’s PUBLIC_PROJECTS must also match it)
Flag Default Description
--json print a JSON envelope for agents (no colour, prompts or spinners)

Exit codes and the --json envelope are the same for every command; see For agents.