Skip to content

fix(cli): make --custom-app-id work correctly in deploy command#154

Merged
Leechael merged 2 commits intomainfrom
fix/cli-custom-app-id
Jan 24, 2026
Merged

fix(cli): make --custom-app-id work correctly in deploy command#154
Leechael merged 2 commits intomainfrom
fix/cli-custom-app-id

Conversation

@Leechael
Copy link
Collaborator

Summary

  • Fixed --custom-app-id option not being added to the provision payload
  • Added --nonce option for deterministic app_id generation (required for PHALA KMS)
  • For ETHEREUM/BASE KMS, --custom-app-id works without --nonce
  • Added validation with appropriate error messages
  • Added comprehensive test coverage (32 tests)

Test plan

  • Unit tests pass (bun test src/commands/deploy/handler.test.ts)
  • Manual test with ETHEREUM/BASE KMS: phala deploy -c docker-compose.yml --custom-app-id <id> --kms ethereum --private-key <key> --rpc-url <url>
  • Manual test with PHALA KMS: phala deploy -c docker-compose.yml --custom-app-id <id> --nonce <nonce> --kms phala

The --custom-app-id option was defined but never added to the provision
payload. This fix:

- Adds app_id to the provision payload when --custom-app-id is specified
- Adds --nonce option for PHALA KMS (required with --custom-app-id)
- For ETHEREUM/BASE KMS, --custom-app-id works without --nonce
- Adds validation for nonce to ensure it's a valid number
- Adds validation and appropriate error messages
- Adds comprehensive test coverage for all combinations
@Leechael Leechael force-pushed the fix/cli-custom-app-id branch from 906c2ab to ba64170 Compare January 23, 2026 23:32
h4x3rotab
h4x3rotab previously approved these changes Jan 23, 2026
@Leechael
Copy link
Collaborator Author

!release cli patch

@github-actions
Copy link
Contributor

🚀 @Leechael release command accepted: cli patch.

Target branch: fix/cli-custom-app-id (open PR). Version commits will be pushed to this branch.
The release workflow is queued; results will be posted here.

@github-actions
Copy link
Contributor

🎉 Release completed: cli v1.1.5

📦 Package Info

  • Package size: size: 202.5
  • Unpacked size: size: 693.2
  • Total files: files:
📄 Files included
11.4kB LICENSE
23.7kB README.md
28.3kB dist/api/index.d.ts
125.0kB dist/api/index.js
20B dist/index.d.ts
502.8kB dist/index.js
2.0kB package.json

@Leechael Leechael merged commit f911a28 into main Jan 24, 2026
1 check passed
@Leechael Leechael deleted the fix/cli-custom-app-id branch January 24, 2026 08:19
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.

3 participants