gcloud alpha code dev

NAME
gcloud alpha code dev - run a Cloud Run service in a local development environment
SYNOPSIS
gcloud alpha code dev [--build-context-directory=BUILD_CONTEXT_DIRECTORY] [--builder=BUILDER] [--cloudsql-instances=[CLOUDSQL_INSTANCE,…]] [--cpu-limit=CPU_LIMIT] [--dockerfile=DOCKERFILE; default="Dockerfile"] [--image-name=IMAGE_NAME] [--local-port=LOCAL_PORT] [--memory-limit=MEMORY_LIMIT] [--minikube-vm-driver=MINIKUBE_VM_DRIVER; default="docker"] [--namespace=NAMESPACE] [--service-account=SERVICE_ACCOUNT] [--service-name=SERVICE_NAME] [--stop-cluster] [--env-vars=[KEY=VALUE,…]     | --env-vars-file=FILE_PATH] [--kind-cluster=KIND_CLUSTER     | --kube-context=KUBE_CONTEXT     | --minikube-profile=MINIKUBE_PROFILE] [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) By default, this command runs the user's containers on minikube on the local machine. To run on another kubernetes cluster, use the --kube-context flag.

When using minikube, if the minikube cluster is not running, this command will start a new minikube cluster with that name.

FLAGS
--build-context-directory=BUILD_CONTEXT_DIRECTORY
If set, use this as the context directory when building the container image. Otherwise, the directory of the Dockerfile will be used.
--builder=BUILDER
Build with a given Cloud Native Computing Foundation Buildpack builder.
--cloudsql-instances=[CLOUDSQL_INSTANCE,…]
Cloud SQL instance connection strings. Must be in the form <project>:<region>:<instance>.
--cpu-limit=CPU_LIMIT
Container CPU limit. Limit is expressed as a number of CPUs. Fractional CPU limits are allowed (e.g. 1.5).
--dockerfile=DOCKERFILE; default="Dockerfile"
Dockerfile for the service image.
--image-name=IMAGE_NAME
Name for the built docker image.
--local-port=LOCAL_PORT
Local port to which the service connection is forwarded. If this flag is not set, then a random port is chosen.
--memory-limit=MEMORY_LIMIT
Container memory limit. Limit is expressed either as an integer representing the number of bytes or an integer followed by a unit suffix. Valid unit suffixes are "B", "KB", "MB", "GB", "TB", "KiB", "MiB", "GiB", "TiB", or "PiB".
--minikube-vm-driver=MINIKUBE_VM_DRIVER; default="docker"
If running on minikube, use this vm driver.
--namespace=NAMESPACE
Kubernetes namespace for development kubernetes objects.
--service-account=SERVICE_ACCOUNT
When connecting to Google Cloud Platform services, use a service account key.
--service-name=SERVICE_NAME
Name of the service.
--stop-cluster
If running on minikube or kind, stop the minkube profile or kind cluster at the end of the session.
At most one of these may be specified:
--env-vars=[KEY=VALUE,…]
List of key-value pairs to set as environment variables.
--env-vars-file=FILE_PATH
Path to a local YAML file with definitions for all environment variables.
At most one of these may be specified:
--kind-cluster=KIND_CLUSTER
Kind cluster.
--kube-context=KUBE_CONTEXT
Kubernetes context.
--minikube-profile=MINIKUBE_PROFILE
Minikube profile.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access whitelist.