mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-20 13:10:18 +00:00
gcloud: Tue Mar 1 21:43:54 UTC 2022
This commit is contained in:
parent
c1c3b75313
commit
21878eea72
1018 changed files with 4838 additions and 3409 deletions
|
|
@ -20,9 +20,10 @@ EXAMPLES
|
|||
To create a job under project example in region us-central1, run:
|
||||
|
||||
$ gcloud beta ai custom-jobs create --region=us-central1 \
|
||||
--project=example
|
||||
--worker-pool-spec=replica-count=1,machine-type='n1-highmem-2',container-image-uri='gcr.io/ucaip-test/ucaip-training-test'
|
||||
--display-name=test
|
||||
--project=example \
|
||||
--worker-pool-spec=replica-count=1,machine-type='n1-highmem-2',\
|
||||
container-image-uri='gcr.io/ucaip-test/ucaip-training-test' \
|
||||
--display-name=test
|
||||
|
||||
REQUIRED FLAGS
|
||||
--display-name=DISPLAY_NAME
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ EXAMPLES
|
|||
To create an endpoint under project example in region us-central1, run:
|
||||
|
||||
$ gcloud beta ai endpoints create --project=example \
|
||||
--region=us-central1
|
||||
--display-name=my_endpoint
|
||||
--region=us-central1 --display-name=my_endpoint
|
||||
|
||||
REQUIRED FLAGS
|
||||
--display-name=DISPLAY_NAME
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ EXAMPLES
|
|||
us-central1, run:
|
||||
|
||||
$ gcloud beta ai endpoints deploy-model 123 --project=example \
|
||||
--region=us-central1 --model=456
|
||||
--display-name=my_deployed_model
|
||||
--region=us-central1 --model=456 \
|
||||
--display-name=my_deployed_model
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Endpoint resource - The endpoint to deploy a model to. The arguments in
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@ EXAMPLES
|
|||
us-central1, run:
|
||||
|
||||
$ gcloud beta ai endpoints predict 123 --project=example \
|
||||
--region=us-central1
|
||||
--json-request=input.json
|
||||
--region=us-central1 --json-request=input.json
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Endpoint resource - The endpoint to do online prediction. The arguments in
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ EXAMPLES
|
|||
To send the image file image.jpeg and set the content type, run:
|
||||
|
||||
$ gcloud beta ai endpoints raw-predict 123 --project=example \
|
||||
--region=us-central1
|
||||
--http-headers=Content-Type=image/jpeg --request=@image.jpeg
|
||||
--region=us-central1 --http-headers=Content-Type=image/jpeg \
|
||||
--request=@image.jpeg
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Endpoint resource - The endpoint to do online raw prediction. The
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@ EXAMPLES
|
|||
region us-central1, run:
|
||||
|
||||
$ gcloud beta ai endpoints undeploy-model 123 --project=example \
|
||||
--region=us-central1
|
||||
--deployed-model-id=456
|
||||
--region=us-central1 --deployed-model-id=456
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Endpoint resource - The endpoint to undeploy a model from. The arguments
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@ EXAMPLES
|
|||
To update an endpoint 123 under project example in region us-central1, run:
|
||||
|
||||
$ gcloud beta ai endpoints update 123 --project=example \
|
||||
--region=us-central1
|
||||
--display-name=new_name
|
||||
--region=us-central1 --display-name=new_name
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Endpoint resource - The endpoint to update. The arguments in this group
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ EXAMPLES
|
|||
projects/123/global/networks/test-network in region us-central1, run:
|
||||
|
||||
$ gcloud beta ai index-endpoints create \
|
||||
--display-name=index-endpoint --description=test
|
||||
--network=projects/123/global/networks/test-network
|
||||
--project=example --region=us-central1
|
||||
--display-name=index-endpoint --description=test \
|
||||
--network=projects/123/global/networks/test-network \
|
||||
--project=example --region=us-central1
|
||||
|
||||
REQUIRED FLAGS
|
||||
--display-name=DISPLAY_NAME
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ EXAMPLES
|
|||
456 under project example in region us-central1, run:
|
||||
|
||||
$ gcloud beta ai index-endpoints undeploy-index 456 \
|
||||
--project=example --region=us-central1
|
||||
--deployed-index-id=deployed-index-345
|
||||
--project=example --region=us-central1 \
|
||||
--deployed-index-id=deployed-index-345
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Index endpoint resource - The index endpoint to undeploy an index. The
|
||||
|
|
|
|||
|
|
@ -11,9 +11,8 @@ EXAMPLES
|
|||
To create an index under project example in region us-central1, run:
|
||||
|
||||
$ gcloud beta ai indexes create --display-name=index \
|
||||
--description=test
|
||||
--metadata-file=path/to/your/metadata.json
|
||||
--project=example --region=us-central1
|
||||
--description=test --metadata-file=path/to/your/metadata.json \
|
||||
--project=example --region=us-central1
|
||||
|
||||
REQUIRED FLAGS
|
||||
--display-name=DISPLAY_NAME
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ SYNOPSIS
|
|||
EXAMPLES
|
||||
To update index 123 under project example in region us-central1, run:
|
||||
|
||||
$ gcloud beta ai indexes update --display-name=new-name
|
||||
--metadata-file=path/to/your/metadata.json --project=example
|
||||
--region=us-central1
|
||||
$ gcloud beta ai indexes update --display-name=new-name \
|
||||
--metadata-file=path/to/your/metadata.json --project=example \
|
||||
--region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Index resource - Index to update. The arguments in this group can be used
|
||||
|
|
|
|||
|
|
@ -23,9 +23,10 @@ EXAMPLES
|
|||
To upload a model under project example in region us-central1, run:
|
||||
|
||||
$ gcloud beta ai models upload \
|
||||
--container-image-uri="gcr.io/example/my-image"
|
||||
--description=example-model --display-name=my-model
|
||||
--artifact-uri='gs://bucket/path' --project=example --region=us-central1
|
||||
--container-image-uri="gcr.io/example/my-image" \
|
||||
--description=example-model --display-name=my-model \
|
||||
--artifact-uri='gs://bucket/path' --project=example \
|
||||
--region=us-central1
|
||||
|
||||
REQUIRED FLAGS
|
||||
--container-image-uri=CONTAINER_IMAGE_URI
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue