Skip to content

Resources

OpenDSC ships a Resources package to manage Windows, Linux, and macOS.

Install

winget install OpenDsc.Resources

Note

Debian and RPM package support is coming soon. In the meantime, use the archive install below.

latest_tag=$(curl -s https://api.github.com/repos/opendsc/opendsc/releases/latest | grep -oP '"tag_name":\s*"\K(.*?)(?=")')
latest_version=${latest_tag#v}
archive=OpenDSC.Resources.Linux.Portable-${latest_version}.zip
install_dir="$HOME/OpenDSC.Resources"

mkdir -p "$install_dir"
curl -L -o "$archive" \
  "https://github.com/opendsc/opendsc/releases/download/${latest_tag}/${archive}"
unzip -o "$archive" -d "$install_dir"
export PATH="$install_dir:$PATH"
echo 'export PATH="$HOME/OpenDSC.Resources:$PATH"' >> ~/.bashrc

Note

Homebrew package support is coming soon. In the meantime, use the archive install below.

latest_tag=$(curl -s https://api.github.com/repos/opendsc/opendsc/releases/latest | grep -oP '"tag_name":\s*"\K(.*?)(?=")')
latest_version=${latest_tag#v}
archive=OpenDSC.Resources.macOS.Portable-${latest_version}.zip
install_dir="$HOME/OpenDSC.Resources"

mkdir -p "$install_dir"
curl -L -o "$archive" \
  "https://github.com/opendsc/opendsc/releases/download/${latest_tag}/${archive}"
unzip -o "$archive" -d "$install_dir"
export PATH="$install_dir:$PATH"
echo 'export PATH="$HOME/OpenDSC.Resources:$PATH"' >> ~/.zshrc

Usage

You can list installed OpenDSC resources with the DSC CLI:

dsc resource list OpenDsc*