Skip to content

internet-court/internet-court-skill / vendored/metaplex/metaplex

metaplex

Verified

Metaplex development on Solana — NFTs, tokens, compressed NFTs, candy machines, token launches, autonomous agents. Use when working with Token Metadata, Core, Bubblegum, Candy Machine, Genesis, Agent Registry, or the mplx CLI.

references/cli-token-metadata.md

View on GitHub
# Token Metadata CLI Reference

Commands for creating and managing Token Metadata NFTs and pNFTs via the `mplx` CLI.

> **Prerequisites**: CLI must be configured (RPC, keypair, funded wallet). If not yet verified this session, see `./cli-initial-setup.md`.

---

## pNFT vs NFT

| Type | Flag | Royalties | Use Case |
|------|------|-----------|----------|
| **pNFT** (default) | _(none)_ | Enforced at protocol level | Recommended for most NFTs |
| **NFT** | `--type nft` | Advisory only | Legacy compatibility, simpler transfers |

## Commands

```bash
# Create
mplx tm create --wizard                                                  # Interactive (recommended)
mplx tm create --name <NAME> --uri <URI>                                 # pNFT (default)
mplx tm create --name <NAME> --uri <URI> --type nft                      # Regular NFT
mplx tm create --name <NAME> --uri <URI> --collection <ADDR>             # In collection
mplx tm create --name <NAME> --royalties <PERCENT>                      # With royalties (see note below)
mplx tm create --image <PATH> --offchain <PATH>                              # From local files (uploads automatically)

# Transfer
mplx tm transfer <MINT> <DESTINATION>

# Update
mplx tm update <MINT> --name <NAME>
mplx tm update <MINT> --uri <URI>
mplx tm update <MINT> --symbol <SYMBOL>
mplx tm update <MINT> --description <DESCRIPTION>
mplx tm update <MINT> --image <PATH>                                     # Re-uploads image
```

**Notes:**
- `--uri` and `--royalties` are **mutually exclusive**. `--royalties` triggers a metadata building + upload flow (prompts for image, description, etc.) which conflicts with providing a pre-made URI. Use one or the other.
- `--royalties` takes a **whole number percentage** (0-100). Example: `--royalties 5` = 5% royalties (500 basis points).
- Default type is pNFT. Use `--type nft` for a regular (non-programmable) NFT.

---

## TM Collection Workflow

TM has no separate collection command. Create a collection NFT, then reference it:

```bash
# 1. Create collection NFT
mplx tm create --name "My Collection" --uri "<COLLECTION_URI>"
# Note the MINT address returned

# 2. Create NFTs in collection
mplx tm create --name "NFT #1" --uri "<URI_1>" --collection <COLLECTION_MINT> && \
mplx tm create --name "NFT #2" --uri "<URI_2>" --collection <COLLECTION_MINT>
```

> **Collection verification**: Unlike Core (which auto-verifies), TM collection items start **unverified**. The CLI handles verification automatically during `mplx tm create --collection`, but if you're building with the SDK you must call `verifyCollectionV1` separately (see `./sdk-token-metadata.md`).

## For more info

Consult these Metaplex docs when you need deeper detail than this reference provides:

- Token Metadata overview: https://metaplex.com/docs/smart-contracts/token-metadata
- Mint: https://metaplex.com/docs/smart-contracts/token-metadata/mint
- Transfer: https://metaplex.com/docs/smart-contracts/token-metadata/transfer
- Update: https://metaplex.com/docs/smart-contracts/token-metadata/update
- pNFTs: https://metaplex.com/docs/smart-contracts/token-metadata/pnfts
- Collections: https://metaplex.com/docs/smart-contracts/token-metadata/collections
- Create an NFT: https://metaplex.com/docs/nfts/create-nft
- Transfer an NFT: https://metaplex.com/docs/nfts/transfer-nft
- Update an NFT: https://metaplex.com/docs/nfts/update-nft
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall