Upgrading the eyk CLI tool

Overview

This article addresses issues that may present themselves when upgrading the Engine Yard Kontainers (EYK) CLI Tool on Mac an Linux operating systems.

The CLI tool has a built-in the capability to upgrade itself whenever a new version is made available.  And while it will not carry on with the upgrade in an automatic manner, it will tell that a new version is available every time it's executed:

me@local:~/work/EngineYard/$ eyk whoami
wd
You are daniel at https://eyk.cluster.example.ey.io

NOTICE: There is a new version of eyk available.

Current Version: v1.0.4
Latest Version: v1.0.5

You can update with 'eyk update'
me@local:~/work/EngineYard$

 


Potential issues upgrading the tool:

As prompted, the CLI tool can be upgrade by running:

$ eyk update

which should happen smoothly.  But in some cases the following scenarios may occur:

Permissions on the binary file

If the user running the update does not have permissions to overwrite the binary, then the update will fail:

me@local:~/work/EngineYard$ eyk update
Updating from v1.0.4 to v1.0.5 ...

Error: CLI update failed.

could not download latest release


me@local:~/work/EngineYard$

Which can be solved by running the update through sudo:

me@local:~/work/EngineYard$ sudo eyk update
Updating from v1.0.4 to v1.0.5 ...

Downloading... 22659072 complete

Your previous version is available here:

/usr/local/bin/eyk-v1.0.4

You can delete this at your leisure.
me@local:~/work/EngineYard$ eyk -v
v1.0.5
me@local:~/work/EngineYard$

Permissions at the system level on MacOS

In certain occasions, upgrading the CLI may result on either a binary execution error, or the OS refusing at all to execute the CLI tool.  Faced with this case, do check on the "Security & Privacy" section of the System Preferences, and give permissions for the app to be executed.

 


Related Articles

Comments

Article is closed for comments.