Skip to content

Commit

Permalink
Merge pull request #914 from onflow/jribbink/core-alias-doc
Browse files Browse the repository at this point in the history
Add documentation for simplified `flow deps add` syntax
  • Loading branch information
nialexsan authored Oct 15, 2024
2 parents 7d62369 + 6d2012b commit a20c3da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/tools/flow-cli/dependency-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ If you know the address and name of the contract you want to install (this can u

`flow dependencies add testnet://7e60df042a9c0868.FlowToken`

For core contracts, you can add them to your project using a simplified syntax using only the contract name (learn more about core contracts [here](../../build/core-contracts/index.md)), for example:

`flow dependencies add FlowToken`

Th command will default to using Flow Mainnet as the source network (i.e. this command is functionally equivalent to `flow dependencies add mainnet://1654653399040a61.FlowToken`).

> Note: You can also use the shorthand `deps`
In this command, the string that will be used as the `source` in the `flow.json` after installation is `testnet://7e60df042a9c0868.FlowToken`. This can be broken down into three sections for formatting it yourself for another contract:
Expand Down

0 comments on commit a20c3da

Please sign in to comment.