Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Formatted CLI commands #4206

Merged
merged 2 commits into from
Apr 10, 2019
Merged
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 @@ -41,24 +41,24 @@ This process assumes that you have set up your [local developer workspace]({{ pa
For a new Starter Plan project, a `master` branch was cloned from the {{site.data.var.ece}} Git repository. To start branching and working with code, you need to clone the `master` branch to your local environment.

The format of the Git clone command is:

git fetch origin
git pull origin <environment ID>

```bash
git fetch origin
git pull origin <environment ID>
```
The first time you start working in branches for your Starter project, you need to create a `staging` branch. This creates a code branch matching the `master` branch that deploys to a Staging environment to test configuration and code changes before deploying to the Production environment.

Next, create branches from `staging` to develop code, add extensions, and configure 3rd party integrations. Anytime you need to develop custom code, add extensions, integrate with a 3rd party service, work in a development branch created from the `staging` branch. You will have four active Integration environments available. When you push an active branch, one of these Integration environments automatically deploys your code to test.

We walk you through the process when you [set up your local]({{ page.baseurl }}/cloud/setup/first-time-setup.html) environment.

The format of the Git branch command is:

git checkout <branch name>

```bash
git checkout <branch name>
```
The format of the Magento Cloud CLI branch command is:

magento-cloud environment:branch <environment name> <parent environment ID>

```bash
magento-cloud environment:branch <environment name> <parent environment ID>
```

![Branch from Master]({{ site.baseurl }}/common/images/cloud_workflow-branching.png)

Expand Down