<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kfdani-001-site10.gtempurl.com/index.php?action=history&amp;feed=atom&amp;title=OpenSite%2FGuides%2FDiscover_commands</id>
	<title>OpenSite/Guides/Discover commands - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kfdani-001-site10.gtempurl.com/index.php?action=history&amp;feed=atom&amp;title=OpenSite%2FGuides%2FDiscover_commands"/>
	<link rel="alternate" type="text/html" href="https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Discover_commands&amp;action=history"/>
	<updated>2026-10-30T02:07:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Discover_commands&amp;diff=872&amp;oldid=prev</id>
		<title>BathAfrica: Publish professional OpenSite help structure and learning paths</title>
		<link rel="alternate" type="text/html" href="https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Discover_commands&amp;diff=872&amp;oldid=prev"/>
		<updated>2026-10-29T21:01:38Z</updated>

		<summary type="html">&lt;p&gt;Publish professional OpenSite help structure and learning paths&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{OpenSite scope}}&lt;br /&gt;
{{OpenSite lesson&lt;br /&gt;
|id=opensite.help.discover-commands&lt;br /&gt;
|summary=List registered command names and execute one documented read-only setting query.&lt;br /&gt;
|prerequisites=An embedded OpenSite host. A command listing is metadata, not proof that every command is available or authorized.&lt;br /&gt;
|steps==== List the registry ===&lt;br /&gt;
Use &amp;lt;code&amp;gt;opensite.commands()&amp;lt;/code&amp;gt; in Python, or &amp;lt;code&amp;gt;opensite-cli commands&amp;lt;/code&amp;gt; in a terminal.&lt;br /&gt;
&lt;br /&gt;
=== Inspect an entry ===&lt;br /&gt;
Use &amp;lt;code&amp;gt;opensite-cli commands show opensite.document.set_quantity&amp;lt;/code&amp;gt; to inspect its descriptor. Check arguments, version and capability before executing it.&lt;br /&gt;
&lt;br /&gt;
=== Run a small read operation ===&lt;br /&gt;
Read &amp;lt;code&amp;gt;locale.language&amp;lt;/code&amp;gt; using &amp;lt;code&amp;gt;settings.get&amp;lt;/code&amp;gt;. Preserve the returned field rather than guessing text formatting.&lt;br /&gt;
&lt;br /&gt;
=== Handle availability ===&lt;br /&gt;
Unknown, unavailable and unauthorized are different failures. Listing a plugin descriptor does not necessarily load the plugin.&lt;br /&gt;
&lt;br /&gt;
|result=Document/material command names are printed and the language setting is returned.&lt;br /&gt;
|limitations=The development CLI’s allow-all policy is not a production account entitlement. Ordinary local workspace operations and protected engineering capabilities have different policy rules.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Complete example ==&lt;br /&gt;
{{Code|lang=python|code=&amp;lt;nowiki&amp;gt;import opensite&lt;br /&gt;
&lt;br /&gt;
commands = opensite.commands()&lt;br /&gt;
for name in sorted(commands):&lt;br /&gt;
    if &amp;quot;material&amp;quot; in name or &amp;quot;document&amp;quot; in name:&lt;br /&gt;
        print(name)&lt;br /&gt;
language = opensite.execute(&amp;quot;settings.get&amp;quot;, {&amp;quot;key&amp;quot;: &amp;quot;locale.language&amp;quot;})&lt;br /&gt;
print(&amp;quot;Language setting:&amp;quot;, language[&amp;quot;value&amp;quot;])&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;os-page-nav&amp;quot;&amp;gt;{{Docnav|OpenSite/Guides/Run your first script|OpenSite/Guides/Debug a Python script|OpenSite/Guides|All guides}}&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:OpenSite documentation]]&lt;/div&gt;</summary>
		<author><name>BathAfrica</name></author>
	</entry>
</feed>