You can run gcloud help preview app run to display a help page describing the launch command and its parameters. --custom-entrypoint described as:
--custom-entrypoint CUSTOM_ENTRYPOINT Specify an entrypoint for custom runtime modules. This is required when such modules are present. Include "{port}" in the string (without quotes) to pass the port number in as an argument. For instance: --custom_entrypoint="gunicorn -b localhost:{port} mymodule:application"
Note that the error message says --custom_entrypoint , with an underscore, but the --customer_entrypoint parameter with a dash. The correct name is --custom-entrypoint see: https://code.google.com/p/google-cloud-sdk/issues/detail?id=191
For a node node, you should use something like:
gcloud preview app run app.yaml --project=your-project-id --custom-entrypoint "node index.js {port}"
Depending on how you run your application. The port also seems to be available as a PORT environment variable, so you don't need to use {port} if your application does not process command line arguments.
I could not use npm start or other npm run <script> from --custom-entrypoint .
gabrielf
source share