Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

[v4] New CLI commands wipe out my recent shell output #165

@angelikatyborska

Description

@angelikatyborska

This bug is regarding the next branch.

Current behavior

When you run one of the new commands, it wipes out the shell output that is currently visible in the terminal window. It removes not only the Storyblok command that I have just typed, but also output of my previous commands that have nothing to do with the Storyblok CLI.

To present this, I set up this scenario where I typed echo n ten times, from 1 to 10. I resized the window so that the numbers 1 and 2 aren't visible. Then, I run a pull components command. Here are the results:

Terminal window before

Image

Terminal window after

Image

(PS: I can also share a video privately because it includes my space id and I don't know how to censor a video)

Expected behavior

I would expect that my shell output is not deleted. I also expect to see the Storyblok command that I ran in the output.

Relevant code

I'm not sure if this is relevant, but this is the way I run the CLI right now from the next branch:

./node_modules/storyblok-next/dist/index.mjs components pull --space=111

I created a fork where I committed in the dist directory so that it's possible to install it as a npm dependency straight from the github repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    nextp2-edge-case[Priority] Bugs with workarounds or limited impact.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions