- NAME
-
- gcloud alpha agent-registry skills create - create skills
- SYNOPSIS
-
-
gcloud alpha agent-registry skills createSKILL[--async] [--default-revision=DEFAULT_REVISION] [--description=DESCRIPTION] [--display-name=DISPLAY_NAME] [--location=LOCATION] [--publisher=PUBLISHER] [--request-id=REQUEST_ID] [--target-state=TARGET_STATE] [--type=TYPE] [--initial-revision-name=INITIAL_REVISION_NAME--payload=PAYLOAD| [--gcs-source-uri=GCS_SOURCE_URI:--gcs-source-generation=GCS_SOURCE_GENERATION]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Create a skill - EXAMPLES
-
To create the skill, run:
gcloud alpha agent-registry skills create - 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.
-
Revision resource - 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
--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.
--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.
- Represents an immutable, versioned snapshot of a Skill package.
--initial-revision-name=INITIAL_REVISION_NAME-
Identifier. Resource name of the SkillRevision. Format:
projects/{project}/locations/{location}/skills/{skill}/revisions/{revision} -
Arguments for the source.
At most one of these can be specified:
- Direct write-only raw archive payload upload.
--payload=PAYLOAD- Local path to the ZIP archive payload containing the skill.
- Specifications for Cloud Storage objects.
--gcs-source-uri=GCS_SOURCE_URI-
Cloud Storage object URI. Format:
gs://{bucket_name}/{object_name}This flag argument must be specified if any of the other arguments in this group are specified.
--gcs-source-generation=GCS_SOURCE_GENERATION- Cloud Storage object generation ID. If not specified, the latest generation is used.
- 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/v1alphaAPI. The full documentation for this API can be found at: https://docs.cloud.google.com/agent-registry/overview - 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.
gcloud alpha agent-registry skills create
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-07-21 UTC.