Browse Source

docs: Add a tip about passing `cargo` args to the `build` command (#3355)

acheron 11 months ago
parent
commit
354271cb19
1 changed files with 9 additions and 0 deletions
  1. 9 0
      docs/src/pages/docs/cli.md

+ 9 - 0
docs/src/pages/docs/cli.md

@@ -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