# CLI (TS/JS + Fetch)

This example requires several utility and configuration files. Create the following files in the same directory as your main script.

{% hint style="info" %}
**Need to create wallets?**

You can use the [Anvil Wallet CLI](/developer-tools/wallet-cli.md) to generate the required wallet JSON files for these examples.
{% endhint %}

{% @github-files/github-code-block title="utils/constant.ts" url="<https://github.com/Cardano-Forge/anvil-api-examples/blob/main/utils/constant.ts>" %}

You will also need the shared utility functions, which you can find in the [`utils/shared.ts`](https://github.com/Cardano-Forge/anvil-api-examples/blob/main/utils/shared.ts) file in the examples repository.

{% @github-files/github-code-block title="metatemplate.json" url="<https://github.com/Cardano-Forge/anvil-api-examples/blob/main/documentation-references/metatemplate.json>" %}

Now, you can run the main script:

{% @github-files/github-code-block url="<https://github.com/Cardano-Forge/anvil-api-examples/blob/main/documentation-references/mint-cli-cip25.ts>" %}

{% hint style="success" %}
**Learn More**

For a step-by-step explanation, see the [Mint a CIP-25 NFT Guide](/guides/nft-and-ft/mint-nft-cip-25.md).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ada-anvil.io/quick-start-examples/cip-25/cip-25-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
