- INFORMATION
- 
gcloud alpha ai models copyis supported in universe domainuniverse; 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 alpha ai models copy - copy a model
 
- SYNOPSIS
- 
- 
gcloud alpha ai models copy--source-model=SOURCE_MODEL[--kms-key-name=KMS_KEY_NAME] [--region=REGION] [--destination-model-id=DESTINATION_MODEL_ID|--destination-parent-model=DESTINATION_PARENT_MODEL] [GCLOUD_WIDE_FLAG …]
 
- 
- EXAMPLES
- 
To copy a model 123of projectexamplefrom regionus-central1to regioneurope-west4, run:gcloud alpha ai models copy --source-model=projects/example/locations/us-central1/models/123 --region=projects/example/locations/europe-west4
- REQUIRED FLAGS
- 
- --source-model=- SOURCE_MODEL
- 
The resource name of the Model to copy. That Model must be in the same Project.
Format: projects/{project}/locations/{location}/models/{model}.
 
- OPTIONAL FLAGS
- 
- --kms-key-name=- KMS_KEY_NAME
- 
The Cloud KMS resource identifier of the customer managed encryption key used to
protect the resource. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. The key needs to be in the same region as the destination region of the model to be copied.
- 
Region resource - Cloud region to copy the model into. This represents a Cloud
resource. (NOTE) Some attributes are not given arguments in this group but can
be set in other ways.
To set the projectattribute:- 
provide the argument --regionon the command line with a fully specified name;
- 
set the property ai/regionwith a fully specified name;
- choose one from the prompted list of available regions with a fully specified name;
- 
provide the argument --projecton the command line;
- 
set the property core/project.
 - --region=- REGION
- 
ID of the region or fully qualified identifier for the region.
To set the regionattribute:- 
provide the argument --regionon the command line;
- 
set the property ai/region;
- choose one from the prompted list of available regions.
 
- 
provide the argument 
 
- 
provide the argument 
- 
At most one of these can be specified:
- --destination-model-id=- DESTINATION_MODEL_ID
- 
Copy source_model into a new Model with this ID. The ID will become the final
component of the model resource name. This value may be up to 63 characters, and
valid characters are [a-z0-9-]. The first character cannot be a number or hyphen.
- --destination-parent-model=DESTINATION_PARENT_MODEL
- 
Specify this field to copy source_model into this existing Model as a new
version. Format:
projects/{project}/locations/{location}/models/{model}.
 
 
- 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 helpfor details.
- 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 ai models copygcloud beta ai models copy
      gcloud alpha ai models copy
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-16 UTC.
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-16 UTC."],[],[]]