- Project/component:
thenvCLI contract - Canonical path:
cmds/thenv
- Runtime: Go CLI
- Primary language: Go
- Developers managing
.envsharing and rotation workflows - Security-conscious operators enforcing trust policies
- Stable CLI subcommands are
push,pull,list, androtate. - Secret lifecycle mapping must remain explicit:
push(create/update),pull(read),rotate(version rollover). - Authentication, trust bootstrap, and key management flows must be deterministic.
- Output contracts must align with server API and web console expectations, including audit and policy semantics.
- Stores local trust metadata and encrypted material according to explicit path contracts.
- Uses transient runtime files for safe key exchange and command execution.
- Secrets must be encrypted at rest and protected in transit.
- CLI output and logs must avoid leaking secret values.
- Trust decisions must remain explicit and auditable.
- Use structured
log/sloglogs for CLI command lifecycle and trust boundary events. - Include command name, target workspace, trust context, and sanitized outcome fields.
- Local validation:
go test ./cmds/thenv/... - Repository baseline:
go test ./...
- Integrates with
servers/thenvAPIs. - Integrates with
apps/devkit/src/apps/thenvUX expectations.
- Update
docs/project-thenv.mdand this file when CLI command shape or trust boundaries change. - Keep compatibility synchronized with
docs/servers-thenv-server-foundation.mdanddocs/apps-thenv-web-console-foundation.md.
docs/project-thenv.mddocs/servers-thenv-server-foundation.mddocs/apps-thenv-web-console-foundation.mddocs/domain-template.md