gcloud alpha compute instance-templates import

NAME
gcloud alpha compute instance-templates import - import an instance template
SYNOPSIS
gcloud alpha compute instance-templates import NAME [--endpoint-mode=ENDPOINT_MODE] [--source=SOURCE] [--global     | --region=REGION] [GCLOUD_WIDE_FLAG …]
DESCRIPTION
(ALPHA) Creates a Compute Engine virtual machine instance template from a file containing the template's configuration.
EXAMPLES
An instance template can be imported by running:
gcloud alpha compute instance-templates import NAME --source=<path-to-file>
POSITIONAL ARGUMENTS
NAME
Name of the instance template to import.
FLAGS
--endpoint-mode=ENDPOINT_MODE
Specifies endpoint mode for a given command. Regional endpoints provide enhanced data residency and reliability by ensuring your request is handled entirely within the specified Google Cloud region. This differs from global endpoints, which may process parts of the request outside the target region. Overrides the default regional/endpoint_mode property value for this command invocation. ENDPOINT_MODE must be one of:
global
(Default) Use global rather than regional endpoints.
regional
Only use regional endpoints. An error will be raised if a regional endpoint is not available for a given command.
regional-preferred
Use regional endpoints when available, otherwise use global endpoints. Recommended for most users.
--source=SOURCE
Path to a YAML file containing configuration export data. Alternatively, you may omit this flag to read from standard input. For a schema describing the export/import format, see: $CLOUDSDKROOT/lib/googlecloudsdk/schemas/compute/alpha/InstanceTemplate.yaml.
Note: $CLOUDSDKROOT represents the Google Cloud CLI's installation directory.
At most one of these can be specified:
--global
If set, the instance template is global.
--region=REGION
Region of the instance template to import. Overrides the default compute/region property value for this command invocation.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --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.

REGIONAL ENDPOINTS
This command supports regional endpoints. To use regional endpoints for this command, use the --endpoint-mode=regional-preferred flag. To use regional endpoints by default, run $ gcloud config set regional/endpoint_mode regional-preferred.
NOTES
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. These variants are also available:
gcloud compute instance-templates import
gcloud beta compute instance-templates import
gcloud preview compute instance-templates import