1.0.4 • Published 2 years ago

@bonfida/sns-deploy v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

SNS Deploy

  ____    _   _   ____      ____                   _
 / ___|  | \ | | / ___|    |  _ \    ___   _ __   | |   ___    _   _
 \___ \  |  \| | \___ \    | | | |  / _ \ | '_ \  | |  / _ \  | | | |
  ___) | | |\  |  ___) |   | |_| | |  __/ | |_) | | | | (_) | | |_| |
 |____/  |_| \_| |____/    |____/   \___| | .__/  |_|  \___/   \__, |
                                          |_|                  |___/


⠋     Deploying on IPFS
- 📦  Calculating size of build…
✔ 🚚  Directory build weighs 6.5 MiB.
- 📠  Uploading and pinning to Infura…
✔ 📌  Added and pinned to Infura with hash:
- ✅  Content uploaded on IPFS
- 🦄  Wallet loaded
✔ ⚡️  Solana account updated
✔ 🧭  Solana Explorer: https://explorer.solana.com/tx/5HdYkonKyjcTG5vLjSMCkjC71LHxidV7DW5XJpuzCg5QfuHt9wxKcNYrGP9xEew2NrLXV98fRnzt2EgbfL9DXEEH

Upload static website to IPFS pinning services and update your Solana Name Service Records.

yarn global add @bonfida/sns-deploy
npm i -g @bonfida/sns-deploy

Example

sns-deploy -d bonfida -w wallet.json -p build

Options

  • Domain (d): Domain name you own
  • Solana Wallet (w): Path to the Solana Wallet that owns the domain name
  • Path (p): Path to the folder you want to upload to IPFS
  • Arweave Wallet (W): Path to your Arweave wallet (optional)

IPFS

To deploy on IPFS, the CLI uses ipfs-deploy. By default it pins the content to Infura.

Arweave

To deploy on Arweave, the CLI uses arkb.

Solana Name Service

The CLI will update the content of Solana account of your .sol domain.