Toolbox

Program Scaffolding

Last updated April 20, 2026

Summary

The mplx toolbox template program command clones a Metaplex-maintained program template into the current directory.

  • Bootstraps a new Solana program project with Metaplex conventions pre-configured.
  • Launches an interactive picker when no template key is supplied.
  • Requires git to be available on PATH.
  • For frontend templates, see toolbox template website.

Quick Reference

The table below summarizes the command's arguments, prerequisites, and side effects.

ItemValue
Commandmplx toolbox template program [template]
Optional argtemplate — one of: shank
InteractiveYes — picker shown when arg is omitted
Requiresgit on PATH
Side effectClones into the current working directory

Available Templates

The available template keys map to Metaplex-maintained repositories.

TemplateDescription
shankSolana program template 2.0 using Shank for IDL generation.

Basic Usage

Run the command with no argument to pick interactively, or pass a template key to clone directly.

# Launch an interactive template picker
mplx toolbox template program
# Clone a specific template
mplx toolbox template program <template>

Arguments

The single optional positional argument selects the template.

  • template (optional): Template key. If omitted, an interactive picker is shown.

Examples

These examples show both the interactive picker and a direct clone.

mplx toolbox template program
mplx toolbox template program shank

Notes

  • The template is cloned via git clone into the current working directory.
  • Ensure git is installed and available on your PATH.
  • For website/frontend templates, use toolbox template website.
Previous
Close