Deploy (prepare and activate) an application package
Deploy (prepare and activate) an application package.
An application package defines a deployable Vespa application. See https://docs.vespa.ai/en/reference/application-packages-reference.html for details about the files contained in this package.
To get started, 'vespa clone' can be used to download a sample application.
This command deploys an application package. When deploy returns successfully the application package has been validated and activated on config servers. The process of applying it on individual nodes has started but may not have completed.
If application directory is not specified, it defaults to working directory.
In Vespa Cloud you may override the Vespa runtime version (–version) for your deployment. This option should only be used if you have a reason for using a specific version. By default Vespa Cloud chooses a suitable version for you.
vespa deploy [application-directory-or-file] [flags]
$ vespa deploy .
$ vespa deploy -t cloud
$ vespa deploy -t cloud -z dev.aws-us-east-1c # -z can be omitted here as this zone is the default
$ vespa deploy -t cloud -z perf.aws-us-east-1c
-A, --add-cert Copy certificate of the configured application to the current application package
-h, --help help for deploy
-l, --log-level string Log level for Vespa logs. Must be "error", "warning", "info" or "debug" (default "error")
-V, --version string Override the Vespa runtime version to use in Vespa Cloud
-w, --wait int Number of seconds to wait for service(s) to become ready. 0 to disable (default 0)
-a, --application string The application to use (cloud only)
-C, --cluster string The container cluster to use. This is only required for applications with multiple clusters
-c, --color string Whether to use colors in output. Must be "auto", "never", or "always" (default "auto")
-i, --instance string The instance of the application to use (cloud only)
-q, --quiet Print only errors
-t, --target string The target platform to use. Must be "local", "cloud", "hosted" or an URL (default "local")
-z, --zone string The zone to use. This defaults to a dev zone (cloud only)