|
| 1 | +### Download Pre-built CLIs |
| 2 | + |
| 3 | +You can download the latest tools here. Binaries are available for Linux, macOS and Windows. |
| 4 | + |
| 5 | +export const formatCliName = (name) => { |
| 6 | + return name.split("-").join(" "); |
| 7 | +}; |
| 8 | + |
| 9 | +export const DownloadLink = ({ variant, cliName, osName }) => { |
| 10 | + return ( |
| 11 | + <a |
| 12 | + href={`https://storage.googleapis.com/golioth-cli-releases/${cliName}/latest/${cliName}_latest_${variant}.tar.gz`} |
| 13 | + > |
| 14 | + Download {formatCliName(cliName)} for {osName} |
| 15 | + </a> |
| 16 | + ); |
| 17 | +}; |
| 18 | + |
| 19 | +export const DownloadLinks = ({ variant, osName, clis }) => { |
| 20 | + return clis.map((cliName) => { |
| 21 | + return ( |
| 22 | + <> |
| 23 | + <DownloadLink |
| 24 | + key={`${variant}-${osName}-${cliName}`} |
| 25 | + variant={variant} |
| 26 | + cliName={cliName} |
| 27 | + osName={osName} |
| 28 | + /> |
| 29 | + <br /> |
| 30 | + </> |
| 31 | + ); |
| 32 | + }); |
| 33 | +}; |
| 34 | + |
| 35 | +export const ChecksumsLinks = ({ clis }) => { |
| 36 | + return clis.map((cliName) => { |
| 37 | + return ( |
| 38 | + <> |
| 39 | + <a |
| 40 | + key={`${cliName}-checksum`} |
| 41 | + href={`https://storage.googleapis.com/golioth-cli-releases/${cliName}/latest/checksums.txt`} |
| 42 | + > |
| 43 | + checksums.txt for {cliName} |
| 44 | + </a> |
| 45 | + <br /> |
| 46 | + </> |
| 47 | + ); |
| 48 | + }); |
| 49 | +}; |
| 50 | + |
| 51 | +| Operating System | Download link | |
| 52 | +| ---------------- | ------------------------------------------------------------------------------------------------- | |
| 53 | +| macOS | <DownloadLinks variant="macos_64bit" osName="macOS" clis={["goliothctl","coap-cli"]} /> | |
| 54 | +| Linux 32bit | <DownloadLinks variant="linux_32bit" osName="Linux 32bit" clis={["goliothctl","coap-cli"]} /> | |
| 55 | +| Linux 64bit | <DownloadLinks variant="linux_64bit" osName="Linux 64bit" clis={["goliothctl","coap-cli"]} /> | |
| 56 | +| ARM Linux 64bit | <DownloadLinks variant="linux_arm64" osName="ARM Linux 64bit" clis={["goliothctl","coap-cli"]} /> | |
| 57 | +| Windows 32bit | <DownloadLinks variant="windows_32bit" osName="Windows 32bit" clis={["goliothctl","coap-cli"]} /> | |
| 58 | +| Windows 64bit | <DownloadLinks variant="windows_64bit" osName="Windows 64bit" clis={["goliothctl","coap-cli"]} /> | |
| 59 | +| Checksums | <ChecksumsLinks clis={["goliothctl","coap-cli"]} /> | |
| 60 | + |
| 61 | +Each zip file contains [goliothctl](/docs/reference/goliothctl/goliothctl) and [coap](/docs/reference/coap/coap) command line tools. |
0 commit comments