permacast-cli v0.0.9
Permacast V3 CLI
CLI library for uploading content to Permacast.
Install
npm install -g permacast-cliCommands
1- Login aka Save a keyfile
Invoking this command is required first of all to be able to invoke any other command in the CLI.
permacast save-keyfile --key-file PATH-TO-YOUR-JWK-FILE.json2- Signout aka Delete the saved keyfile
Use this command to delete your current keyfile to signout or if you want to replace it with a new one (then invoke command #1)
permacast delete-keyfile3- Import your podcast from an RSS to Permacast
Use this command to import your podcast's content from a valid RSS endpoint to your podcast over Permacast
permacast import-rss --pid YOUR_PODCAST_ID --rss-url THE_RSS_URL --onchain-evalExample:
permacast import-rss --pid IKsjaUBJiKNDtLPIOyobkUM6iPtTKAK2bMDBu30KdmE --rss-url https://terraspaces.org/feed/podcast/To know how to retrieve your pid (podcast ID) from the Permacast FE, check this image.
N.B: --onchain-eval is an optional argument that if passed, it evaluates the podcast's factory contract from Arweave (slow to very slow) instead of fetching the factory's state from Permacast cache.
4- View account stats
This command displays your Arweave wallet address, balance, and how many megabytes your can upload to Arweave (excluding Permacast fee multiplier)
permacast account5- Change Arweave gateway
This command allows you to switch between Arweave stable mainnet gateways (arweave.net/dev/live)
permacast change-gateway --gateway YOUR_OPTIONLicense
This project is licensed under the MIT license.