Skip to content

Installation

OnCloud edited this page May 14, 2024 · 5 revisions

Normal Installation

Linux, MacOS

Copy and paste the following command to your terminal.

bash <(wget -qO- https://short.on-cloud.tw/cm-install-script)

For fish shell users:

wget -qO- https://short.on-cloud.tw/cm-install-script | bash

Windows

Copy and paste the following command to Powershell.

. { iwr -useb https://short.on-cloud.tw/cm-install-script-windows } | iex;

Supported Platforms

  • Linux: x86_64
  • MacOS: x86_64, arm64
  • Windows: x86_64

Advance Installation / Contributing

Linux, MacOS

Requirements

Installation Steps

Download the source files.

git clone https://github.com/lazco-studio/Component-Manager.git

Set the necessary environment variables.

# Create env folder
mkdir env

# Set GITHUB_TOKEN, replace "github_token" with your github token
echo "github_token" > env/GITHUB_TOKEN

Run the build script.

./build.sh

Then copy the executable file to /usr/local/bin.

sudo cp ./dist/cm-cli_linux_amd64 /usr/local/bin/cm

Grant execute permission for /usr/local/bin/cm.

sudo chmod +x /usr/local/bin/cm

Windows

Coming soon