glean-shortcuts

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

glean shortcuts

glean shortcuts

PREREQUISITE: Read
../glean-shared/SKILL.md
for auth, global flags, and security rules.
Manage Glean shortcuts (go-links). Subcommands: list, get, create, update, delete.
bash
glean shortcuts <subcommand> [flags]
前提条件: 阅读
../glean-shared/SKILL.md
了解认证、全局标志和安全规则。
管理Glean快捷方式(go-links)。子命令包括:list、get、create、update、delete。
bash
glean shortcuts <subcommand> [flags]

Subcommands

子命令

SubcommandDescription
create
Create a new shortcut
delete
Delete a shortcut
get
Get a specific shortcut
list
List all shortcuts
update
Update an existing shortcut
子命令描述
create
创建新的快捷方式
delete
删除快捷方式
get
获取特定快捷方式
list
列出所有快捷方式
update
更新现有快捷方式

Flags

标志

FlagTypeDefaultDescription
--dry-run
booleanfalsePrint request without sending
--json
stringJSON request body (see Glean API docs for shape)
--output
json | ndjson | textjson
标志类型默认值描述
--dry-run
布尔值false打印请求但不发送
--json
字符串JSON请求体(格式请参考Glean API文档)
--output
json | ndjson | textjson

Examples

示例

bash
glean shortcuts list | jq '.results[].inputAlias'
glean shortcuts create --json '{"data":{"inputAlias":"test/link","destinationUrl":"https://example.com"}}'
bash
glean shortcuts list | jq '.results[].inputAlias'
glean shortcuts create --json '{"data":{"inputAlias":"test/link","destinationUrl":"https://example.com"}}'

Discovering Commands

命令探索

bash
undefined
bash
undefined

Show machine-readable schema for this command

显示该命令的机器可读模式

glean schema shortcuts
glean schema shortcuts

List all available commands

列出所有可用命令

glean schema | jq '.commands'
undefined
glean schema | jq '.commands'
undefined