Skip to content

Commit

Permalink
docs: Add multiple template documentation in CLI (#3404)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Dec 3, 2024
1 parent afcbaed commit a7a23ee
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/src/pages/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ anchor build

Builds programs in the workspace targeting Solana's BPF runtime and emitting IDLs in the `target/idl` directory.


```shell
anchor build --skip-lint
```
Expand Down Expand Up @@ -221,6 +220,23 @@ Initializes a project workspace with the following structure.
- `tests/`: Directory for JavaScript integration tests.
- `migrations/deploy.js`: Deploy script.

```shell
anchor init --template multiple
```

Creates a more structured program project template (rather than only a single `lib.rs` file):

```
├── constants.rs
├── error.rs
├── instructions
│   ├── initialize.rs
│   └── mod.rs
├── lib.rs
└── state
└── mod.rs
```

## Keys

Program keypair commands.
Expand Down

0 comments on commit a7a23ee

Please sign in to comment.