Hello World (CLI)
This guide walks you through the most simple way to get data on to the permaweb using a command-line interface (CLI).
Requirements
- NodeJS LTS or greater
Description
Using a terminal/console window create a new folder called hw-permaweb-1
.
Setup
cd hw-permaweb-1
npm init -y
npm install arweave @irys/sdk
Generate a wallet
node -e "require('arweave').init({}).wallets.generate().then(JSON.stringify).then(console.log.bind(console))" > wallet.json
Create a web page
echo "<h1>Hello Permaweb</h1>" > index.html
Upload using Irys (Previously Bundlr)
npx irys upload index.html -t arweave -h https://node2.irys.xyz -w ./wallet.json