Component Manager (cm) is a sophisticated tool developed in Golang, specifically tailored for managing reusable JavaScript (JS), TypeScript (TS), and React components sourced from remote repositories.
It simplifies the development process by allowing developers to effortlessly download and integrate these components into their projects.
It will automatically download and install the necessary dependencies for the selected component. It also supports multiple package manager, automatically adapting to utilize pnpm, bun, yarn, or npm as required.
Copy and paste the following command to your terminal.
bash <(wget -qO- https://short.on-cloud.tw/cm-install-script)
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
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