360 Secure SkillHub
360 安全技能中心

Byted Vefaas Skills

这是火山引擎veFaaS的专属CLI工具,核心功能涵盖登录认证、新/现有无服务器应用部署、函数代码拉取上传、环境变量配置、域名查询等。典型场景为开发者部署Web应用、管理veFaaS函数服务。通过命令行输入指令执行操作,输出对应结果(如访问URL、配置信息)。支持SSO快捷登录,非交互模式适配CI/CD,部署需Node.js 18+,按规范流程可快速完成应用上线。

volcengine-skills
volcengine-skills
热度 34.07
最近更新 2026-05-11 17:38:11
分类:开发依赖:代码执行应用场景:DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add byted-vefaas-skills
Metadata
name
vefaas
description
Deploy and manage serverless applications on Volcengine veFaaS. Use when the user wants to deploy web apps, manage functions (pull code, upload and deploy), configure environment variables, or work with veFaaS services.
allowed-tools
Bash(vefaas:*)

vefaas: Volcengine FaaS CLI

vefaas is the command-line tool for Volcengine Function Service (veFaaS). It enables serverless application deployment, function management, and configuration through a streamlined workflow.

Installation

npm i -g https://vefaas-cli.tos-cn-beijing.volces.com/volcengine-vefaas-latest.tgz

Verify installation:

vefaas --version

Core Workflow

The typical deployment pattern:

  1. Check Node.js: node --version (requires >= 18, recommended 20+)
    • If version is too low, switch using nvm (nvm use 20) or fnm (fnm use 20), or manually install a newer version
  2. Check CLI: vefaas --version to verify installation
  3. Check Auth: vefaas login --check to verify login status
    • If not logged in, run vefaas login --sso (opens browser, auto-completes when user authorizes - no manual input needed)
  4. Deploy: vefaas deploy --newApp <name> --gatewayName $(vefaas run listgateways --first) --yes
  5. Access: vefaas domains to view URLs

Quick Commands

Purpose Command
Check auth vefaas login --check
Login (SSO) vefaas login --sso (non-interactive: opens browser, auto-completes when authorized, recommended)
Login (AK/SK) vefaas login --accessKey <AK> --secretKey <SK>
Init from template vefaas init --template <name>
Deploy new app vefaas deploy --newApp <name> --gatewayName $(vefaas run listgateways --first) --yes
Deploy existing vefaas deploy --app <name> --yes
List gateways vefaas run listgateways --first
View URLs vefaas domains
Set env var vefaas env set KEY VALUE
View config vefaas config list
Pull code vefaas pull --func <name>
Inspect project vefaas inspect

Global Options

Option Description
-d, --debug Enable debug mode for troubleshooting
--yes Non-interactive mode (required for CI/AI coding)
--region Region override (e.g., cn-beijing)

Cookbooks

Step-by-step guides for common scenarios:

References

Detailed documentation on specific topics:

Important Notes

  • Always use --yes for non-interactive mode in CI/CD and AI coding scenarios
  • Use $(vefaas run listgateways --first) to get an available gateway
  • Config is stored in .vefaas/config.json after linking
  • Use --debug or -d to troubleshoot issues