Create Token

Minimum commmand

spl-token create-token

Create token with a custom address

solana-keygen grind --starts-with xxx:1
spl-token create-token xxx.json

Create token and specify decimals

spl-token create-token --decimals 18

Create token using Token-22 / Token Extensions

spl-token create-token --program-2022

Create token and give minting authority to some other wallet

spl-token create-token --mint-authority MTSLZDJppGh6xUcnrSSbSQE5fgbvCtQ496MqgQTv8c1

Create token with metadata

Please note :- Metadata can only be enabled for Token-22 using the spl-token CLI

Example Name = Supa Labs Symbol = SUPA URI = https://static.supa.ag/metadata.json

spl-token create-token --enable-metadata 

spl-token initialize-metadata <mint_address_from_previous_command> NAME SYMBOL URI