Skip to content

feat(cli): add profiles use, rename, delete subcommands#228

Open
Leechael wants to merge 7 commits intomainfrom
feat/profiles-subcommands
Open

feat(cli): add profiles use, rename, delete subcommands#228
Leechael wants to merge 7 commits intomainfrom
feat/profiles-subcommands

Conversation

@Leechael
Copy link
Copy Markdown
Collaborator

@Leechael Leechael commented Apr 3, 2026

Summary

  • Add phala profiles use <name> as alias to phala switch (supports -i interactive mode)
  • Add phala profiles rename <old-name> <new-name> to rename a profile (updates current_profile if renaming active profile)
  • Add phala profiles delete <name> to delete a profile (auto-switches to first remaining profile if deleting active; prints notice)
  • Add renameProfile() utility to credentials.ts

Subcommands appear in phala profiles --help under "Subcommands:" section. phala profiles (no args) continues to show the profile list table unchanged.

Commits

  • feat(cli): add renameProfile utility to credentials
  • feat(cli): add profiles use, rename, delete subcommands

Leechael added 7 commits April 2, 2026 22:38
The replicate command was using getCvmComposeConfig which calls
/cvms/{id}/compose_file — an endpoint that does not return env_pubkey.
This caused "undefined is not an object" when encrypting env vars.

Switch to safeGetCvmInfo + getEncryptPubkey, matching the approach
used by `phala env encrypt`. Remove the unused getCvmComposeConfig
helper and CvmComposeConfigResponse type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant