| Crates.io | captain |
| lib.rs | captain |
| version | 0.1.0-alpha.0 |
| created_at | 2021-06-15 05:41:50.417163+00 |
| updated_at | 2021-06-15 05:41:50.417163+00 |
| description | Program management for Solana and Anchor. |
| homepage | https://captain.so |
| repository | https://github.com/saber-hq/captain |
| max_upload_size | |
| id | 410263 |
| size | 114,929 |
Version control and key management for Solana programs.
Install via Cargo like so:
cargo install --git https://github.com/saber-hq/captain --force
Then, in your directory containing your root Cargo.toml, run the following command:
captain init
A Captain workflow works like so:
captain buildcaptain deploycaptain upgradeFirst, build your programs using the command:
captain build
This runs anchor build -v if you have Anchor installed, and cargo build-bpf if you don't have Anchor installed.
Once your new program is ready to be deployed to the blockchain, run:
captain deploy --program <program> --network <network>
where:
<network> is one of mainnet, devnet, testnet, localnet, or debug<program> is the name of your program in the target/deploy/ directory. You can view a list of all available programs using the command captain programs.This does several things for you:
upgrade_authority of <network> in your Captain.toml fileupgrade_authorityIf you need to make changes to your program, you can run:
captain upgrade --program <program> --network <network>
This performs the following actions:
For support, join the Saber Discord at chat.saber.so!
Apache-2.0