-
Notifications
You must be signed in to change notification settings - Fork 1.7k
magento/graphql-ce#: Magento CLI. Support short commands name #4908
magento/graphql-ce#: Magento CLI. Support short commands name #4908
Conversation
An admin must run tests on this PR before it can be merged. |
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.
Technical: If we are telling readers that some commands are available using shortcuts, it makes sense to provide a full list of all available shortcuts. This topic is generated from the output of the bin/magento list
command, so it would be great to have those shortcuts in the generated list as well that requires changing the Magento CLI itself.
Otherwise, we can confuse people providing information that the shortcuts are available, but they should guess about available options.
I'd suggest to contribute to the magento/magento2 codebase creating a feature request or even a PR.
Editorial:
- Notes should be tagged with
{: .bs-callout-info }
class. - Consider using Google Developer Documentation Style Guide in cases when the DevDocs Style Guide doesn't give clear guidelines:
- Politeness and use of "please"
- Consider changing via to using. Refer to https://developers.google.com/style/word-list#letter-V
Thank you, for your review @dshevtsov .
Honestly, I thought about that. However, for example, for the
All of them are the
done
fixed
removed Thank you! |
I see your point @atwixfirster. Seems like this is a Symphony feature. |
added Thank you, @dshevtsov |
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.
Looks good! Just a minor wording suggestion.
_includes/reference/cli-template.md
Outdated
@@ -10,6 +10,9 @@ | |||
This reference contains {{ commands | size }} commands available through the `bin/magento` command-line tool. | |||
The initial list is auto generated using `bin/magento list` command at the {{ site.data.var.ce }} edition. | |||
|
|||
{: .bs-callout-info } | |||
Magento CLI allows a short command name instead of a full one. For example, `bin/magento setup:upgrade` can be called using `bin/magento s:up`, `bin/magento 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.
Magento CLI allows a short command name instead of a full one. For example, `bin/magento setup:upgrade` can be called using `bin/magento s:up`, `bin/magento 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. | |
You can call Magento CLI commands using shortcuts instead of the full command name. For example, you can call `bin/magento setup:upgrade` using `bin/magento s:up`, `bin/magento 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.
done
Thank you, @erikmarr
running tests |
Hi @atwixfirster, thank you for your contribution! |
@dshevstov and @erikmarr Just confirming that you don't want to call this update out in What's New. |
@meker12, no. |
Purpose of this pull request
This pull request (PR) adds information about short CLI command format.
Affected DevDocs pages
Links to Magento source code