Docs
References
CLI

CLI Reference

You can use the Command-Line Interface (CLI) provided by terai to develop, build, and preview your project from a terminal window.

terai init

Initialize terai in a project. This process will create a terai.config.ts file in your project with the default settings.

Flags

--force, -f

Whether to overwrite existing files

--cwd

Path to current working directory

terai extract

Statically extract all messages in your project based on the configuration file.

Flags

--watch, -w

Whether to watch for changes in the project.

--cwd

Path to current working directory

terai translate

Translate messages in your project based on the configuration file.

Flags

--cwd

Path to current working directory