# gt: General Translation CLI tool: Generate Source Template
URL: https://generaltranslation.com/en-GB/docs/cli/generate.mdx
---
title: Generate Source Template
description: How to generate a source template for your project
---
## Usage
```bash
npx gt generate
```
## Overview
The `gt generate` command generates a source file for your project for your default locale and supported locales.
The generated files are compatible with the [`gt-next`](/docs/next), [`gt-react`](/docs/react), and [`gt-react-native`](/docs/react-native) libraries, and use the same format as the `translate` command.
After generating the source files, you can use [local translations](/docs/next/guides/local-tx) to serve translations to your users.
This command is only useful if you are using your own translation service.
If you are using the General Translation API, you should use the [`translate`](/docs/cli/translate) command instead.
## Parameters
| Parameter | Description | Type | Optional | Default |
| ------------------------------- | ------------------------------------------------------------------------------------------------------ | ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `--src ` | Space-separated list of glob patterns to match source files. Should be relative to the root directory. | `[string]` | `true` | `[ 'src/**/*.{js,jsx,ts,tsx}', 'app/**/*.{js,jsx,ts,tsx}', 'pages/**/*.{js,jsx,ts,tsx}', 'components/**/*.{js,jsx,ts,tsx}', ]` |
| `--dictionary ` | Specifies the path to the dictionary file | `string` | `true` | |
| `--tsconfig, --jsconfig ` | Specifies the path to the TS or JS config file | `string` | `true` | |
| `--inline` | Includes inline `` tags in addition to the dictionary | `boolean` | `true` | `true` |
| `--default-locale ` | The source locale for the project | `string` | `true` | `en` |
| `--ignore-errors` | Ignores errors and forces translation for valid content | `flag` | `true` | `false` |
## Setup
First, run the `gt configure` command to configure your project's settings.
```bash
npx gt configure
```
Then, run the `gt generate` command to generate template files for your project.
```bash
npx gt generate
```
### Configuration file
Read more about the `gt.config.json` file [here](/docs/cli/reference/config).