init

Creates a .lando.yml file from various sources. Using this command you can initilize a local repo or pull down a repo from GitHub or Pantheon and get it ready to use with lando.

Usage

# Generate a .lando.yml in your current directory
lando init

# Non interactively pull a site from github and set it up as a lamp site
lando init github \
  --recipe lamp \
  --github-auth MYTOKEN \
  --github-repo git@github.com:lando/lando.git \
  --dest ./ \
  --webroot .

# Interactively pull and set up a site from pantheon
lando init pantheon

# Set up a local repo with the pantheon recipe
lando init --recipe pantheon

Pantheon

In order to pull down and initialize a Lando app from Pantheon you will need to make sure you have created a machine token.

While you CAN pull a site from Pantheon using lando init pantheon you can also initialize a local site or pull from GitHub and initialize that repo as a Pantheon site.

# Pull code from github but connect it to a pantheon site
lando init github --recipe=pantheon

GitHub

In order to pull down and initialize a Lando app from GitHub you will need to make sure you have created a personal access token and that it has the repo, admin:public_key and user scopes.

Options

  --recipe, -r               The recipe to use       [string] [choices: "custom", "backdrop", "drupal6", "drupal7", "drupal8", "laravel", "lamp", "lemp", "pantheon", "wordpress"]
  --github-auth              GitHub token or email of previously used token                                                                                               [string]
  --github-repo              GitHub repo URL                                                                                                                              [string]
  --pantheon-auth            Pantheon machine token or email of previously used token                                                                                     [string]
  --pantheon-site            Pantheon site machine name                                                                                                                   [string]
  --destination, --dest, -d  Specify where to init the app                                                                                                                [string]
  --webroot                  Specify the webroot relative to destination                                                                                                  [string]
  --name                     The name of the app                        [string]
  --yes, -y                  Auto answer yes to prompts                                                                                                 [boolean] [default: false]

results matching ""

    No results matching ""