This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Get nRF command line tools from terminal (without clicking any buttons)

Hello.
I used to download (& install) nRF Command Line tools from terminal with this command (in Dockerfile, but it doesn't matter)
RUN wget https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF5-command-line-tools/sw/nRF-Command-Line-Tools_9_8_1_Linux-x86_64.tar -O /tmp/nRF-Command-Line-Tools_9_8_1_Linux-x86_64.tar && \
tar xvf /tmp/nRF-Command-Line-Tools_9_8_1_Linux-x86_64.tar -C /home/build
Since you've changed the download structure on the webpage: is there any way to directly get that file (or newer version) without human interaction?
Parents
  • Ok. I've got it. You have create POST request with proper fileid (you can find it by manually downloading the file and looking for request to DownloadPlatform). This is working solution (for now) for nRF CL Tools 9.8.1:

    curl --form "fileid=8F19D314130548209E75EFFADD9348DB" https://www.nordicsemi.com/api/sitecore/Products/DownloadPlatform -o nRF-Command-Line-Tools_9_8_1_Linux-x86_64.tar

    Thank you  for nudging me in the right direction. Tried looking for direct link earlier, but stopped when I've got to /DownloadPlatform and didn't check requests.

Reply
  • Ok. I've got it. You have create POST request with proper fileid (you can find it by manually downloading the file and looking for request to DownloadPlatform). This is working solution (for now) for nRF CL Tools 9.8.1:

    curl --form "fileid=8F19D314130548209E75EFFADD9348DB" https://www.nordicsemi.com/api/sitecore/Products/DownloadPlatform -o nRF-Command-Line-Tools_9_8_1_Linux-x86_64.tar

    Thank you  for nudging me in the right direction. Tried looking for direct link earlier, but stopped when I've got to /DownloadPlatform and didn't check requests.

Children
No Data
Related