Assuming solana-test-validator
is running
- cargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=dist/program
this will create the output in dist/program
solana-keygen new -o ./wallets/Owner.json this will spit an address "Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw" on terminal
solana airdrop 2 Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw
solana deploy dist/program/directoryName_program.so
this will spit out this on terminal: "Program Id: 7zkE9MbN4yDybYP9j19kmZjTA855SMh2kFW2C1Pj8EHN"