Skip to content

Change the way of dapr cli reinstalling #527

@zzxwill

Description

@zzxwill

Ask your question here

When dapr is already installed, it will be reinstalled.

✗ curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash

Your system is darwin_amd64

Dapr CLI is detected:
CLI version: 0.11.0
Runtime version: n/a
Reinstalling Dapr CLI - /usr/local/bin/dapr...

Getting the latest Dapr CLI...
Installing v0.11.0 Dapr CLI...
Downloading https://github.com/dapr/cli/releases/download/v0.11.0/dapr_darwin_amd64.tar.gz ...
dapr installed into /usr/local/bin successfully.
CLI version: 0.11.0
Runtime version: n/a

To get started with Dapr, please visit https://docs.dapr.io/getting-started/

I wonder whether it would be better if:

  • the local dapr is latest, exit the installation.
✗ curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash

Your system is darwin_amd64

Dapr CLI is detected:
CLI version: 0.11.0
Runtime version: n/a

The latest Dapr Cli is installed, exiting...           # New line
  • the local dapr is out of date, ask users whether to reinstall
✗ curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash

Your system is darwin_amd64

Dapr CLI is detected:
CLI version: 0.5.0
Runtime version: n/a

Are you sure you wanna install the latest version 0.11.0: Yes/No  # New line

Or you guys just want to keep the installation process as simple as possible? Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions