Create files and directory structure from a Vespa sample application
Create files and directory structure from a Vespa sample application.
Sample applications are downloaded from https://github.com/vespa-engine/sample-apps.
By default sample applications are cached in the user's cache directory. This directory can be overridden by setting the VESPA_CLI_CACHE_DIR environment variable.
vespa clone sample-application-path target-directory [flags]
$ vespa clone album-recommendation my-app
-f, --force Ignore cache and force downloading the latest sample application from GitHub
-h, --help help for clone
-l, --list List available sample applications
-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)