Skip to content

Version v2.0.0

Install cwm

One binary, no runtime. Pick your system, run the command, then check it with cwm hello.

  1. 1Download and install

    PS> Invoke-WebRequest -Uri https://github.com/Isu-Ismail/cwm-cli-go/releases/download/v2.0.0/cwm-cli_windows_amd64.zip -OutFile cwm-cli.zip; Expand-Archive -Path cwm-cli.zip -DestinationPath C:\cwm; Remove-Item cwm-cli.zip

    or download cwm-cli_windows_amd64.zip yourself.

  2. 2Add it to your PATH

    PS> [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\cwm", "User")

    Open a new terminal afterwards so the change is picked up.

  3. 3Check that it runs

    cwm hello
    $ cwm hello
    CWM - Command Watch Manager (v2.0.0)
    -----------------------------------------------------------------
    OS:                  windows/amd64
    Shell:               bash
    History File:        C:\Users\you\.bash_history
    Direct Execution:    Not installed (run 'cwm setup')
    Watch Hook:          Not installed (run 'cwm watch start')
    Database:            OK (written by v2.0.0): 0 saved, 0 history, 0 in trash
     
                        ▄▄▄▄
                      ▄█████
                  ▄▄█████▀▀█▄▄
                ▄▀█████▀███████▄
              ▄█████▀▀███████████▄
            ▄█████▀███████████████▄
         ▄█████▀▀██████████████████
       ▄█████▀██████████████████████
       ▀█████▀██████████████████████
         ▀█████▀▀██████████████████
            ▀█████▀███████████████▀
              ▀▀█████▀███████████▀
                ▀▀█████▀▀██████▀
                   ▀▀█████▀▀▀
                      ▀█████
                         ▀▀
  4. 4Turn on shell integration

    $ cwm setup

    Adds one block to your shell profile so cwm get name -x runs in your current shell. See cwm setup.