在火山引擎 veFaaS 上部署和管理无服务器应用程序。当用户想要部署 Web 应用、管理函数(拉取代码、上传和部署)时使用,...
vefaas is the command-line tool for Volcengine Function Service (veFaaS). It enables serverless application deployment, function management, and configuration through a streamlined workflow.
bash
npm i -g https://vefaas-cli.tos-cn-beijing.volces.com/volcengine-vefaas-latest.tgz
Verify installation:
bash
vefaas --version
The typical deployment pattern:
Check Node.js: node --version (requires >= 18, recommended 20+)
nvm use 20) or fnm ( fnm use 20), or manually install a newer versionCheck CLI: vefaas --version to verify installation
Check Auth: vefaas login --check to verify login status
vefaas login --sso (opens browser, auto-completes when user authorizes - no manual input needed)Deploy: vefaas deploy --newApp <name> --gatewayName $(vefaas run listgateways --first) --yes
Access: vefaas domains to view URLs
PurposeCommandCheck authvefaas login --checkLogin (SSO)vefaas login --sso (non-interactive: opens browser, auto-completes when authorized, recommended)Login (AK/SK)vefaas login --accessKey <AK> --secretKey <SK>Init from templatevefaas init --template <name>Deploy new appvefaas deploy --newApp <name> --gatewayName $(vefaas run listgateways --first) --yesDeploy existingvefaas deploy --app <name> --yesList gatewaysvefaas run listgateways --firstView URLsvefaas domainsSet env varvefaas env set KEY VALUEView configvefaas config listPull codevefaas pull --func <name>Inspect projectvefaas inspect
OptionDescription-d, --debugEnable debug mode for troubleshooting--yesNon-interactive mode (required for CI/AI coding)--regionRegion override (e.g., cn-beijing)
Step-by-step guides for common scenarios:
Detailed documentation on specific topics:
run.sh, proxy, and path-selection checks--yes for non-interactive mode in CI/CD and AI coding scenarios$(vefaas run listgateways --first) to get an available gateway.vefaas/config.json after linking--debug or -d to troubleshoot issues