cli-reference
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoldsky CLI Reference
Goldsky CLI参考文档
Auto-generated from the Goldsky CLI source and turbo binary (turbo 0.9.1). Re-runto update.node scripts/generate-cli-reference.js
由Goldsky CLI源码和turbo二进制文件自动生成(turbo 0.9.1)。 重新运行以更新文档。node scripts/generate-cli-reference.js
goldsky login / logout
goldsky login / logout
- — Authenticate with Goldsky
goldsky login - — Remove stored credentials
goldsky logout
- — 登录Goldsky进行身份验证
goldsky login - — 删除存储的凭证
goldsky logout
goldsky turbo
goldsky turbo
Manages Turbo streaming pipelines. Delegates to the binary.
turbo管理Turbo流处理管道。委托给二进制文件执行。
turboSubcommands
子命令
goldsky turbo apply
goldsky turbo applygoldsky turbo apply
goldsky turbo applyApply a pipeline definition from YAML file
从YAML文件应用管道定义
goldsky turbo delete
goldsky turbo deletegoldsky turbo delete
goldsky turbo deleteDelete a pipeline by name
按名称删除管道
goldsky turbo pause
goldsky turbo pausegoldsky turbo pause
goldsky turbo pausePause a pipeline by name
按名称暂停管道
goldsky turbo resume
goldsky turbo resumegoldsky turbo resume
goldsky turbo resumeResume a paused pipeline by name
恢复已暂停的管道
goldsky turbo list
goldsky turbo listgoldsky turbo list
goldsky turbo listList all pipelines in the current project
列出当前项目中的所有管道
goldsky turbo logs
goldsky turbo logsgoldsky turbo logs
goldsky turbo logsStream logs from a pipeline
流式输出管道日志
goldsky turbo validate
goldsky turbo validategoldsky turbo validate
goldsky turbo validateValidate a pipeline definition without applying it
验证管道定义但不应用
goldsky turbo inspect
goldsky turbo inspectgoldsky turbo inspect
goldsky turbo inspectInspect live data flowing through a pipeline
检查管道中流动的实时数据
goldsky turbo get
goldsky turbo getgoldsky turbo get
goldsky turbo getGet pipeline details
获取管道详情
goldsky turbo state
goldsky turbo stategoldsky turbo state
goldsky turbo stateManage pipeline state
管理管道状态
goldsky pipeline
goldsky pipeline
Commands related to Goldsky pipelines
与Goldsky管道相关的命令
Subcommands
子命令
goldsky pipeline apply <config-path>
goldsky pipeline apply <config-path>goldsky pipeline apply <config-path>
goldsky pipeline apply <config-path>Apply the provided pipeline yaml config. This command creates the pipeline if it doesn
Arguments:
- — path to the yaml pipeline config file. (required)
<config-path>
Options:
- — Snapshot that will be used to start the pipeline. Applicable values are:
--from-snapshot <string> - — Attempt a snapshot of the pipeline before applying the update. Only applies if the pipeline already has status: ACTIVE and is running without issues. Defaults to saving progress unless pipeline is being updated to status=INACTIVE.
--save-progress - — skips the validation of the transforms when updating the pipeline. Defaults to false
--skip-transform-validation - — skips the validation of the transforms when updating the pipeline. Defaults to false [deprecated]
--skip-validation - — attempts to use the latest available snapshot.
--use-latest-snapshot - — Status of the pipeline
--status <string> - — Forces apply without any prompts, useful for using apply in CI
--force
应用提供的管道YAML配置。如果管道不存在,此命令会创建管道。
参数:
- — YAML管道配置文件的路径。(必填)
<config-path>
选项:
- — 用于启动管道的快照。可选值为:
--from-snapshot <string> - — 在应用更新前尝试对管道创建快照。仅当管道状态为ACTIVE且运行正常时生效。默认保存进度,除非管道更新后的状态为INACTIVE。
--save-progress - — 更新管道时跳过转换验证。默认值为false
--skip-transform-validation - — 更新管道时跳过转换验证。默认值为false(已弃用)
--skip-validation - — 尝试使用最新可用的快照。
--use-latest-snapshot - — 管道的状态
--status <string> - — 强制应用,不显示任何提示,适用于CI环境中使用apply命令
--force
goldsky pipeline cancel-update <nameOrConfigPath>
goldsky pipeline cancel-update <nameOrConfigPath>goldsky pipeline cancel-update <nameOrConfigPath>
goldsky pipeline cancel-update <nameOrConfigPath>Cancel in-flight update request
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
取消正在进行的更新请求
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
goldsky pipeline create <name>
goldsky pipeline create <name>goldsky pipeline create <name>
goldsky pipeline create <name>Create a pipeline
Arguments:
- — name of the new pipeline (required)
<name>
Options:
- — format of the output. Either json or table. Defaults to table. (default: yaml)
--output, -outputFormat <string> - — runtime resource size for when the pipeline runs (default: s) (required)
--resource-size, -resourceSize <string> - — skips the validation of the transforms when creating the pipeline.
--skip-transform-validation - — the description of the new pipeline
--description <string> - — definition of the pipeline that includes sources, transforms, sinks. Provided as json eg:
--definition <string> - — path to a json/yaml file with the definition of the pipeline that includes sources, transforms, sinks.
--definition-path <string> - — the desired status of the pipeline (default: ACTIVE)
--status <string> - — Whether the pipeline should use dedicated egress IPs (required)
--use-dedicated-ip
创建管道
参数:
- — 新管道的名称(必填)
<name>
选项:
- — 输出格式,可选json或table。默认值为table。(默认:yaml)
--output, -outputFormat <string> - — 管道运行时的资源大小(默认:s)(必填)
--resource-size, -resourceSize <string> - — 创建管道时跳过转换验证。
--skip-transform-validation - — 新管道的描述
--description <string> - — 包含数据源、转换、输出的管道定义,以JSON格式提供,例如:
--definition <string> - — 包含数据源、转换、输出的管道定义的JSON/YAML文件路径。
--definition-path <string> - — 管道的期望状态(默认:ACTIVE)
--status <string> - — 管道是否应使用专用出口IP(必填)
--use-dedicated-ip
goldsky pipeline delete <nameOrConfigPath>
goldsky pipeline delete <nameOrConfigPath>goldsky pipeline delete <nameOrConfigPath>
goldsky pipeline delete <nameOrConfigPath>Delete a pipeline
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
Options:
- — Force the deletion without prompting for confirmation
--f, -force
删除管道
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
选项:
- — 强制删除,不提示确认
--f, -force
goldsky pipeline export [name]
goldsky pipeline export [name]goldsky pipeline export [name]
goldsky pipeline export [name]Export pipeline configurations
Arguments:
- — pipeline name
[name]
Options:
- — Export pipeline configurations for all available pipelines
--all
导出管道配置
参数:
- — 管道名称
[name]
选项:
- — 导出所有可用管道的配置
--all
goldsky pipeline get-definition <name>
goldsky pipeline get-definition <name>goldsky pipeline get-definition <name>
goldsky pipeline get-definition <name>Arguments:
- — pipeline name (required)
<name>
Options:
- — format of the output. Either json or yaml. Defaults to yaml. (default: yaml) [deprecated]
--outputFormat, -output <string>
参数:
- — 管道名称(必填)
<name>
选项:
- — 输出格式,可选json或yaml。默认值为yaml。(默认:yaml)(已弃用)
--outputFormat, -output <string>
goldsky pipeline get <nameOrConfigPath>
goldsky pipeline get <nameOrConfigPath>goldsky pipeline get <nameOrConfigPath>
goldsky pipeline get <nameOrConfigPath>Get a pipeline
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
Options:
- — format of the output. Either json or table. Defaults to json. (default: yaml) [deprecated]
--outputFormat, -output <string> - — print the pipeline
--definition - — pipeline version. Returns latest version of the pipeline if not set.
--version <string>
获取管道信息
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
选项:
- — 输出格式,可选json或table。默认值为json。(默认:yaml)(已弃用)
--outputFormat, -output <string> - — 打印管道定义
--definition - — 管道版本。如果未设置,返回管道的最新版本。
--version <string>
goldsky pipeline info <nameOrConfigPath>
goldsky pipeline info <nameOrConfigPath>goldsky pipeline info <nameOrConfigPath>
goldsky pipeline info <nameOrConfigPath>Display pipeline information
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
Options:
- — pipeline version. Returns latest version of the pipeline if not set.
--version <string>
显示管道信息
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
选项:
- — 管道版本。如果未设置,返回管道的最新版本。
--version <string>
goldsky pipeline list
goldsky pipeline listgoldsky pipeline list
goldsky pipeline listList all pipelines
Options:
- — format of the output. Either json or table. Defaults to json. (default: table)
--output, -outputFormat <string> - — Either summary or all. Defaults to summary. (default: summary)
--outputVerbosity <string> - — includes runtime details for each pipeline like runtime status and errors. Defaults to false.
--include-runtime-details
列出所有管道
选项:
- — 输出格式,可选json或table。默认值为json。(默认:table)
--output, -outputFormat <string> - — 可选summary或all。默认值为summary。(默认:summary)
--outputVerbosity <string> - — 包含每个管道的运行时详情,如运行状态和错误。默认值为false。
--include-runtime-details
goldsky pipeline monitor <nameOrConfigPath>
goldsky pipeline monitor <nameOrConfigPath>goldsky pipeline monitor <nameOrConfigPath>
goldsky pipeline monitor <nameOrConfigPath>Monitor a pipeline runtime
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
Options:
- — pipeline version, uses latest version if not set.
--version <string> - — monitor update request
--update-request - — max. number of data refreshes.
--max-refreshes, -maxRefreshes <number>
监控管道运行时状态
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
选项:
- — 管道版本,如果未设置则使用最新版本。
--version <string> - — 监控更新请求
--update-request - — 数据刷新的最大次数。
--max-refreshes, -maxRefreshes <number>
goldsky pipeline pause <nameOrConfigPath>
goldsky pipeline pause <nameOrConfigPath>goldsky pipeline pause <nameOrConfigPath>
goldsky pipeline pause <nameOrConfigPath>Pause a pipeline
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
暂停管道
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
goldsky pipeline resize <nameOrConfigPath> <resourceSize>
goldsky pipeline resize <nameOrConfigPath> <resourceSize>goldsky pipeline resize <nameOrConfigPath> <resourceSize>
goldsky pipeline resize <nameOrConfigPath> <resourceSize>Resize a pipeline
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath> - — runtime resource size (required)
<resource-size>
调整管道资源大小
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath> - — 运行时资源大小(必填)
<resource-size>
goldsky pipeline restart <nameOrConfigPath>
goldsky pipeline restart <nameOrConfigPath>goldsky pipeline restart <nameOrConfigPath>
goldsky pipeline restart <nameOrConfigPath>Restart a pipeline. Useful in scenarios where pipeline needs to be restarted without any configuration changes.
Arguments:
- — pipeline name or config path (required)
<nameOrConfigPath>
Options:
- — Snapshot that will be used to start the pipeline. Applicable values are: (required)
--from-snapshot <string> - — Disables monitoring after the command is run. Defaults to false.
--disable-monitoring
重启管道。适用于无需更改配置即可重启管道的场景。
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
选项:
- — 用于启动管道的快照。可选值为:(必填)
--from-snapshot <string> - — 命令执行后禁用监控。默认值为false。
--disable-monitoring
goldsky pipeline start <nameOrConfigPath>
goldsky pipeline start <nameOrConfigPath>goldsky pipeline start <nameOrConfigPath>
goldsky pipeline start <nameOrConfigPath>Start a pipeline
Arguments:
- — pipeline name or config path (required)
<nameOrConfigPath>
Options:
- — attempts to use the latest available snapshot.
--use-latest-snapshot - — Snapshot that will be used to start the pipeline. Applicable values are:
--from-snapshot <string>
启动管道
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
选项:
- — 尝试使用最新可用的快照。
--use-latest-snapshot - — 用于启动管道的快照。可选值为:
--from-snapshot <string>
goldsky pipeline stop <nameOrConfigPath>
goldsky pipeline stop <nameOrConfigPath>goldsky pipeline stop <nameOrConfigPath>
goldsky pipeline stop <nameOrConfigPath>Stop a pipeline
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
停止管道
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
goldsky pipeline update <name>
goldsky pipeline update <name>goldsky pipeline update <name>
goldsky pipeline update <name>Arguments:
- — name of the pipeline to update. (required)
<name>
Options:
- — format of the output. Either json or table. Defaults to json. (default: yaml) (required) [deprecated]
--outputFormat, -output <string> - — runtime resource size for when the pipeline runs
--resource-size, -resourceSize <string> - — status of the pipeline
--status <string> - — takes a snapshot of the pipeline before applying the update. Only applies if the pipeline already has status: ACTIVE. Defaults to saving progress unless pipeline is being updated to status=INACTIVE.
--save-progress - — skips the validation of the transforms when updating the pipeline.
--skip-transform-validation - — attempts to use the latest available snapshot.
--use-latest-snapshot - — definition of the pipeline that includes sources, transforms, sinks. Provided as json eg:
--definition <string> - — path to a json/yaml file with the definition of the pipeline that includes sources, transforms, sinks.
--definition-path <string> - — description of the pipeline
--description <string>
参数:
- — 要更新的管道名称。(必填)
<name>
选项:
- — 输出格式,可选json或table。默认值为json。(默认:yaml)(必填)(已弃用)
--outputFormat, -output <string> - — 管道运行时的资源大小
--resource-size, -resourceSize <string> - — 管道的状态
--status <string> - — 在应用更新前对管道创建快照。仅当管道状态为ACTIVE时生效。默认保存进度,除非管道更新后的状态为INACTIVE。
--save-progress - — 更新管道时跳过转换验证。
--skip-transform-validation - — 尝试使用最新可用的快照。
--use-latest-snapshot - — 包含数据源、转换、输出的管道定义,以JSON格式提供,例如:
--definition <string> - — 包含数据源、转换、输出的管道定义的JSON/YAML文件路径。
--definition-path <string> - — 管道的描述
--description <string>
goldsky pipeline validate [config-path]
goldsky pipeline validate [config-path]goldsky pipeline validate [config-path]
goldsky pipeline validate [config-path]Validate a pipeline definition or config.
Arguments:
- — path to the yaml pipeline config file.
[config-path]
Options:
- — definition of the pipeline that includes sources, transforms, sinks. Provided as json eg: [deprecated]
--definition <string> - — path to a json/yaml file with the definition of the pipeline that includes sources, transforms, sinks. [deprecated]
--definition-path <string>
验证管道定义或配置。
参数:
- — YAML管道配置文件的路径。
[config-path]
选项:
- — 包含数据源、转换、输出的管道定义,以JSON格式提供,例如:(已弃用)
--definition <string> - — 包含数据源、转换、输出的管道定义的JSON/YAML文件路径。(已弃用)
--definition-path <string>
goldsky pipeline snapshots
goldsky pipeline snapshotsgoldsky pipeline snapshots
goldsky pipeline snapshotsCommands related to snapshots
与快照相关的命令
goldsky pipeline snapshots create <nameOrConfigPath>
goldsky pipeline snapshots create <nameOrConfigPath>goldsky pipeline snapshots create <nameOrConfigPath>
goldsky pipeline snapshots create <nameOrConfigPath>Attempts to take a snapshot of the pipeline
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
尝试对管道创建快照
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
goldsky pipeline snapshots list <nameOrConfigPath>
goldsky pipeline snapshots list <nameOrConfigPath>goldsky pipeline snapshots list <nameOrConfigPath>
goldsky pipeline snapshots list <nameOrConfigPath>List snapshots in a pipeline
Arguments:
- — pipeline name or config file path (required)
<nameOrConfigPath>
Options:
- — pipeline version. Returns snapshots across all versions if not set.
--version <string>
列出管道中的快照
参数:
- — 管道名称或配置文件路径(必填)
<nameOrConfigPath>
选项:
- — 管道版本。如果未设置,返回所有版本的快照。
--version <string>
goldsky subgraph
goldsky subgraph
Commands related to subgraphs
与Subgraph相关的命令
Subcommands
子命令
goldsky subgraph delete <nameAndVersion>
goldsky subgraph delete <nameAndVersion>goldsky subgraph delete <nameAndVersion>
goldsky subgraph delete <nameAndVersion>Delete a subgraph from Goldsky
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
Options:
- — Force the deletion without prompting for confirmation
--f, -force
从Goldsky中删除Subgraph
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
选项:
- — 强制删除,不提示确认
--f, -force
goldsky subgraph deploy <nameAndVersion>
goldsky subgraph deploy <nameAndVersion>goldsky subgraph deploy <nameAndVersion>
goldsky subgraph deploy <nameAndVersion>Deploy a subgraph to Goldsky
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
Options:
- — Path to subgraph
--path <string> - — Description/notes for the subgraph
--description <string> - — IPFS hash of a publicly deployed subgraph
--from-ipfs-hash <string> - — IPFS gateway to use if downloading the subgraph from IPFS (default: https://ipfs.network.thegraph.com)
--ipfs-gateway <string> - — Generate a subgraph from an ABI
--from-abi <string> - — GraphQL endpoint for a publicly deployed subgraph
--from-url <string> - — Remove grafts from the subgraph prior to deployment
--remove-graft - — Change start block of your subgraph prior to deployment. If used in conjunction with --graft-from, this will be the graft block as well.
--start-block <number> - — Graft from the latest block of an existing subgraph in the format <name>/<version>
--graft-from <string> - — Generate a subgraph from an ABI with call handlers enabled. Only meaningful when used with --from-abi
--enable-call-handlers - — Tag the subgraph after deployment, comma separated for multiple tags
--tag <string>
将Subgraph部署到Goldsky
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
选项:
- — Subgraph的路径
--path <string> - — Subgraph的描述/备注
--description <string> - — 公开部署的Subgraph的IPFS哈希
--from-ipfs-hash <string> - — 从IPFS下载Subgraph时使用的IPFS网关(默认:https://ipfs.network.thegraph.com)
--ipfs-gateway <string> - — 从ABI生成Subgraph
--from-abi <string> - — 公开部署的Subgraph的GraphQL端点
--from-url <string> - — 部署前移除Subgraph中的嫁接配置
--remove-graft - — 部署前更改Subgraph的起始块。如果与--graft-from一起使用,此值将作为嫁接块。
--start-block <number> - — 从现有Subgraph的最新块进行嫁接,格式为<name>/<version>
--graft-from <string> - — 从ABI生成Subgraph时启用调用处理器。仅当与--from-abi一起使用时有意义
--enable-call-handlers - — 部署后为Subgraph添加标签,多个标签用逗号分隔
--tag <string>
goldsky subgraph init [nameAndVersion]
goldsky subgraph init [nameAndVersion]goldsky subgraph init [nameAndVersion]
goldsky subgraph init [nameAndVersion]Initialize a new subgraph project with basic scaffolding
Arguments:
- — Name and version of the subgraph, e.g.
[nameAndVersion]
Options:
- — Target path to write subgraph files to
--target-path <string> - — Overwrite existing files at the target path
--force - — Path to instant subgraph JSON configuration file
--from-config <string> - — ABI source(s) for contract(s)
--abi <string> - — Contract address(es) to watch for events
--contract <string> - — Event names to index for the contract(s)
--contract-events <string> - — Call names to index for the contract(s)
--contract-calls <string> --network <string>- — Name of the contract(s)
--contract-name <string> - — Block to start at for a contract on a specific network
--start-block <string> - — Subgraph description
--description <string> - — Enable call handlers for the subgraph
--call-handlers - — Build the subgraph after writing files
--build - — Deploy the subgraph after build
--deploy
使用基础脚手架初始化新的Subgraph项目
参数:
- — Subgraph的名称和版本,例如:
[nameAndVersion]
选项:
- — 写入Subgraph文件的目标路径
--target-path <string> - — 覆盖目标路径下的现有文件
--force - — 即时Subgraph JSON配置文件的路径
--from-config <string> - — 合约的ABI源
--abi <string> - — 要监听事件的合约地址
--contract <string> - — 要索引的合约事件名称
--contract-events <string> - — 要索引的合约调用名称
--contract-calls <string> --network <string>- — 合约名称
--contract-name <string> - — 特定网络上合约的起始块
--start-block <string> - — Subgraph描述
--description <string> - — 为Subgraph启用调用处理器
--call-handlers - — 写入文件后构建Subgraph
--build - — 构建后部署Subgraph
--deploy
goldsky subgraph list [nameAndVersion]
goldsky subgraph list [nameAndVersion]goldsky subgraph list [nameAndVersion]
goldsky subgraph list [nameAndVersion]View deployed subgraphs and tags
Arguments:
- — Name and version of the subgraph, e.g.
[nameAndVersion]
Options:
- — Limit results to just tags or deployments (choices: tags, deployments)
--filter - — Summarize subgraphs & versions without all their details
--summary
查看已部署的Subgraph和标签
参数:
- — Subgraph的名称和版本,例如:
[nameAndVersion]
选项:
- — 将结果限制为标签或部署(可选值:tags, deployments)
--filter - — 汇总Subgraph和版本,不显示所有详情
--summary
goldsky subgraph log <nameAndVersion>
goldsky subgraph log <nameAndVersion>goldsky subgraph log <nameAndVersion>
goldsky subgraph log <nameAndVersion>Tail a subgraph
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
Options:
- — Return logs newer than a relative duration like now, 5s, 2m, or 3h (default: 1m)
--since - — The format used to output logs, use text or json for easier parsed output, use pretty for more readable console output (choices: pretty, json, text) (default: text)
--format - — The minimum log level to output (default: info)
--filter - — The explicit comma separated log levels to include (${SubgraphApi.SubgraphLogLevels.join(
--levels - — The time in seconds to wait between checking for new logs (default: 5)
--interval <number>
追踪Subgraph日志
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
选项:
- — 返回比相对时间更新的日志,例如now、5s、2m或3h(默认:1m)
--since - — 日志输出格式,使用text或json便于解析,使用pretty便于控制台阅读(可选值:pretty, json, text)(默认:text)
--format - — 输出的最低日志级别(默认:info)
--filter - — 要包含的明确日志级别,用逗号分隔
--levels - — 检查新日志的时间间隔(秒)(默认:5)
--interval <number>
goldsky subgraph pause <nameAndVersion>
goldsky subgraph pause <nameAndVersion>goldsky subgraph pause <nameAndVersion>
goldsky subgraph pause <nameAndVersion>Pause a subgraph
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
暂停Subgraph
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
goldsky subgraph start <nameAndVersion>
goldsky subgraph start <nameAndVersion>goldsky subgraph start <nameAndVersion>
goldsky subgraph start <nameAndVersion>Start a subgraph
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
启动Subgraph
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
goldsky subgraph update <nameAndVersion>
goldsky subgraph update <nameAndVersion>goldsky subgraph update <nameAndVersion>
goldsky subgraph update <nameAndVersion>Update a subgraph
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
Options:
- — Toggle public endpoint for the subgraph (choices: enabled, disabled)
--public-endpoint <string> - — Toggle private endpoint for the subgraph (choices: enabled, disabled)
--private-endpoint <string> - — Description/notes for the subgraph
--description <string>
更新Subgraph
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
选项:
- — 切换Subgraph的公共端点(可选值:enabled, disabled)
--public-endpoint <string> - — 切换Subgraph的私有端点(可选值:enabled, disabled)
--private-endpoint <string> - — Subgraph的描述/备注
--description <string>
goldsky subgraph tag
goldsky subgraph taggoldsky subgraph tag
goldsky subgraph tagCommands related to tags
与标签相关的命令
goldsky subgraph tag create <nameAndVersion>
goldsky subgraph tag create <nameAndVersion>goldsky subgraph tag create <nameAndVersion>
goldsky subgraph tag create <nameAndVersion>Create a new tag
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
Options:
- — The name of the tag (required)
--tag, -t <string>
创建新标签
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
选项:
- — 标签名称(必填)
--tag, -t <string>
goldsky subgraph tag delete <nameAndVersion>
goldsky subgraph tag delete <nameAndVersion>goldsky subgraph tag delete <nameAndVersion>
goldsky subgraph tag delete <nameAndVersion>Delete a tag
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
Options:
- — The name of the tag to delete (required)
--tag, -t <string> - — Force the deletion without prompting for confirmation
--f, -force
删除标签
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
选项:
- — 要删除的标签名称(必填)
--tag, -t <string> - — 强制删除,不提示确认
--f, -force
goldsky subgraph webhook
goldsky subgraph webhookgoldsky subgraph webhook
goldsky subgraph webhookCommands related to webhooks
与Webhook相关的命令
goldsky subgraph webhook create <nameAndVersion>
goldsky subgraph webhook create <nameAndVersion>goldsky subgraph webhook create <nameAndVersion>
goldsky subgraph webhook create <nameAndVersion>Create a webhook
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
Options:
- — Name of the webhook, must be unique (required)
--name <string> - — URL to send events to (required)
--url <string> - — Subgraph entity to send events for (required)
--entity <string> - — The secret you will receive with each webhook request Goldsky sends
--secret <string>
创建Webhook
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
选项:
- — Webhook名称,必须唯一(必填)
--name <string> - — 发送事件的URL(必填)
--url <string> - — 要发送事件的Subgraph实体(必填)
--entity <string> - — Goldsky发送Webhook请求时你将收到的密钥
--secret <string>
goldsky subgraph webhook delete [webhook-name]
goldsky subgraph webhook delete [webhook-name]goldsky subgraph webhook delete [webhook-name]
goldsky subgraph webhook delete [webhook-name]Delete a webhook
Arguments:
- — Name of the webhook to delete (required)
<webhook-name>
Options:
- — Name of the webhook to delete [deprecated]
--name <string> - — Force the deletion without prompting for confirmation
--f, -force
删除Webhook
参数:
- — 要删除的Webhook名称(必填)
<webhook-name>
选项:
- — 要删除的Webhook名称(已弃用)
--name <string> - — 强制删除,不提示确认
--f, -force
goldsky subgraph webhook list-entities <nameAndVersion>
goldsky subgraph webhook list-entities <nameAndVersion>goldsky subgraph webhook list-entities <nameAndVersion>
goldsky subgraph webhook list-entities <nameAndVersion>List possible webhook entities for a subgraph
Arguments:
- — Name and version of the subgraph, e.g. (required)
<nameAndVersion>
列出Subgraph可用的Webhook实体
参数:
- — Subgraph的名称和版本,例如:(必填)
<nameAndVersion>
goldsky subgraph webhook list
goldsky subgraph webhook listgoldsky subgraph webhook list
goldsky subgraph webhook listList webhooks
列出所有Webhook
goldsky secret
goldsky secret
Commands related to secret management
与密钥管理相关的命令
Subcommands
子命令
goldsky secret create
goldsky secret creategoldsky secret create
goldsky secret createcreate a secret
Options:
- — the name of the new secret
--name <string> - — the value of the new secret in json
--value <string> - — the description of the new secret
--description <string>
创建密钥
选项:
- — 新密钥的名称
--name <string> - — 新密钥的值(JSON格式)
--value <string> - — 新密钥的描述
--description <string>
goldsky secret delete <name>
goldsky secret delete <name>goldsky secret delete <name>
goldsky secret delete <name>delete a secret
Arguments:
- — the name of the secret to delete (required)
<name>
Options:
- — Force the deletion without prompting for confirmation
--f, -force
删除密钥
参数:
- — 要删除的密钥名称(必填)
<name>
选项:
- — 强制删除,不提示确认
--f, -force
goldsky secret list
goldsky secret listgoldsky secret list
goldsky secret listlist all secrets
列出所有密钥
goldsky secret reveal <name>
goldsky secret reveal <name>goldsky secret reveal <name>
goldsky secret reveal <name>reveal a secret
Arguments:
- — the name of the secret (required)
<name>
显示密钥内容
参数:
- — 密钥名称(必填)
<name>
goldsky secret update <name>
goldsky secret update <name>goldsky secret update <name>
goldsky secret update <name>update a secret
Arguments:
- — the name of the secret (required)
<name>
Options:
- — the new value of the secret
--value <string> - — the new description of the secret
--description <string>
更新密钥
参数:
- — 要更新的密钥名称(必填)
<name>
选项:
- — 密钥的新值
--value <string> - — 密钥的新描述
--description <string>
goldsky project
goldsky project
Commands related to project management
与项目管理相关的命令
Subcommands
子命令
goldsky project create
goldsky project creategoldsky project create
goldsky project createCreate a project
Options:
- — the name of the new project (required)
--name <string> - — the ID of the team to create the project in (defaults to current project
--team-id <string>
创建项目
选项:
- — 新项目的名称(必填)
--name <string> - — 创建项目所属团队的ID(默认当前团队)
--team-id <string>
goldsky project leave
goldsky project leavegoldsky project leave
goldsky project leaveLeave a project
Options:
- — the ID of the project you want to leave (required)
--projectId <string>
退出项目
选项:
- — 要退出的项目ID(必填)
--projectId <string>
goldsky project list
goldsky project listgoldsky project list
goldsky project listList all of the projects you belong to
列出你所属的所有项目
goldsky project update
goldsky project updategoldsky project update
goldsky project updateUpdate a project
Options:
- — the new name of the project (required)
--name <string>
更新项目
选项:
- — 项目的新名称(必填)
--name <string>
goldsky project users
goldsky project usersgoldsky project users
goldsky project usersCommands related to the users of a project
与项目用户相关的命令
goldsky project users invite
goldsky project users invitegoldsky project users invite
goldsky project users inviteInvite a user to your project
Options:
- — emails of users to invite (required)
--emails <array> - — desired role of invited user(s) (default: Viewer) (required)
--role <string>
邀请用户加入项目
选项:
- — 要邀请的用户邮箱(必填)
--emails <array> - — 受邀用户的角色(默认:Viewer)(必填)
--role <string>
goldsky project users list
goldsky project users listgoldsky project users list
goldsky project users listList all users for this project
列出项目的所有用户
goldsky project users remove
goldsky project users removegoldsky project users remove
goldsky project users removeRemove a user from your project
Options:
- — email of user to remove (required)
--email <string>
移除项目中的用户
选项:
- — 要移除的用户邮箱(必填)
--email <string>
goldsky project users update
goldsky project users updategoldsky project users update
goldsky project users updateUpdate a user
Options:
- — email of user to remove (required)
--email <string> - — role of user to update (required)
--role <string>
更新用户角色
选项:
- — 要更新的用户邮箱(必填)
--email <string> - — 用户的新角色(必填)
--role <string>
goldsky dataset
goldsky dataset
Commands related to Goldsky datasets
与Goldsky数据集相关的命令
Subcommands
子命令
goldsky dataset get <name>
goldsky dataset get <name>goldsky dataset get <name>
goldsky dataset get <name>Get a dataset
Arguments:
- — dataset name (required)
<name>
Options:
- — dataset version
--version <string> - — the output format. Either json or yaml. Defaults to yaml
--outputFormat <string>
获取数据集信息
参数:
- — 数据集名称(必填)
<name>
选项:
- — 数据集版本
--version <string> - — 输出格式,可选json或yaml。默认值为yaml
--outputFormat <string>
goldsky dataset list
goldsky dataset listgoldsky dataset list
goldsky dataset listList datasets
列出所有数据集
goldsky indexed
goldsky indexed
Analyze blockchain data with indexed.xyz
使用indexed.xyz分析区块链数据
Subcommands
子命令
goldsky indexed rill
goldsky indexed rillgoldsky indexed rill
goldsky indexed rillAnalyze indexed.xyz data with Rill
使用Rill分析indexed.xyz数据
goldsky indexed sync
goldsky indexed syncgoldsky indexed sync
goldsky indexed syncCommands related to syncing indexed.xyz real-time raw & decoded crypto datasets
与同步indexed.xyz实时原始及解码加密数据集相关的命令
goldsky indexed sync checkpoints
goldsky indexed sync checkpointsgoldsky indexed sync checkpoints
goldsky indexed sync checkpointsSync checkpoints (Sui network only)
Options:
- — The network of indexed.xyz data to synchronize (default: sui)
--network <string>
同步检查点(仅支持Sui网络)
选项:
- — 要同步的indexed.xyz数据所属网络(默认:sui)
--network <string>
goldsky indexed sync decoded-logs
goldsky indexed sync decoded-logsgoldsky indexed sync decoded-logs
goldsky indexed sync decoded-logsSync decoded logs for a smart contract from a network to this computer
Options:
- — The contract address you are interested in
--contract-address <string> - — The network of indexed.xyz data to synchronize (default: ethereum)
--network <string>
将网络中智能合约的解码日志同步到本地
选项:
- — 你感兴趣的合约地址
--contract-address <string> - — 要同步的indexed.xyz数据所属网络(默认:ethereum)
--network <string>
goldsky indexed sync events
goldsky indexed sync eventsgoldsky indexed sync events
goldsky indexed sync eventsSync events (Sui network only)
Options:
- — The network of indexed.xyz data to synchronize (default: sui)
--network <string>
同步事件(仅支持Sui网络)
选项:
- — 要同步的indexed.xyz数据所属网络(默认:sui)
--network <string>
goldsky indexed sync move-calls
goldsky indexed sync move-callsgoldsky indexed sync move-calls
goldsky indexed sync move-callsSync Move function calls (Sui network only)
Options:
- — The network of indexed.xyz data to synchronize (default: sui)
--network <string>
同步Move函数调用(仅支持Sui网络)
选项:
- — 要同步的indexed.xyz数据所属网络(默认:sui)
--network <string>
goldsky indexed sync packages
goldsky indexed sync packagesgoldsky indexed sync packages
goldsky indexed sync packagesSync packages (Sui network only)
Options:
- — The network of indexed.xyz data to synchronize (default: sui)
--network <string>
同步包(仅支持Sui网络)
选项:
- — 要同步的indexed.xyz数据所属网络(默认:sui)
--network <string>
goldsky indexed sync raw-blocks
goldsky indexed sync raw-blocksgoldsky indexed sync raw-blocks
goldsky indexed sync raw-blocksSync all blocks from a network
Options:
- — The network of indexed.xyz data to synchronize (default: ethereum)
--network <string>
同步网络中的所有区块
选项:
- — 要同步的indexed.xyz数据所属网络(默认:ethereum)
--network <string>
goldsky indexed sync raw-logs
goldsky indexed sync raw-logsgoldsky indexed sync raw-logs
goldsky indexed sync raw-logsSync all logs from a network
Options:
- — The contract address you are interested in
--contract-address <string> - — The network of indexed.xyz data to synchronize (default: ethereum)
--network <string>
同步网络中的所有日志
选项:
- — 你感兴趣的合约地址
--contract-address <string> - — 要同步的indexed.xyz数据所属网络(默认:ethereum)
--network <string>
goldsky indexed sync raw-transactions
goldsky indexed sync raw-transactionsgoldsky indexed sync raw-transactions
goldsky indexed sync raw-transactionsSync all transactions from a network
Options:
- — The network of indexed.xyz data to synchronize (default: ethereum)
--network <string>
同步网络中的所有交易
选项:
- — 要同步的indexed.xyz数据所属网络(默认:ethereum)
--network <string>
goldsky indexed sync sui-transactions
goldsky indexed sync sui-transactionsgoldsky indexed sync sui-transactions
goldsky indexed sync sui-transactionsSync transactions (Sui network only)
Options:
- — The network of indexed.xyz data to synchronize (default: sui)
--network <string>
同步交易(仅支持Sui网络)
选项:
- — 要同步的indexed.xyz数据所属网络(默认:sui)
--network <string>
goldsky indexed sync transaction-objects
goldsky indexed sync transaction-objectsgoldsky indexed sync transaction-objects
goldsky indexed sync transaction-objectsSync transaction objects (Sui network only)
Options:
- — The network of indexed.xyz data to synchronize (default: sui)
--network <string>
同步交易对象(仅支持Sui网络)
选项:
- — 要同步的indexed.xyz数据所属网络(默认:sui)
--network <string>
goldsky telemetry
goldsky telemetry
Commands related to CLI telemetry
与CLI遥测相关的命令
Subcommands
子命令
goldsky telemetry disable
goldsky telemetry disablegoldsky telemetry disable
goldsky telemetry disableDisable anonymous CLI telemetry
禁用匿名CLI遥测
goldsky telemetry enable
goldsky telemetry enablegoldsky telemetry enable
goldsky telemetry enableEnable anonymous CLI telemetry
启用匿名CLI遥测
goldsky telemetry status
goldsky telemetry statusgoldsky telemetry status
goldsky telemetry statusDisplay the CLI telemetry status
显示CLI遥测状态