# Set up local SDK previews

> Learn how to set up local SDK previews with Fern's --preview flag. Test generated SDK code locally before publishing to iterate quickly.

Once you configure your SDK, you can use the `--preview` flag to test generated
SDK code locally before publishing. This allows quick iteration on your SDK
as you develop:

```bash