---
title: "#135: Fastlane 🤖"
url: https://littlebitesofcocoa.com/135-fastlane
author: Jake Marsh
date: 2015-11-27
published: 2015-11-27
topics: ["Tools","Fastlane"]
description: "It's another fastlane Friday here on LBOC! We've covered a few of the individual fastlane tools so far, but today we'll look at fastlane itself."
---

# #135: Fastlane 🤖

By Jake Marsh, November 27, 2015. HTML: https://littlebitesofcocoa.com/135-fastlane

It's another _fastlane_ Friday here on <i>LBOC</i>! We've covered [a few of][1] the individual _fastlane_ tools so far, but today we'll look at _fastlane_ itself. It gives us a single command that brings together all the various tools in the suite like **gym**, **snapshot**, **deliver**, etc into one streamlined workflow. Let's get started.

We can of course continue to use each of the _fastlane_ tools individually, but using _fastlane_ allows us to use just one tool that connects not only each of the tools in the suite, but also integrates with other third-party tools like **CocoaPods** and **xctool**.

_fastlane_ provides a fantastic in-depth [Getting Started guide][2], but to get things going quickly here's the basics:

We'll begin by installing _fastlane_, this will install <i>all</i> the _fastlane_ tools, including all the ones we've covered here, wrapped into one simple tool.

``` shell
gem install fastlane
```

Then, we'll simply run `fastlane init` in the root directory of our **project**.

_fastlane's_ setup assistant will ask us a few questions about our app, then it will create all the configuration files for us, where we'll be able to customize each the tools default settings as well as define our “lanes”.

After completing the intial setup process, we can start to customize our new `Fastfile` (which was created for us automatically). _fastlane_ is built around the concept of “lanes”. Here's one that deploys to the **App Store**:

``` ruby
lane :appstore do
  increment_build_number
  cocoapods
  snapshot
  sigh
  deliver
  slack
end
```

We can run all of these tools now, each one after another by simply running `fastlane appstore`. Nice!

Notice commands like **cocoapods** and **slack** are here. These are some of the third-party actions mentioned earlier.

This is where _fastlane's_ awesome community really shines. There's already 120+ actions ready to use for services like **s3**, **slack** and **crashlytics**, as well as commands for things such as bumping the build number, or even collecting input from the user. Neat!

More info about _fastlane_ can be found at [git.io/fastlane][3]

[1]: https://littlebitesofcocoa.com/topics/56-fastlane?v=l
[2]: https://github.com/fastlane/fastlane/blob/master/docs/Guide.md
[3]: http://git.io/fastlane
