Coder Social home page Coder Social logo

cnvm's Introduction

Cardano Node Version Manager

Convenience commands for running a Cardano Node.

These scripts assume you followed the Armada Alliance environment setup.

๐Ÿ—„ Table of contents

๐Ÿงฐ How to install

bash <(curl -Ls https://github.com/HofmannZ/cnvm/raw/master/scripts/install.sh)

๐Ÿ“š How to use

After installing you can use the following commands to manage your Cardano stake pool.

cnvm

Convenience alias to update your Cardano node binaries.

$ cnvm install-binaries

Installs the cardano-node, cardano-cli, and cardano-submit-api binaries. Version defaults to 1.35.3, use:

cnvm install-binaries

or for a specific version:

cnvm install-binaries 1.34.1

or with restart:

cnvm install-binaries --restart

$ cnvm download-config-files

Downloads and patches the latest cardano config files. Defaults to normal topology, use:

cnvm download-config-files

or for P2P:

cnvm download-config-files --p2p

CNVM does not override your topology by default.

Use with the --topology flag to override the topology:

cnvm download-config-files --topology

$ cnvm download-snapshot

Downloads the latest database snapshot from csnapshots.io. Use:

cnvm download-snapshot

Make use you have stopped you cardano-node!

Or use with the --restart flag to automatically stop/start:

cnvm download-snapshot --restart

$ cnvm upgrade

Upgrades binaries and downloads the latest cardano config files. Optionally downloads the latest snapshot and patches for P2P. Version defaults to 1.35.3, use:

cnvm upgrade

or for a specific version:

cnvm upgrade 1.34.1

or with snapshot:

cnvm upgrade --snapshot

or with p2p:

cnvm upgrade --p2p

or with restart:

cnvm upgrade --restart

The underlying algorithm:

  1. Stop the cardano-node (Optional via --restart flag).
  2. Download the latest binaries (defaults to 1.35.3).
  3. Fetch the latest build number and save it to your .adaenv.
  4. Download the latest node files (with the exception of the topology file).
  5. Patches the configuration for P2P. (Optional via --p2p flag).
  6. Download the latest database snapshot from csnapshots.io. (Optional via --snapshot flag).
  7. Start the cardano-node (Optional via --restart flag).

$ cnvm upgrade-self

Upgrades to the latest version of this script. Use:

cnvm upgrade-self

sysup

Convenience alias to update your system.

Wil run sudo apt update && sudo apt upgrade -y.

cnvm's People

Contributors

hofmannz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.