asyncapi / asyncapi/cli

[BUG] No info on availability of new version of cli to user.

Open
#1,680 16 comments 0 reactions 2 assignees Claimed by @Souvikns View on GitHub
bug keep-open
Dominant language
TypeScript
Stars
272
Forks
375
Avg merge
3h 22m
Merged PRs (30d)
8

Description

### Describe the bug.

Whenever a new version is released of the cli and if after that user runs a command then a info should be given that a new version of the cli is available. It is already implemented [here](https://github.com/asyncapi/cli/blob/master/package.json#L132) but appears to be not working as can be seen from below screenshots.

### Expected behavior

An info should be shown with new available version and current version once every day of running any commands.

### Screenshots

![Image](https://github.com/user-attachments/assets/a3f2b5ba-2cb5-442d-848d-13669c7418eb)

![Image](https://github.com/user-attachments/assets/19b7dc72-9d2a-4f42-a431-7c4824ebbb7c)

As evident form above screenshots i am using an older version and info should be displayed that a new version is available but no info is shown.

### How to Reproduce

1. Install any older version of cli.
2. Run any command.
3. No info is displayed that a new version is available even tough it is.

### 🥦 Browser

None

### 👀 Have you checked for similar open issues?

- [x] I checked and didn't find similar issue

### 🏢 Have you read the Contributing Guidelines?

- [x] I have read the [Contributing Guidelines](https://github.com/asyncapi/.github/blob/master/CONTRIBUTING.md)

### Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.