Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[FR] - Make output of CLI commands consistent.

Open
#566 23 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@newhoggy is already working on this.

Since Mar 26, 2025.

Assessment

This issue has not been assessed yet.

Description

Stale

Internal/External
Internal if an IOHK staff member.

Area
Other Any other topic (Delegation, Ranking, ...).

Describe the feature you'd like
Currently the output format of the CLI commands may depend on multiple things and sometimes is not deterministic. This may surprise the users and lead to a poor user experience (like in https://github.com/IntersectMBO/cardano-cli/pull/537 ).

An example is cardano-cli conway query ledger-state: https://github.com/IntersectMBO/cardano-cli/blob/17355f3e86dba264ca85389c491e561b2a07cafe/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs#L903
where the output format depends on where you would like to send it (binary CBOR for file, json for stdout) and if there was and error when decoding it (plain CBOR when error occurred during CBOR deserialization into JSON).

A one way to make it consistent across the whole CLI is to use similar output flags to transaction-view like in https://github.com/IntersectMBO/cardano-cli/pull/523.

Dominant language
Haskell
Stars
72
Forks
25
Avg merge
2d 11h
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from IntersectMBO/cardano-cli

All issues in IntersectMBO/cardano-cli

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.