Skip to content

v0.5.0

Choose a tag to compare

@weppos weppos released this 08 Apr 09:21
v0.5.0
8a53df6

Changelog

Added

  • Named authentication contexts: auth login now stores credentials under a named context (kubectl-style), auth list shows all stored contexts with the active one highlighted, auth switch selects the active context by name or account ID (with an interactive picker when called with no arguments), and auth logout --name <name> removes a specific context. Multiple production and sandbox contexts can coexist. A new --context <name> global flag provides stateless per-invocation overrides: run a command against a stored context without changing the active selection, intended for agents and parallel shells. (dnsimple/cli#28)
  • auth login masks token input on a TTY when reading interactively. (dnsimple/cli#28)

Changed

  • Credentials file (credentials.yml) now stores a list of named contexts instead of a host-keyed map. Existing files using the legacy hosts: schema are migrated automatically and in place on first load. (dnsimple/cli#28)
  • Field-by-field resolution chain: --token, --account, --sandbox, and --context each fall back independently to environment variables and then to the active stored context, so a single override does not require respecifying the others. (dnsimple/cli#28)
  • Resource-level destructive commands such as delete and unapply now prompt for confirmation in interactive terminals and require --yes in non-interactive use. (dnsimple/cli#29)

Fixed

  • domains delete now preflights the domain state and requires stronger acknowledgment before deleting a registered domain, because the operation downgrades it to hosted and permanently loses registration metadata. (dnsimple/cli#16)
  • --format now evaluates templates against the underlying resource data for wrapper-backed commands such as domains get and domains list, so templates like {{.Name}} and {{range .}}{{.Name}}{{end}} work as expected. (dnsimple/cli#17)
  • auth switch now validates that the requested account is accessible with the current token, instead of silently storing any value. (dnsimple/cli#25)
  • auth status now reports the resolved default account (the one commands actually use) instead of the token's bound account from whoami. (dnsimple/cli#25)
  • auth status now reflects the active context's environment when the active context is sandbox without --sandbox being passed on the command line. (dnsimple/cli#28)
  • analytics query now renders only the columns that match the requested --groupings (plus VOLUME), validates supported grouping keys (zone_name, date) before calling the API, and rejects unknown values with a clear error. (dnsimple/cli#21)