Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@cloudbase/cli

Package Overview
Dependencies
Maintainers
7
Versions
580
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudbase/cli

Cloudbase 命令行工具。

npmnpm
Version
0.0.8
Version published
Weekly downloads
7.2K
-30.87%
Maintainers
7
Weekly downloads
 
Created
Source

Cloudbase 命令行工具

Cloudbase 命令行工具。

安装

npm install -g @cloudbase/cli

使用方法

tcb -h
Usage: tcb [options] [command]

Options:
  -V, --version          output the version number
  -h, --help             output usage information

Commands:
  login [options]        登录腾讯云账号
  logout                 登出腾讯云账号
  deploy [name]          执行完整的发布
  show                   查看状态
  logs [options] <name>  查看日志
  stop <name>            停止应用
  create <name>          创建项目

登录

登录腾讯云账号

# 通过控制台授权登录
tcb login
# 使用云 API 密钥登录
tcb login --key

发布

执行完整的发布

tcb deploy [--start]

参数:

  • --start:是否需要启动

查看日志

tcb show [-n 20] <name>

参数:

  • -n:日志的行数

tcb.json

cli的配置文件

示例:

{
    "deploys": [
        {
            "name": "app",
            "type": "node",
            "path": "./server"
        }
    ]
}

deploys

数组,包含项目的发布配置

示例:

{
    "deploys": [
        // 云函数示例
        {
            "name": "add",
            "type": "function",
            "path": "./",
            "envId": "test-e48fe1",
            "override": true
        },

        // Node服务示例
        {
            "name": "app",
            "type": "node",
            "path": "./server"
        },

        // Vemo项目示例
        {
            name: 'my-vemo',
            type: 'node',
            path: './vemo-server'
        }
    ]
}

FAQs

Package last updated on 25 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts