Quick Start
Welcome to Shorebird! 👋
In this guide, we’ll walk you through setting up Shorebird and integrating it into your app in just a few minutes.
Sign up
Section titled “Sign up”The first thing you’ll need to do is sign up for a Shorebird account. It’s free to do and you can signup in a manner of seconds.
Create an Account
Install
Section titled “Install”While a full install may not be required to access and use all of our product offerings, we recommend installing everything locally to make debugging easier as you continue using our services.
Using install script
Section titled “Using install script”To install the Shorebird command line interface (CLI):
This installs shorebird into ~/.shorebird/bin and adds it to your PATH. It
also installs a copy of Flutter and Dart inside
~/.shorebird/bin/cache/flutter. The copy of Flutter is slightly modified to
add Shorebird code push and is not intended to be added to your PATH. You can
continue to use the versions of Flutter and Dart you already have installed.
Manually installing
Section titled “Manually installing”Shorebird can also be manually installed, allowing users to choose where the installation will be placed.
In order to do so, in a terminal, inside the folder where Shorebird should be installed at, run:
Add the bin folder from the repository you just cloned into your PATH.
Once the installation has completed, shorebird should be available in your
terminal:
You can use the shorebird doctor to ensure things are setup correctly:
Example output:
Finally, you can log in to your Shorebird account on your machine:
Integrate Shorebird
Section titled “Integrate Shorebird”Your now ready to add Shorebird to your app.
You can start by creating a new Flutter app or navigating to the directory of your already created Flutter app.
To create a new Flutter app:
Or, to enable Shorebird for an existing Flutter app run:
This will create a shorebird.yaml file in the root of your project. This file
contains your Shorebird app_id. Your app_id is not secret and can be checked
into source control and freely shared.
This will also run shorebird doctor to ensure everything is set up correctly.
Next Steps
Section titled “Next Steps”Now that your account is set up and your app is initialized, you’re all set to begin.