---
title: "Fastlane and Alfred"
slug: fastlane-and-alfred
section: tech
date: 2015-07-16T14:34:00.000Z
canonical: https://roland.leth.ro/blog/tech/fastlane-and-alfred
---

One more thing that helps me with the Fastlane flow is an [Alfred](http://alfredapp.com) workflow to run the lanes. It was really easy to create, and here's how: open Alfred, go to Workflows, press `+`, `Templates`, `Essentials` and choose the `Keyword to Terminal Command`. Give it a name, a description, and a keyword (without a parameter), then paste the following in the script field:

```sh
cd ~/path/to/project && fastlane release_minor && exit
```

This will open the Terminal, `cd` to that path, run the `fastlane` command, then close the respective window.

*Update, July 16, 2015:* Fastlane got a nice [update](https://github.com/KrauseFx/fastlane/releases/tag/1.8.0), where you can pass parameteres from the command line, so I improved the Alfred workflow - I set it to require a parameter, with space, then changed the terminal command to:

```sh
cd ~/path/to/project && fastlane release scheme:{query} && exit
```

Now I can write in Alfred `release minor`, as if I wrote in terminal `fastlane release scheme:minor`, and Faslane does the same thing as it did before with `fastlane release_minor`.

==Nice.==
