← 返回命令列表

Linux command

func 命令

网络

需要网络或远程资源。

常用示例

Create new function

func new

Start local server

func start

Deploy to Azure

func azure functionapp publish [appname]

Create function from

func new --template "[HTTP trigger]" --name [MyFunction]

List templates

func templates list

说明

func is the Azure Functions Core Tools CLI for developing serverless functions locally. It creates, runs, and deploys Azure Functions across multiple languages. The tool provides local development with debugging support, mimicking the Azure environment. It handles project scaffolding, dependency management, and deployment workflows. func supports JavaScript, Python, C#, Java, and other languages for Azure Functions development.

参数

new
Create new function.
start
Start local Functions host.
init
Initialize function project.
azure functionapp publish _NAME_
Deploy to Azure.
templates list
Show available templates.
--help
Display help information.

FAQ

What is the func command used for?

func is the Azure Functions Core Tools CLI for developing serverless functions locally. It creates, runs, and deploys Azure Functions across multiple languages. The tool provides local development with debugging support, mimicking the Azure environment. It handles project scaffolding, dependency management, and deployment workflows. func supports JavaScript, Python, C#, Java, and other languages for Azure Functions development.

How do I run a basic func example?

Run `func new` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does new do in func?

Create new function.