Package Exports
- permacast-cli
- permacast-cli/src/bin/permacast-cli.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (permacast-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Permacast V3 CLI
CLI library for uploading content to Permacast.
Install
npm install -g permacast-cli
Commands
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.json
2- 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-keyfile
3- 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-eval
Example:
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 account
5- Change Arweave gateway
This command allows you to switch between Arweave stable mainnet gateways (arweave.net/dev/live)
permacast change-gateway --gateway YOUR_OPTION
License
This project is licensed under the MIT license.