-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add magento-cloud, bin/magento (Commerce), and update bin/magento (Open Source) in the CLI reference #5642
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved for Open Source/Commerce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some magento-cloud comments don't quite fit.
Use the ["Add CLI commands"]({{ page.baseurl }}/extension-dev-guide/cli-cmds/cli-add.html) guide to add a custom Magento CLI command. | ||
|
||
{: .bs-callout-info } | ||
You can call Magento CLI commands using shortcuts instead of the full command name. For example, you can call `{{ tool }} setup:upgrade` using `{{ tool }} s:up`, `{{ tool }} s:upg`, etc. See [shortcut syntax](https://symfony.com/doc/current/components/console/usage.html#shortcut-syntax) to understand how to use shortcuts with any Magento CLI command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the style guide, etc.
should be avoided.
|
||
{% capture intro %} | ||
{: .bs-callout-info } | ||
You can call Magento CLI commands using shortcuts instead of the full command name. For example, you can call `{{ tool }} setup:upgrade` using `{{ tool }} s:up`, `{{ tool }} s:upg`, etc. See [shortcut syntax](https://symfony.com/doc/current/components/console/usage.html#shortcut-syntax) to understand how to use shortcuts with any Magento CLI command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So Magento Cloud CLI does not have the setup:upgrade
call, but you can use the shortcut method in an interesting way. For example, mgc ssh
opens a SSH to the remote environment instead of having to type the full magento-cloud environment:ssh
command. Shortcuts are in parenthesis in the help and the second and third example of usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any reason to keep this note then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or create one for Cloud. I will take a closer look.
@dshevtsov , just FYI, found a bug in the generated page: i think it's because it has the |
Co-Authored-By: hguthrie <hguthrie@users.noreply.github.com>
Edited notes, fixed the bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with it. I think you have made it generic enough to share the same template. We can always add some introductory content to the Cloud file later.
running tests |
Hi @dshevtsov, thank you for your contribution! |
Purpose of this pull request
This pull request:
This also changes CLI template to be able to render the magento-cloud reference.
Affected DevDocs pages
Additional information
Staging build: 940
whatsnew
Updated the Command-line tools reference: