Skip to main content

Usage

phala self <subcommand> [options]

Subcommands

self update

Update the Phala CLI to the latest version.

Options

FlagShortDefaultDescription
--json-jfalseOutput result in JSON format
--yes-yfalseSkip confirmation prompt
--dry-runfalsePrint update command without executing
--package-managerauto-detectOverride package manager (npm, pnpm, yarn, bun)
--channellatestRelease channel/dist-tag (e.g. latest, beta, next)

Environment Variables

VariableDescription
PHALA_UPDATE_CHANNELSet the release channel (alternative to —channel flag)

Examples

$ phala self update
$ phala self update --yes
$ phala self update --channel beta
$ phala self update --dry-run
$ phala self update --package-manager pnpm
$ PHALA_UPDATE_CHANNEL=beta phala self update