Skip to main content

Module profile

Module profile 

Source
Expand description

mz-deploy profile {list,set,current} — manage the project’s default profile.

Modeled on kubectl config (contexts). The default profile is recorded per-project and per-developer, so team members can each pick their own default without touching shared configuration. Resolution order for any command: --profile flag, then MZ_DEPLOY_PROFILE, then the recorded project default, then error.

Subcommands:

  • list — every profile defined in profiles.toml, with the currently resolved profile marked (active).
  • set — records <name> as the project default after validating that the profile exists in profiles.toml.
  • current — prints the resolved profile and where it came from (flag, env var, or project default), or reports that no profile has been selected.

Structs§

ProfileEntry 🔒
ProfileListing 🔒
Renderable result for profile list.

Functions§

current
Print the resolved profile and the source it came from.
list
List every profile defined in profiles.toml and mark the active one.
resolve_active 🔒
set
Record name as the project default.