Skip to content

Commit

Permalink
leo add
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-schott committed Apr 26, 2024
1 parent f83582d commit ce31c3c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions documentation/leo/05_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,25 @@ This command synthesizes the program circuit and generates proving and verifying
Leo ✅ Executed 'hello.aleo/main' (in "/hello/build")
```
## `leo add`
:::tip
Use this command to add a dependency to your program. This is a precursor to being able to import a program inside the leo source code file.
:::
To add an already deployed program as a project dependency.
`{$PROGRAM}` should be the name of the program to add as a dependency.
```bash
leo add {$PROGRAM} // Defaults to `testnet3`.
leo add -n {$NETWORK} {$PROGRAM} // To pull from a custom network.
```
To add a local Leo program as a project dependency.
`{$PATH}` should be the relative path to the dependency project directory.
```bash
leo add -l {$PATH} {$PROGRAM}
```
## `leo clean`
To clean the build directory, run:
Expand Down

0 comments on commit ce31c3c

Please sign in to comment.