Cookbook Community Meetup - 12pm ET / 5pm GMT every week on Wednesdays

Language
Docs

Documentation

Contributors: Tom Wilson
Last Updated:

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

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 @bundlr-network/client

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 bundlr

npx bundlr upload index.html -c arweave -h https://node2.bundlr.network -w ./wallet.json