# Functions overview

See the following documentation based on your function version:

- For Cloud Run functions, see [Cloud Run documentation](https://docs.cloud.google.com/run/docs/functions-with-run.md.txt).
  - Learn how to [deploy a Cloud Run function](https://docs.cloud.google.com/run/docs/deploy-functions.md.txt).
  - If you have existing functions and need to use `gcloud functions` commands or the Cloud Functions v2 API for backward compatibility, see [Deploy functions created with the v2 API](https://docs.cloud.google.com/run/docs/functions/comparison.md.txt#v2-deploy).
- For Cloud Run functions (1st gen), see [Deploy a function (1st gen)](https://docs.cloud.google.com/functions/1stgendocs/deploy.md.txt).

For a comparison of the two versions, see
[Compare Cloud Run functions](https://docs.cloud.google.com/run/docs/functions/comparison.md.txt).