Skip to content

Add --json flag to db config list #61

Closed

Description

@TrivCodez

Description

db config list displays config as formatted text. Adding --json would output the full config object as JSON for scripting.

Location

src/commands/config.ts — list subcommand at line 10

Reference pattern

See db branch inspect --json in branch.ts line 279.

What to do

  1. Add .option("--json", "Output as JSON") to the list subcommand
  2. In the action, check options.json and output JSON.stringify(config, null, 2) instead of the formatted table

Acceptance criteria

  • db config list --json outputs valid JSON with all config keys
  • npm run build passes with no errors

⏰ This issue must be claimed and completed within 1 week. If not, it will be automatically done in the next release.

Labels

good first issue, help wanted, enhancement

Activity

  1. added
    good first issue
    help wanted
    enhancement
    on Jul 20, 2026
  2. TrivCodez commented on Jul 21, 2026

    @TrivCodez
    ContributorAuthor

    Hey @SankeerthNara @jordansilly77-stack 👋

    I've already contributed a bit to the repo and was looking through the open issues. This one (#61 — Add --json flag to db config list) is tagged as both a good first issue and help wanted, so I wanted to check if either of you have any interest in picking it up.

    If you're free and keen, happy to help review or offer pointers. Just want to keep the momentum going on this project — it's a great CLI and there's a lot of low-hanging fruit here that would make a real difference.

    No pressure at all — just putting it out there!

  3. SankeerthNara commented on Jul 22, 2026

    @SankeerthNara
    Contributor

    Could you assign this to me

  4. SankeerthNara commented on Jul 22, 2026

    @SankeerthNara
    Contributor

    Hey @TrivCodez , Is there anything else you want me to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions