az postgres up sdk docs don't mention that the extension is in preview
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug _"Meaning when you run the command after looking at the SDK docs, it doesn't work.
A note about the command being in preview, and instructions for installing the needed CLI plugin need to be added.
Page: https://docs.microsoft.com/en-us/cli/azure/ext/db-up/postgres?view=azure-cli-latest#ext-db-up-az-postgres-up "_
To Reproduce Steps to reproduce the behavior.
Expected behavior A clear and concise description of what you expected to happen.
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Additional context

add to S164.
add to S164.
There are several things to be improved:
-
Preview information for commands when is_preview=True is specified in commands or commands group. Currently it only shows up blue information when inputting
-h. -
Show up commands belonging to extension and need additional step to install it. Current generated doc structure is as follows:

Although we already group all commands in extension with left directory structure, it is a little hard for customers to know these commands belong to parent extensions not main cli.
In addition, even in main page for db-up, there is no install instruction.

- No extension Preview information shown up.
We have preview metadata for the extension in https://github.com/Azure/azure-cli-extensions/blob/master/src/index.json#L1128 and when inputting the commands in such extension with
-h, the following yellow information will show up:
But there is no such information in doc page.
Finally, it should be noted that all these docs information is automatically generated according to _help.py without manual intervention.
Potential solution:
- Get Preview information and extension warning information in azure-cli-core, and transform to special tags which can be resolved by docs team.
- Commands from cli and extension will show up mixed. Should we combine preview kwargs and extension metadata preview information to one Preview format in docs?
- extension generator and cli generator are two ways for docs team. For extension commands, they may have both extension preview metadata and Preview kwargs. Should we make extension metadata override Preview kwargs?
- When command group is Preview, we should make sure all commands inside the group have the Preview flag in docs. Considering how?
- Add related extension information in command page and find a way to add install instruction.
For Preview kwargs part, it is dupe of #11923.
@chenlomis Thanks for having created this issue. All the problems listed in this issue are resolved now.
@yonzhan Please, proceed to close this issue. Thanks!