← 返回命令列表

Linux command

yesod 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create project

yesod init

Run development server

yesod devel

Add handler

yesod add-handler [HandlerName]

Generate Keter bundle

yesod keter

说明

yesod is the command-line tool for the Yesod web framework, which builds type-safe web applications in Haskell. It provides project scaffolding, development server management, and deployment bundling. The init command creates a new project with a complete directory structure, configuration, and dependencies. The devel subcommand starts a development server that watches for file changes and recompiles automatically, providing live reload during development. Route handlers can be added with add-handler, which generates boilerplate code following Yesod conventions. The keter command packages the application into a deployment bundle for the Keter web application deployment system.

参数

init
Scaffold a new Yesod project interactively.
devel
Run the development server with automatic recompilation on file changes.
add-handler
Generate a new route handler with boilerplate code.
keter
Build a Keter deployment bundle (.keter archive).
test
Run the project's test suite.
version
Display yesod-bin version information.
-v, --verbose
Enable verbose output.
--help
Show usage information.

FAQ

What is the yesod command used for?

yesod is the command-line tool for the Yesod web framework, which builds type-safe web applications in Haskell. It provides project scaffolding, development server management, and deployment bundling. The init command creates a new project with a complete directory structure, configuration, and dependencies. The devel subcommand starts a development server that watches for file changes and recompiles automatically, providing live reload during development. Route handlers can be added with add-handler, which generates boilerplate code following Yesod conventions. The keter command packages the application into a deployment bundle for the Keter web application deployment system.

How do I run a basic yesod example?

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

What does init do in yesod?

Scaffold a new Yesod project interactively.