---
title: rattler-build generate-recipe cran
---
<!--- This file is autogenerated. Do not edit manually! -->
# [rattler-build](../index.md) [generate-recipe](index.md) cran

Generate a recipe for an R package from CRAN

## Usage
```
rattler-build generate-recipe cran [OPTIONS] <PACKAGE>
```

## Arguments
- <a id="arg-PACKAGE" href="#arg-PACKAGE">`<PACKAGE>`</a>
:  Name of the package to generate
<br>**required**: `true`

## Options
- <a id="arg---universe" href="#arg---universe">`--universe (-u) <UNIVERSE>`</a>
:  The R Universe to fetch the package from (defaults to `cran`)
- <a id="arg---tree" href="#arg---tree">`--tree (-t)`</a>
:  Whether to create recipes for the whole dependency tree or not
- <a id="arg---write" href="#arg---write">`--write (-w)`</a>
:  Whether to write the recipe to a folder
