Skip to content

Commit

Permalink
Merge pull request #360 from AleoHQ/fix/leo-deploy
Browse files Browse the repository at this point in the history
[Fix] `leo deploy`
  • Loading branch information
d0cd authored May 7, 2024
2 parents 44bf05a + 6b47b57 commit 7e5a02d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions documentation/leo/05_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7e5a02d

Please sign in to comment.