gcloud compute instance-templates import

INFORMATION
gcloud compute instance-templates import is supported in universe domain universe; however, some of the values used in the help text may not be available. Command examples may not work as-is and may requires changes before execution.
NAME
gcloud compute instance-templates import - import an instance template
SYNOPSIS
gcloud compute instance-templates import NAME [--endpoint-mode=ENDPOINT_MODE] [--source=SOURCE] [--global     | --region=REGION] [GCLOUD_WIDE_FLAG …]
DESCRIPTION
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 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/v1/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
These variants are also available:
gcloud alpha compute instance-templates import
gcloud beta compute instance-templates import
gcloud preview compute instance-templates import