serverless-offline icon indicating copy to clipboard operation
serverless-offline copied to clipboard

flag --apiKey no longer working with version 12

Open berni-mad opened this issue 1 year ago • 2 comments

Bug Report

Current Behavior

I did an upgrade of the plugin from version 6 to version 12. With version 6, the following command would run without any issues.

serverless offline start -s local --host=0.0.0.0 --apiKey local

Now, with version 12, the plugin says that --apiKey is not a valid option, even though is still present in the latest documentation.

(https://www.serverless.com/plugins/serverless-offline)

Any idea why? If this option has been removed, could you please update the documentation accordingly and provide an alternative way to set up an apiKey?

Thanks,

Bernat

berni-mad avatar Jun 01 '23 12:06 berni-mad

Fairly sure they removed the flag in v11 https://github.com/dherault/serverless-offline/releases/tag/v11.0.0 but seems like you can specify it in the config still.

Lyrete avatar Jun 13 '23 19:06 Lyrete

@Lyrete is correct. The docs you linked to (https://www.serverless.com/plugins/serverless-offline) tripped me up and are out of date.

See this thread: https://github.com/dherault/serverless-offline/issues/1608#issuecomment-1306200311

jacobmoyle avatar Sep 13 '23 21:09 jacobmoyle