Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Installing MQTTX CLI on windows 11 arm64 via SETUP does not seem to update the path (cannot find mqttx via cli) #1804

Closed
oising opened this issue Nov 12, 2024 · 1 comment
Assignees
Labels
CLI MQTTX CLI discussion This issues and pr are worth discussing Windows
Milestone

Comments

@oising
Copy link

oising commented Nov 12, 2024

What did I do

Install the mqttx cli for v1.11

What happened

Restarted my shell, mqttx not on path?

Expected

mqttx should be found on the path

Environment

  • w11 on arm64 (sl7)
  • w11 24h2/26100

More detail

More detail include log information or screenshot

@oising oising added the bug Something isn't working label Nov 12, 2024
@github-project-automation github-project-automation bot moved this to Backlog in MQTTX Nov 12, 2024
@oising oising changed the title Installing MQTTX CLI on windows 11 arm64 does not seem to update the path (cannot find mqttx via cli) Installing MQTTX CLI on windows 11 arm64 via SETUP does not seem to update the path (cannot find mqttx via cli) Nov 12, 2024
@oising oising changed the title Installing MQTTX CLI on windows 11 arm64 via SETUP does not seem to update the path (cannot find mqttx via cli) [BUG] Installing MQTTX CLI on windows 11 arm64 via SETUP does not seem to update the path (cannot find mqttx via cli) Nov 12, 2024
@ysfscream ysfscream self-assigned this Nov 14, 2024
@ysfscream ysfscream added CLI MQTTX CLI Windows labels Nov 14, 2024
@ysfscream ysfscream added this to the v1.11.1 milestone Nov 14, 2024
@ysfscream
Copy link
Member

ysfscream commented Nov 14, 2024

Hi, the MQTTX CLI on Windows doesn't automatically configure the PATH environment variable during installation. You have two options:

  1. Manual PATH Configuration:

    • Find your MQTTX installation directory
    • Add it to the System PATH manually
  2. Recommended Easier Method:
    Install via npm globally (this handles PATH configuration automatically):

    npm install mqttx-cli -g

    This will make mqttx command available globally in your terminal.

  3. Docker instead, which provides a more consistent and reliable way to run MQTTX CLI across different platforms, including Windows ARM64:

    # Pull the official MQTTX CLI image
    docker pull emqx/mqttx-cli
    
    # Run MQTTX CLI
    docker run -it --rm emqx/mqttx-cli

The npm global installation is recommended as it's more straightforward and handles the PATH configuration automatically.

@ysfscream ysfscream moved this from Backlog to TO DO in MQTTX Nov 14, 2024
@ysfscream ysfscream added the discussion This issues and pr are worth discussing label Nov 14, 2024
@ysfscream ysfscream moved this from TO DO to Reject in MQTTX Nov 15, 2024
@ysfscream ysfscream removed the bug Something isn't working label Nov 15, 2024
@ysfscream ysfscream modified the milestones: v1.11.1, v1.12.0 Dec 16, 2024
@github-project-automation github-project-automation bot moved this from Reject to Done in MQTTX Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI MQTTX CLI discussion This issues and pr are worth discussing Windows
Projects
Status: Done
Development

No branches or pull requests

2 participants