influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 22 forks source link

CLI version 2.7.1 broken for Windows #497

Closed Cparker96 closed 1 year ago

Cparker96 commented 1 year ago

When downloading influxDB CLI version 2.7.1 zip folder for windows users, the file within the folder content is not defined as a .exe and cannot be executed. CLI version 2.6.1 is currently the most up to date version for windows users that works.

Steps to reproduce:

  1. Download CLI version here: https://docs.influxdata.com/influxdb/v2.7/tools/influx-cli/
  2. Unzip content and add influx file to PATH env variable
  3. open admin PS terminal and type 'influx help' or 'influx version'
  4. Popup should occur prompting user to choose an app to open 'influx' with (this should not occur with a .exe file)

Broken file:

broken file

Corrected file with 2.6.1 version:

image
jeffreyssmith2nd commented 1 year ago

Thanks for the report, I can confirm seeing this behavior. We'll investigate and get a fix out.

jwyse commented 1 year ago

Cparker96, the file is the correct executable, but is missing the .exe extension. As a workaround, you can manually rename the extracted file from influx to influx.exe, or nudge Powershell to execute the file as-is by prefixing it: .\influx version

I agree that the better long-term fix would be for the release to contain an executable with the proper Windows extension, but this will get you going with the current 2.7.1 CLI.

jeffreyssmith2nd commented 1 year ago

This should be fixed in the 2.7.3 release. Please open a new issue if you encounter any further issues!