Skip to content

Commit

Permalink
docs: Add a tip about passing cargo args to the build command (#3355
Browse files Browse the repository at this point in the history
)
  • Loading branch information
acheroncrypto authored Nov 10, 2024
1 parent 8dca0d6 commit 354271c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/src/pages/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ anchor build --verifiable

Runs the build inside a docker image so that the output binary is deterministic (assuming a Cargo.lock file is used). This command must be run from within a single crate subdirectory within the workspace. For example, `programs/<my-program>/`.

{% callout title="Tip" %}
It's possible to pass arguments to the underlying `cargo build-sbf` command with `-- <ARGS>`. For example:

```
anchor build -- --features my-feature
```

{% /callout %}

## Cluster

### Cluster list
Expand Down

0 comments on commit 354271c

Please sign in to comment.