Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9354 tutorial move #9364

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags: [terminus, site, cli]
contributors: [stevector, whitneymeredith]
type: guide
showtoc: true
permalink: docs/guides/drush/drupal-commandline
permalink: docs/drupal-commandline
contenttype: [guide]
innav: [false]
categories: [cli]
Expand All @@ -16,8 +16,6 @@ product: [--]
integration: [drush]
---

<!-- @todo, move this page out of this guide and to a "Tutorials" section. https://github.com/pantheon-systems/documentation/issues/9354 -->

[Drush](https://github.com/drush-ops/drush) is a tool for working with Drupal from the command line. [Terminus](/terminus) allows you to use the command line to do everything you can do in Pantheon's browser-based dashboard. You can also run Drush commands directly from Terminus, making it a single solution for command line development on Pantheon.

This section walks you through using Drush and Terminus in the command line to create a new Drupal site and move configurations between Pantheon environments.
Expand Down
2 changes: 1 addition & 1 deletion source/content/drupal-configuration-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Managing configuration is an extremely important part of any team website projec

Pantheon supports the [Drupal Configuration Management system](https://www.drupal.org/documentation/administer/config). Each Pantheon Drupal site defaults configuration into the `/config` directory.

You can export your configuration into that directory directly using Drush's `config-export` command or indirectly using Drupal's UI to download the configuration, and then use SFTP/Git to place the configuration in `config` or `sites/default/config`. For more information, check out the [Managing Content, Configuration, and Code Across Environments](/guides/drush/drupal-commandline#managing-content-configuration-and-code-across-environments) section of [Create a Drupal Site From the Command Line Using Terminus and Drush](/guides/drush/drupal-commandline).
You can export your configuration into that directory directly using Drush's `config-export` command or indirectly using Drupal's UI to download the configuration, and then use SFTP/Git to place the configuration in `config` or `sites/default/config`. For more information, check out the [Managing Content, Configuration, and Code Across Environments](/drupal-commandline#managing-content-configuration-and-code-across-environments) section of [Create a Drupal Site From the Command Line Using Terminus and Drush](/drupal-commandline).

<Accordion title="Watch: Configuration Management in Drupal" id="d8-config-video" icon="facetime-video">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Failure to run the most up-to-date version of core based on upstreams maintained

### Use the Pantheon Workflow

Create content on your test site and use the standard [Pantheon workflow](/pantheon-workflow) to push up to your Test and Live environments, and fully test core updates. Checkout [our guide](/guides/drush/drupal-commandline/#managing-content-configuration-and-code-across-environments) for an example of generating content from the command line.
Create content on your test site and use the standard [Pantheon workflow](/pantheon-workflow) to push up to your Test and Live environments, and fully test core updates. Checkout [our guide](/drupal-commandline/#managing-content-configuration-and-code-across-environments) for an example of generating content from the command line.

### Sample a Few Sites

Expand Down
2 changes: 1 addition & 1 deletion source/content/guides/drush/01-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Drush developers should also install and use [Terminus](/terminus), a command-li

Terminus automatically uses the version of Drush it finds in `vendor/bin/drush` when running Drush commands on the platform if you have a [Composer-based site](/guides/composer).

You can run the commands below from Terminus instead of using Drush aliases. For example, you can run `terminus drush <site>.<env> -- cc drush` instead of `drush @pantheon.SITENAME.dev cc drush`. Refer to [Manage Drupal Sites with Terminus and Drush](/guides/drush/drupal-commandline) for more information.
You can run the commands below from Terminus instead of using Drush aliases. For example, you can run `terminus drush <site>.<env> -- cc drush` instead of `drush @pantheon.SITENAME.dev cc drush`. Refer to [Manage Drupal Sites with Terminus and Drush](/drupal-commandline) for more information.

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion source/content/guides/getstarted/06-addsite.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ Now it's time to purchase a site plan in preparation for launching your site.
* [Manually Migrate Sites to Pantheon](/migrate-manual)
* [Create a Static Site Using an Empty Upstream](/static-site-empty-upstream)
* [Create a Drupal Site Using a Drupal Distribution](/guides/drupal-from-dist)
* [Create a Drupal Site From the Command Line Using Terminus and Drush](/guides/drush/drupal-commandline)
* [Create a Drupal Site From the Command Line Using Terminus and Drush](/drupal-commandline)
* [Create a WordPress Site with Terminus and WP-CLI](/guides/create-wp-site)
4 changes: 2 additions & 2 deletions source/content/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ When you're moving a doc or heading to a new location, include a formatted table
| docs.pantheon.io/drush | sc=301\|t=https://docs.pantheon.io/guides/drush |
| docs.pantheon.io/drush-versions | sc=301\|t=https://docs.pantheon.io/guides/drush/drush-versions |
| docs.pantheon.io/drush-import | sc=301\|t=https://docs.pantheon.io/guides/drush/drush-import |
| docs.pantheon.io/guides/drupal-commandline | sc=301\|t=https://docs.pantheon.io/guides/drush/drupal-commandline |
| docs.pantheon.io/drupal-commandline | sc=301\|t=https://docs.pantheon.io/drupal-commandline |

<hr className="source-code" /> <br/>

Expand All @@ -777,7 +777,7 @@ When you're moving a doc or heading to a new location, include a formatted table
| docs.pantheon.io/drush | sc=301\|t=https://docs.pantheon.io/guides/drush |
| docs.pantheon.io/drush-versions | sc=301\|t=https://docs.pantheon.io/guides/drush/drush-versions |
| docs.pantheon.io/drush-import | sc=301\|t=https://docs.pantheon.io/guides/drush/drush-import |
| docs.pantheon.io/guides/drupal-commandline | sc=301\|t=https://docs.pantheon.io/guides/drush/drupal-commandline |
| docs.pantheon.io/drupal-commandline | sc=301\|t=https://docs.pantheon.io/drupal-commandline |
```
</Example>

Expand Down
8 changes: 4 additions & 4 deletions source/data/landings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
url: "/terminus"
icon: "video"
- text: "Create a Drupal Site From the Command Line Using Terminus and Drush"
url: "/guides/drush/drupal-commandline"
url: "/drupal-commandline"
icon: "book"
- text: "Create a WordPress Site From the Command Line Using Terminus and WP-CLI"
url: "/guides/wp-cli"
Expand Down Expand Up @@ -578,7 +578,7 @@
url: "/terminus"
icon: "video"
- text: "Create a Drupal Site From the Command Line Using Terminus and Drush"
url: "/guides/drush/drupal-commandline"
url: "/drupal-commandline"
icon: "book"
- text: "Create a WordPress Site From the Command Line Using Terminus and WP-CLI"
url: "/guides/wp-cli"
Expand Down Expand Up @@ -832,7 +832,7 @@
- text: "Using Pantheon as a Training Platform for WordPress and Drupal"
url: "/guides/trainers"
- text: "Create a Drupal Site From the Command Line Using Terminus and Drush"
url: "/guides/drush/drupal-commandline"
url: "/drupal-commandline"
- text: "Using WP SAML Auth with Google Apps"
url: "/guides/wordpress-google-sso"
- text: "Using WordPress with Composer on Pantheon"
Expand Down Expand Up @@ -1040,7 +1040,7 @@
- text: "Configuring settings.php"
url: "/guides/php/settings-php"
- text: "Create a Drupal Site From the Command Line Using Terminus and Drush"
url: "/guides/drush/drupal-commandline/"
url: "/drupal-commandline/"
- text: "Configuration Workflow for Drupal Sites"
url: "/drupal-configuration-management"
- text: "Configuring JetBrains PhpStorm IDE with Drupal on Pantheon"
Expand Down
2 changes: 1 addition & 1 deletion source/releasenotes/2015-03-01-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ categories: [documentation]

Check out our new guide <strike>Automated Testing for WordPress with Behat</strike> to learn how to set up Behat on your local machine and run automated tests against a remote WordPress site. **Editors note:** This was replaced with [Automate Testing with Behat](/guides/behat).

In our new guide [Use Terminus to Create and Update Drupal Sites on Pantheon](/guides/drush/drupal-commandline), you'll learn how to create a new Drupal site, install some contrib modules, commit code, and clone from one site environment to another—all through the Terminus CLI.
In our new guide [Use Terminus to Create and Update Drupal Sites on Pantheon](/drupal-commandline), you'll learn how to create a new Drupal site, install some contrib modules, commit code, and clone from one site environment to another—all through the Terminus CLI.

Feel more at home at the command line? Read our [new guide](/guides/wp-cli) to learn how to use Terminus and WP-CLI to create and manage a WordPress site.
2 changes: 1 addition & 1 deletion source/releasenotes/2017-03-01-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ categories: [documentation]
---
### New Articles

[Create a Drupal Site From the Command Line Using Terminus and Drush](/guides/drush/drupal-commandline)
[Create a Drupal Site From the Command Line Using Terminus and Drush](/drupal-commandline)
2 changes: 1 addition & 1 deletion source/releasenotes/2017-04-01-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ categories: [documentation]
---
### New Articles

[Create a Drupal Site From the Command Line Using Terminus and Drush](/guides/drush/drupal-commandline)
[Create a Drupal Site From the Command Line Using Terminus and Drush](/drupal-commandline)

[Build Tools Guide](/guides/build-tools)

Expand Down
4 changes: 4 additions & 0 deletions src/components/omniSidebarNav/submenus/certification.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ const CertificationItems = () => {
getGuideDirectory('guides/wordpress-git', 'WordPress and Git'),
getGuideDirectory('guides/pagerduty', 'Incident Management'),
getGuideDirectory('guides/accessibility', 'Web Accesibility'),
simpleLink(
'/drupal-commandline',
'All CLI workflow with Terminus and Drupal',
),
simpleLink('/pivotal-tracker', 'Pivotal Tracker'),
simpleLink('/pingdom-uptime-check', 'Pingdom Uptime Check'),

Expand Down
Loading