cocli

package module
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

README

coScene CLI (coCLI)

cocli 是刻行时空(coScene)的命令行工具,方便用户在终端和自动化过程中对刻行时空平台的资源进行管理。

cocli 所有的命令都可以通过添加 -h 参数查看帮助。

详细的图文操作指南和常见操作实例方法请参考 刻行时空 coCli 文档

安装

# 通过 curl 安装
curl -fL https://download.coscene.cn/cocli/install.sh | sh

# 安装具体版本
curl -fL https://download.coscene.cn/cocli/install.sh | sh -s -- v1.x.y
curl -fL https://download.coscene.cn/cocli/install.sh | sh -s -- v1.x.y-rc6

本地安装

克隆代码
git clone https://github.com/coscene-io/cocli.git
本地快速测试
go run cmd/cocli/main.go [具体命令]
本地构建可执行文件
# 构建可执行文件, 生成的可执行文件在 `./bin` 目录下
make build-binary

# 将可执行文件移动到任意系统路径 PATH 下以便全局使用,当前示例移动到 `/usr/local/bin/` 目录下
mv bin/cocli /usr/local/bin/

# 运行 cocli 命令, 查看帮助文档, 确认安装成功
cocli -h

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the version information

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL