ar.io Logoar.io Documentation
ARIO Deploy

Package.json Scripts

Add deployment scripts to your package.json:

{
  "scripts": {
    "build": "vite build",
    "deploy": "pnpm build && ario-deploy deploy --arns-name \<ARNS_NAME\>",
    "deploy:staging": "pnpm build && ario-deploy deploy --arns-name \<ARNS_NAME\> --undername staging",
    "deploy:devnet": "pnpm build && ario-deploy deploy --arns-name \<ARNS_NAME\> --cluster devnet",
    "deploy:on-demand": "pnpm build && ario-deploy deploy --arns-name \<ARNS_NAME\> --on-demand ario --max-token-amount 1.5"
  }
}

These read the upload key from DEPLOY_KEY and the Solana ArNS authority key from ARNS_KEY. Deploy with:

DEPLOY_KEY=$(base64 -i wallet.json) ARNS_KEY=\<base58-solana-secret-key\> pnpm deploy

Or with on-demand payment:

DEPLOY_KEY=$(base64 -i wallet.json) ARNS_KEY=\<base58-solana-secret-key\> pnpm deploy:on-demand

How is this guide?