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

-c no longer works but --command does

Open jboolean opened this issue 3 years ago • 1 comments

I just updated from serverless 1 to 3 and serverless-wsgi from 2 to 3.

This command no longer worked:

serverless wsgi manage -c migrate --stage staging

It results in the error

Invalid "--config" value: Unsupported file extension (expected one of: yml, yaml, json, js, ts

However, this does

serverless wsgi manage --command migrate --stage staging

This doesn't seem intentional?

jboolean avatar Nov 27 '22 03:11 jboolean

I'm getting the same issue with the exec command:

❯ sls wsgi exec -c "import math; print((1 + math.sqrt(5)) / 2)"
Running "serverless" from node_modules
Environment: darwin, node 20.5.1, framework 3.34.0 (local) 3.34.0v (global), plugin 6.2.3, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Invalid "--config" value: Unsupported file extension (expected one of: yml, yaml, json, js, mjs, cjs, ts
❯ sls --version
Running "serverless" from node_modules
Framework Core: 3.34.0 (local) 3.34.0 (global)
Plugin: 6.2.3
SDK: 4.3.2

Alsheh avatar Sep 05 '23 09:09 Alsheh