wayglass login
Store the Worker URL and your Wayglass key.
Stores the Worker URL and key in ~/.config/wayglass/credentials.yaml (mode 0600). The key is the Worker’s admin key or an agent key from ‘wayglass keys create’; an agent key fixes the name the audit log records for you. The key is read from WAYGLASS_KEY or, with –key-stdin, from standard input, never from a flag, so it stays out of shell history and the process list. WAYGLASS_URL and WAYGLASS_KEY override the stored values on every command.
wayglass login [flags]Examples
Section titled “Examples”printf %s "$KEY" | wayglass login --worker https://wayglass.<you>.workers.dev --key-stdin| Flag | Default | Description |
|---|---|---|
--agent string |
name recorded in the audit log for this machine (default user@host) | |
--key-stdin |
read the key from standard input | |
--no-verify |
store without checking the key against the Worker | |
--worker string |
Wayglass Worker URL (https) |
Global flags
Section titled “Global flags”| 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.
See also
Section titled “See also”wayglass: Zero Trust for code changes