Makers Blog Archive

How to upgrade PLCnext CLI to version 2020.0 LTS on Linux

Martin PLCnext Team 09 December 2019 min. read
444 views 0 comments

Here is a basic guide to installing PLCnext CLI version 2020.0 LTS on a Linux operating system, when there is an earlier version of the CLI already installed.

The procedure below assumes that there is an existing PLCnext CLI installation on the Linux host, in the directory ~/plcncli.

  1. Download the file “SDK und PLCnCLI für Linux 64-Bit” from the Downloads page for the AXC F 2152.
  2. Unzip the file into the Linux directory ~/Downloads. Note that the zip archive includes both the PLCnCLI installation script, and a Software Development Kit (SDK).
  3. On a Linux command line, go to the home directory:cd ~
  4. Remove the current installation of the PLCnext CLI:rm -r plcncli
  5. Install the new version of the PLCnext CLI to the plcncli directory:Downloads/PLCnCLI_Setup.sh --target plcncli
  6. Update the symbolic link to the plcncli executable, as suggested by the installation message, if necessary.
  7. Check the version of the PLCnext CLI:plcncli
  8. Migrate the SDK and target information from the previous version of the PLCnext CLI:plcncli migrate-old-cli
  9. Check the installed SDKs and targets:plcncli get sdks plcncli get targets

You should see all the SDKs and targets that were installed with the previous version of the PLCnext CLI tool. Note that the format of the output from these two commands has changed from the previous version.

You can now go ahead and install the SDK for firmware version 2020.0 LTS.

Note:

The Makers Blog shows applications and user stories of community members that are not tested or reviewed by Phoenix Contact. Use them at your own risk.

Discussion

Please login/register to comment

Login/Register

Leave a Reply

Newsletter
Never miss a new article
Sign up for the newsletter
Never miss news about PLCnext Technology
Get interesting content via newsletter four times a year
Receive exclusive information before all other users