4

Is it possible to upgrade a program using anchor deploy without having it's program keypair but being the program upgrade authority?

1 Answer 1

5

Yes, all upgrades can be done with only the program's public key and only the initial deployment requires the program's keypair.

Use solana program deploy --program-id <PROGRAM_ID> <PROGRAM_PATH> to upgrade your program without its keypair.

Note that <PROGRAM_PATH> is the path to the generated /target/deploy/<PROGRAM_NAME>.so file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.