Skip to content

Deprecate available commands at root of cardano-cli #1015

Open
@rdlrt

Description

@rdlrt

Description

The current state of cardano-cli top-level sub-commands is quite chaotic and a bit too unpredictable. While I appreciate deprecation of specific commands, what we have currently is far from desirable.

  1. There are cases where for instance we have cardano-cli address available at top level. We also have cardano-cli <era> address which is deprecated, and then we have cardano-cli latest address. It seems redundant to have cardano-cli address as well as cardano-cli latest address. To make it worse, if we go and check stake address - we do NOT have cardano-cli stake-address, but cardano-cli latest stake-address works. This requires us to check for each and every object individually rather than being able to count on some consistency.
  2. My first assumption given the above was atleast when we have something at root as well as latest, their sub commands will be similar, nope! Let's have a look at cardano-cli query vs cardano-cli latest query. Latter gives us a lot more options (eg: treasury, ref-script-size, conway-specific queries).
    It sounds like the options presented at root should be atleast marked as deprecated, if not - have some consistency between root and latest.

Possible Solution

Retire all duplicates and only leave available commands under latest (or at root) and move anything from previous era to compatible

Metadata

Metadata

Assignees

Labels

enhancementFor improvements or extensions to existing functionality.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions