Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Link to management commands documentation in user facing docs.

Lauryn Menarda7fd994cbd00
diff --git a/templates/zerver/api/incoming-webhooks-walkthrough.md b/templates/zerver/api/incoming-webhooks-walkthrough.md
index 6a371901783..353b2fea581 100644
--- a/templates/zerver/api/incoming-webhooks-walkthrough.md
+++ b/templates/zerver/api/incoming-webhooks-walkthrough.md
@@ -280,6 +280,11 @@ The format is a JSON dictionary, so make sure that the header names do
not contain any spaces in them and that you use the precise quoting
approach shown above.
+For more information about `manage.py` command-line tools in Zulip, see
+the [management commands][management-commands] documentation.
+
+[management-commands]: https://zulip.readthedocs.io/en/latest/production/management-commands.html
+
### Integrations Dev Panel
This is the GUI tool.
diff --git a/templates/zerver/development/dev_tools.html b/templates/zerver/development/dev_tools.html
index 5926150d374..7b53485d960 100644
--- a/templates/zerver/development/dev_tools.html
+++ b/templates/zerver/development/dev_tools.html
@@ -85,7 +85,7 @@
</tbody>
</table>
<h2>Useful management commands</h2>
- <p>Development-specific management commands live in <code>zilencer/management/commands</code>. Highlights include:
+ <p>Development-specific <a href="https://zulip.readthedocs.io/en/latest/production/management-commands.html">management commands</a> live in <code>zilencer/management/commands</code>. Highlights include:
<ul>
<li><code>./manage.py populate_db</code>: Rebuilds database. Has options to e.g. create 3K users for testing.</li>
<li><code>./manage.py mark_all_messages_unread</code>: Useful for testing reading messages.</li>
diff --git a/templates/zerver/help/gdpr-compliance.md b/templates/zerver/help/gdpr-compliance.md
index 4a94073745b..4cfa48b2178 100644
--- a/templates/zerver/help/gdpr-compliance.md
+++ b/templates/zerver/help/gdpr-compliance.md
@@ -128,12 +128,11 @@ In addition to the features described above that are available in
Zulip Cloud (which are also available on-premises), the following tools
may be useful:
-* The Zulip server comes with a command-line tool, `manage.py export_single_user`,
- which is a variant of the main server
- [export tool](https://zulip.readthedocs.io/en/latest/production/export-and-import.html),
- that exports a single Zulip user's account details,
- preferences, stream subscriptions, and message history in a
- structured JSON format.
+* The Zulip server comes with a [command-line tool][management-commands],
+ `manage.py export_single_user`, which is a variant of the main server
+ [export tool][export-and-import-tool], that exports a single Zulip
+ user's account details, preferences, stream subscriptions, and message
+ history in a structured JSON format.
* The Django management shell (`manage.py shell`) and database shell
(`manage.py dbshell`) allows you to query, access, edit, and delete
data directly.
@@ -143,3 +142,6 @@ your server infrastructure responsibly, internal policies around
access, logging, and backups, etc. If you need detailed guidance, we
recommend contacting [email protected]; our paid support contracts
include assistance with understanding GDPR compliance with Zulip.
+
+[management-commands]: https://zulip.readthedocs.io/en/latest/production/management-commands.html
+[export-and-import-tool]: https://zulip.readthedocs.io/en/latest/production/export-and-import.html
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 31070289fb4..79bb76f561a 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -6880,12 +6880,13 @@ paths:
permission for a bot by contacting [Zulip Cloud support][support]
with an explanation for why it is needed. Self-hosted installations
can toggle `can_create_users` on an account using the `manage.py
- change_user_role` command.
+ change_user_role` [management command][management-commands].
**Changes**: Before Zulip 4.0 (feature level 36), this endpoint was
available to all organization administrators.
[support]: /help/contact-support
+ [management-commands]: https://zulip.readthedocs.io/en/latest/production/management-commands.html
x-requires-administrator: true
parameters:
- name: email