-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
220 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,43 @@ export default defineConfig({ | |
['link', {rel: 'icon', href: '/cli/favicon.svg', type: 'image/svg+xml'}], | ||
], | ||
themeConfig: { | ||
contributors: { | ||
merge: 'name', | ||
debotify: true, | ||
include: [ | ||
{ | ||
name: 'Mike Pirog', | ||
email: '[email protected]', | ||
title: 'Co-founder', | ||
org: 'lando.dev', | ||
orgLink: 'https://lando.dev', | ||
desc: 'SLAVE4U', | ||
links: [ | ||
{icon: 'github', link: 'https://github.com/pirog'}, | ||
{icon: 'x', link: 'https://x.com/pirogcommamike'}, | ||
], | ||
sponsor: 'https://lando.dev/sponsor', | ||
maintainer: true, | ||
mergeOnly: true, | ||
}, | ||
{ | ||
avatar: 'https://avatars.githubusercontent.com/u/1153738', | ||
name: 'Alec Reynolds', | ||
email: '[email protected]', | ||
title: 'Co-founder', | ||
org: 'lando.dev', | ||
orgLink: 'https://lando.dev', | ||
desc: 'A chill dude', | ||
links: [ | ||
{icon: 'github', link: 'https://github.com/reynoldsalec'}, | ||
{icon: 'x', link: 'https://x.com/reynoldsalec'}, | ||
], | ||
sponsor: 'https://lando.dev/sponsor', | ||
maintainer: true, | ||
mergeOnly: true, | ||
}, | ||
], | ||
}, | ||
sidebar: sidebar(), | ||
}, | ||
}); | ||
|
@@ -39,15 +76,16 @@ function sidebar() { | |
items: [ | ||
{text: 'lando config', link: '/config'}, | ||
{text: 'lando destroy', link: '/destroy'}, | ||
{text: 'lando init', link: '/init'}, | ||
{text: 'lando exec <span class="VPBadge success" vertical="middle"><small>NEW!</small></span>', link: '/exec'}, | ||
{text: 'lando info', link: '/info'}, | ||
{text: 'lando init', link: '/init'}, | ||
{text: 'lando list', link: '/list'}, | ||
{text: 'lando logs', link: '/logs'}, | ||
{text: 'lando poweroff', link: '/poweroff'}, | ||
{text: 'lando rebuild', link: '/rebuild'}, | ||
{text: 'lando restart', link: '/restart'}, | ||
{text: 'lando share', link: '/share'}, | ||
{text: 'lando ssh', link: '/ssh'}, | ||
{text: 'lando ssh <span class="VPBadge danger" vertical="middle"><small>DEPRECATED</small></span>', link: '/ssh'}, | ||
{text: 'lando start', link: '/start'}, | ||
{text: 'lando stop', link: '/stop'}, | ||
{text: 'lando update', link: '/update'}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: lando exec | ||
description: lando exec runs command(s) on a service | ||
--- | ||
|
||
# lando exec | ||
|
||
Runs command(s) on a service. | ||
|
||
`lando exec` is a **new** command intended to replace `lando ssh`. However, it currently works best on `api: 4` services. If you are experiencing issues on `api: 3` services we recommend you continue using `lando ssh`. | ||
|
||
## Usage | ||
|
||
```sh | ||
lando exec <service> [--user <user>] -- <command> | ||
``` | ||
|
||
## Arguments | ||
|
||
```sh | ||
service Runs on this service [string] [choices: "web", "web2", "web3", "web4"] | ||
``` | ||
|
||
### Options | ||
|
||
```sh | ||
--channel Sets the update channel [array] [choices: "edge", "none", "stable"] | ||
--clear Clears the lando tasks cache [boolean] | ||
--debug Shows debug output [boolean] | ||
--help Shows lando or delegated command help if applicable [boolean] | ||
--verbose, -v Runs with extra verbosity [count] | ||
--user, -u Runs as a specific user | ||
``` | ||
## Examples | ||
```sh | ||
# Drops into a lando environment bash shell on the appserver | ||
lando exec appserver -- lash bash | ||
|
||
# Resolves the nginx services identity crisis | ||
lando exec nginx --user root -- whoami | ||
|
||
# Prints the environment and a wise greeting on my-service | ||
lando exec my-service -- "env && echo 'hello there!'" | ||
|
||
# Launches a background service on worker | ||
lando exec worker -- "background-service &" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,45 +18,7 @@ If your code already has a Landofile then this command will likely produce undes | |
## Usage | ||
|
||
```sh | ||
# Interactively instantiate your code for use with lando | ||
lando init | ||
|
||
# Spit out a full Drupal 7 Landofile using code from your current working directory | ||
lando init --source cwd --recipe drupal7 --name d7-hotsauce --webroot . --full | ||
|
||
# Pull code from GitHub and set it up as a mean recipe | ||
lando init \ | ||
--source github \ | ||
--recipe mean \ | ||
--github-auth "$MY_GITHUB_TOKEN" \ | ||
--github-repo [email protected]:lando/lando.git \ | ||
--name my-awesome-app | ||
|
||
# Interactively pull a site from pantheon | ||
lando init --source pantheon | ||
|
||
# Set up a pantheon site but use code from a custom git repo | ||
lando init --source remote --remote-url https://my.git.repo/.git --recipe pantheon | ||
|
||
# Set up a local repo with the pantheon recipe | ||
lando init --recipe pantheon | ||
|
||
# Set up a mean recipe that runs on a particular port with a particular command | ||
lando init --source cwd \ | ||
--recipe mean \ | ||
--option port=3000 \ | ||
--option command="npm run watch" \ | ||
--name meanest-app-youve-ever-seen | ||
|
||
# Pull the latest Drupal 7 and set up drupal7 config to use mariadb instead of mysql | ||
lando init \ | ||
--source remote \ | ||
--remote-url https://ftp.drupal.org/files/projects/drupal-7.71.tar.gz \ | ||
--remote-options="--strip-components 1" \ | ||
--recipe drupal7 \ | ||
--webroot . \ | ||
--option database=mariadb \ | ||
--name my-first-drupal7-app | ||
lando init [--name <name>] [--recipe <recipe>] [--source <source>] | ||
``` | ||
|
||
## Getting code from various sources | ||
|
@@ -172,3 +134,47 @@ Run `lando init --help` to get a complete list of options defaults, choices, rec | |
--webroot Specify the webroot relative to app root | ||
--yes, -y Auto answer yes to prompts | ||
``` | ||
## Examples | ||
```sh | ||
# Interactively instantiate your code for use with lando | ||
lando init | ||
|
||
# Spit out a full Drupal 7 Landofile using code from your current working directory | ||
lando init --source cwd --recipe drupal7 --name d7-hotsauce --webroot . --full | ||
|
||
# Pull code from GitHub and set it up as a mean recipe | ||
lando init \ | ||
--source github \ | ||
--recipe mean \ | ||
--github-auth "$MY_GITHUB_TOKEN" \ | ||
--github-repo [email protected]:lando/lando.git \ | ||
--name my-awesome-app | ||
|
||
# Interactively pull a site from pantheon | ||
lando init --source pantheon | ||
|
||
# Set up a pantheon site but use code from a custom git repo | ||
lando init --source remote --remote-url https://my.git.repo/.git --recipe pantheon | ||
|
||
# Set up a local repo with the pantheon recipe | ||
lando init --recipe pantheon | ||
|
||
# Set up a mean recipe that runs on a particular port with a particular command | ||
lando init --source cwd \ | ||
--recipe mean \ | ||
--option port=3000 \ | ||
--option command="npm run watch" \ | ||
--name meanest-app-youve-ever-seen | ||
|
||
# Pull the latest Drupal 7 and set up drupal7 config to use mariadb instead of mysql | ||
lando init \ | ||
--source remote \ | ||
--remote-url https://ftp.drupal.org/files/projects/drupal-7.71.tar.gz \ | ||
--remote-options="--strip-components 1" \ | ||
--recipe drupal7 \ | ||
--webroot . \ | ||
--option database=mariadb \ | ||
--name my-first-drupal7-app | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.