diff --git a/documentation/leo/05_commands.md b/documentation/leo/05_commands.md index 22595fdef..c50449d57 100644 --- a/documentation/leo/05_commands.md +++ b/documentation/leo/05_commands.md @@ -182,6 +182,17 @@ To add a local Leo program as a project dependency. leo add -l {$PATH} {$PROGRAM} ``` +## `leo deploy` +:::tip +Use this command to deploy a program to the Aleo network. This requires having a funded account. +::: + +To deploy the project in the current working directory. +```bash +leo deploy // Defaults to using key information in `.env`, and deploys to `testnet3` via endoint `http://api.explorer.aleo.org/v1`. +leo deploy --endpoint "{$ENDPOINT}" --private-key "{$PRIVATE_KEY}" // To deploy using custom private key, to a custom endpoint (e.g. local devnet `http://0.0.0.0:3030`). +``` + ## `leo clean` To clean the build directory, run: