akamai / cli-edgeworkers

Akamai CLI for EdgeWorkers, allows you to interact with EdgeWorkers APIs via a command line interface
Apache License 2.0
19 stars 24 forks source link

Cannot create token without missing expiry option in v1.8.0 #151

Open moegelin opened 3 months ago

moegelin commented 3 months ago

In version 1.8.0 the --expiry option was removed from edgekv.

However, if we remove this option from the command line we get this error:

ERROR: Unable to create edgekv token. Invalid expiration time. The time format should be provided as per ISO-8601. [TraceId: 850766a9f7ed429d]

So it seems the service still needs this option and the CLI does not allow this option anymore.

When trying to run the following command:

edgekv create token $token_name --save_path=src/ --overwrite --staging=allow --production=allow --ewids=all --namespace=$NAMESPACE --expiry=$expiry_date

we get this error:

error: unknown option '--expiry=2024-12-28'

The mentioned command was working fine with version 1.7.3

However it is not possible to install a specific version via akamai cli of the edgeworker cli. It will always install the latest which is not working.

ananner commented 3 months ago

Hi @moegelin, this was a bug that was mitigated in the EdgeKV 1.8.1 release. See https://github.com/akamai/cli-edgeworkers/pull/150. Let us know if you are still experiencing the error after upgrade.