gcloud agent-registry skills update

NAME
gcloud agent-registry skills update - update skills
SYNOPSIS
gcloud agent-registry skills update SKILL [--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 project attribute:

  • provide the argument skill on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

To set the location attribute:

  • provide the argument skill on the command line with a fully specified name;
  • provide the argument --location on the command line.

This must be specified.

SKILL
ID of the skill or fully qualified identifier for the skill.

To set the skill attribute:

  • provide the argument skill on the command line.
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_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.
--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 logical skill_id (e.g., Publisher google authorizes the google-* 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 project attribute:

  • provide the argument --publisher on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

To set the location attribute:

  • provide the argument --publisher on the command line with a fully specified name;
  • provide the argument --location on the command line.
--publisher=PUBLISHER
ID of the publisher or fully qualified identifier for the publisher.

To set the publisher attribute:

  • provide the argument --publisher on the command line.
--request-id=REQUEST_ID
Signed UUID request idempotency token.
--target-state=TARGET_STATE
User-managed target state of the skill. TARGET_STATE must 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). TYPE must 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 project attribute:

  • provide the argument --default-revision on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

To set the location attribute:

  • provide the argument --default-revision on the command line with a fully specified name;
  • provide the argument --location on the command line.

To set the skill attribute:

  • provide the argument --default-revision on the command line with a fully specified name.
--default-revision=DEFAULT_REVISION
ID of the revision or fully qualified identifier for the revision.

To set the revision attribute:

  • provide the argument --default-revision on the command line.
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_POLICY must 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_STATE must 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 help for details.

API REFERENCE
This command uses the agentregistry/v1 API. 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-preferred flag. 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