Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codius

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codius

Command Line Interface for Codius

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
2
Weekly downloads
 
Created
Source

Codius CLI

Command Line Interface for Codius

The command line interface for uploading and extending pods on Codius.

Tutorial

Codius is an open-source decentralized hosting plaform, built with Interledger. With it, users can run software on servers anywhere in the world and pay for it using any currency. This tutorial will teach you how to upload contracts using the Codius Command-line interface, and pay for hosting using XRP.

Prerequisites

  • NodeJS
  • An XRP Wallet (you will need at least 20 XRP to open a new one)
  • Moneyd

Installation

The Codius CLI can be installed by running the following command to install it to your global npm packages.

npm install -g codius

It can then be run with the command codius.

Command Reference

All codius commands have a --help parameter describing their usage, e.g. codius upload --help for help with the upload command.

hash <manifest>

Hashes your manifest file. This hash is used as an identifier for the Codius host and the CLI to identify your manifest.

Arguments:

  • <manifest>
    • Type: Object
    • Description: A path to the manifest containing information about your proram. Format is described here.

upload <manifest>

Uploads a manifest to a number of Codius hosts. By default it uploads it to a single random known host with a duration of 10 minutes. Its recommended that you start with a short duration and then extend it to ensure your manifest is running appropriately.

Arguments:

  • <manifest>
    • Type: Object
    • Description: A path to the manifest containing information about your program. Format is described here.
OptionsArgument TypeDescription
--duration, -dIntegerDuration (in seconds) by which the contract will be run on all Codius hosts, defaults to 10 mins.
--max-monthly-rate, --maxIntegerThe max rate per month the uploader is willing to pay a Codius host to run the manifest.
--units, -uIntegerThe unit of currency to pay the Codius hosts with. e.g. XRP
--host-count, -cIntegerThe number of hosts to upload the manifest to. They are discovered from known hosts and selected randomly. This and --host, -h are mutually exclusive.
--host, -hStringThe public URI of a host to upload the manifest to. Can be repeated any number of times. This and --host-count, -c are mutually exclusive.
--add-host-env, --addBooleanAdds a $HOST env in the manifest before upload which contains all the hosts the manifest will be uploaded
--no-prompt, --npNoneRun without making any prompts to the user.

extend <manifest>

Extends the duration of existing contracts.

Arguments:

  • <manifest>
    • Type: Object
    • Description: The path to the manifest with information about your program. Format is described here.
OptionsArgument TypeDescription
--duration, -dIntegerDuration (in seconds) by which the contract will be extended on all Codius hosts currently running it.
--max-monthly-rate, --maxIntegerThe max rate per month the uploader is willing to pay a Codius host to run the manifest.
--units, -uIntegerThe unit of currency to pay the Codius hosts with. E.g. XRP
--no-prompt, --npNoneRun without making any prompts to the user.

pods

Retrieves information about the pods uploaded by the codius cli, their hosts and expiration date.

OptionsArgument TypeDescription
--list, -lBooleanLits all pods uploaded by the codius cli, their hash, hosts, and expiration date.
--get-pod-manifest, -mStringTakes the manifest hash and looks up the raw manifest file used for the pod.

host

Suport modify the hosts local database where peers are stored.

OptionsArgument TypeDescription
--remove-host, -rmhostStringRemoves the host passed in as a string from the local Codius CLI db.
--remove-all-hosts, -rmallBooleanRemoves all hosts from the local database to reset the peer lookup table.

License

Apache-2.0

Keywords

FAQs

Package last updated on 06 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc