- NAME
-
- gcloud agent-registry skills update - update skills
- SYNOPSIS
-
-
gcloud agent-registry skills updateSKILL[--async] [--description=DESCRIPTION] [--display-name=DISPLAY_NAME] [--endpoint-mode=ENDPOINT_MODE] [--location=LOCATION] [--publisher=PUBLISHER] [--request-id=REQUEST_ID] [--target-state=TARGET_STATE] [--type=TYPE] [--clear-default-revision|--default-revision=DEFAULT_REVISION] [--clear-initial-revision--initial-revision-name=INITIAL_REVISION_NAME] [--scanning-policy=SCANNING_POLICY|--scanning-state=SCANNING_STATE] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Update a skill
- EXAMPLES
-
To update the skill, run:
gcloud agent-registry skills update - POSITIONAL ARGUMENTS
-
-
Skill resource - Identifier. Resource name of the Skill. Format:
projects/{project}/locations/{location}/skills/{skill}The{skill}segment acts as the resource ID. If the skill is associated with a Publisher, this segment typically uses a hyphenated namespace prefix corresponding to the publisher (e.g.,google-workspace-create-docs). 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
skillon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
skillon the command line with a fully specified name; -
provide the argument
--locationon the command line.
This must be specified.
SKILL-
ID of the skill or fully qualified identifier for the skill.
To set the
skillattribute:-
provide the argument
skillon the command line.
-
provide the argument
-
provide the argument
-
Skill resource - Identifier. Resource name of the Skill. Format:
- FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION- Brief summary describing the capabilities of the skill. Maximum length is 2048 characters.
--display-name=DISPLAY_NAME- Human-readable display name of the skill. Maximum length is 128 characters.
--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_modeproperty value for this command invocation.ENDPOINT_MODEmust 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.
--location=LOCATION- For resources [skill, default-revision, publisher], provides fallback value for resource location attribute. When the resource's full URI path is not provided, location will fallback to this flag value.
-
Publisher resource - The publisher resource associated with this skill. Format:
projects/{project}/locations/{location}/publishers/{publisher}The publisher dictates the allowed namespace prefixes for the skill's name and logicalskill_id(e.g., Publishergoogleauthorizes thegoogle-*prefix). 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
--publisheron the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
--publisheron the command line with a fully specified name; -
provide the argument
--locationon the command line.
-
provide the argument
--publisher=PUBLISHER-
ID of the publisher or fully qualified identifier for the publisher.
To set the
publisherattribute:-
provide the argument
--publisheron the command line.
-
provide the argument
--request-id=REQUEST_ID- Signed UUID request idempotency token.
--target-state=TARGET_STATE-
User-managed target state of the skill.
TARGET_STATEmust be one of:active- The skill is active.
decommissioned- The skill is decommissioned.
deprecated- The skill is deprecated.
disabled- The skill is disabled.
draft- The skill is in draft.
target-state-active- The skill is active and can be served.
target-state-decommissioned- The skill is decommissioned and cannot be served.
target-state-deprecated- The skill is deprecated. It can still be served, but emits warnings.
target-state-disabled- The skill is disabled and cannot be served.
target-state-draft- The skill is in draft and cannot be served.
--type=TYPE-
Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
TYPEmust be (only one value is supported):simple- A standard, leaf executable skill containing natural language and code.
-
Update default_revision.
At most one of these can be specified:
--clear-default-revision- Clear default_revision value and set to null.
-
Revision resource - Set default_revision to new value.
The full resource name of the revision currently served by default (floating track). Format:
projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}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
--default-revisionon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
--default-revisionon the command line with a fully specified name; -
provide the argument
--locationon the command line.
To set the
skillattribute:-
provide the argument
--default-revisionon the command line with a fully specified name.
-
provide the argument
--default-revision=DEFAULT_REVISION-
ID of the revision or fully qualified identifier for the revision.
To set the
revisionattribute:-
provide the argument
--default-revisionon the command line.
-
provide the argument
- Represents an immutable, versioned snapshot of a Skill package.
--clear-initial-revision- Set skill.initialRevision back to default value.
--initial-revision-name=INITIAL_REVISION_NAME-
Identifier. Resource name of the SkillRevision. Format:
projects/{project}/locations/{location}/skills/{skill}/revisions/{revision} -
Scanning configuration for the skill.
At most one of these can be specified:
--scanning-policy=SCANNING_POLICY-
Scanning policy for security analysis.
SCANNING_POLICYmust be one of:disabled- Bypasses security scanning entirely.
enabled-blocking- Scans skills and blocks revision download/promotion if findings are detected.
enabled-nonblocking- Scans skills and reports findings without blocking download/promotion.
--scanning-state=SCANNING_STATE-
Scanning policy for security analysis (alias for --scanning-policy).
SCANNING_STATEmust be one of:disabled- Bypasses security scanning entirely.
enabled-blocking- Scans skills and blocks revision download/promotion if findings are detected.
enabled-nonblocking- Scans skills and reports findings without blocking download/promotion.
- 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. - API REFERENCE
-
This command uses the
agentregistry/v1API. The full documentation for this API can be found at: https://docs.cloud.google.com/agent-registry/overview - REGIONAL ENDPOINTS
-
This command supports regional endpoints. To use regional endpoints for this
command, use the
--endpoint-mode=regional-preferredflag. To use regional endpoints by default, run$ gcloud config set regional/endpoint_mode regional-preferred. - NOTES
-
This variant is also available:
gcloud alpha agent-registry skills update
gcloud agent-registry skills update
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 2026-10-27 UTC.