Skip to content

feat(cli): Add CLI for chain deployment and config #77

@jmalicevic

Description

@jmalicevic

We do not want to deploy the chain using makefiles.

Startup/ config/ stopping

For CLI inspiration, we can look at Malachite but we should be able to run a command of the form:

start -n 4 -v 3 --path-to-config

The config can have configuration parameters for what we want , for example:

  • path to jwt secret,
  • path to p2p key
  • reth configuration parameters that should be read and passed on to reth in the compose file

The chain should also be stoppable via a command of the form.
stop

We should also be able to stop individual nodes.

stop --node-id X

Contract deployment and key generation

We should also be able to deploy a contract to the chain based on where it is launched:

  • deploy contract_name signing_key

We will also need to generate keys we can use locally (either via anvil and have them stored somewhere but reused in the above command).

Optionally, logs should be retrievable as well via a log command.

DoD

  • CLI that can be used instead of the makefile.
  • Documentation describing the available commands and their parameters.
  • Documentation describing the config. (ref [EPIC] Documentation #73 )

Sub-issues

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions