CLI Plugins Resource¶
CLIPluginsResource(cli)
¶
Bases: BaseCLIResource
CLI resource for plugin management.
Attributes:
| Name | Type | Description |
|---|---|---|
_cli |
Reference to the parent |
Source code in src/aiobsidian/cli/_base.py
info(plugin_id)
async
¶
Get details about a plugin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id
|
str
|
Plugin identifier. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Plugin details. |
Source code in src/aiobsidian/cli/plugins.py
restrict(*, on)
async
¶
Toggle restricted mode for plugins.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
on
|
bool
|
If |
required |
Source code in src/aiobsidian/cli/plugins.py
enabled()
async
¶
List enabled plugins.
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of enabled plugin objects. |
Source code in src/aiobsidian/cli/plugins.py
enable(plugin_id)
async
¶
Enable a plugin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id
|
str
|
Plugin identifier. |
required |
disable(plugin_id)
async
¶
Disable a plugin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id
|
str
|
Plugin identifier. |
required |
install(plugin_id)
async
¶
Install a community plugin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id
|
str
|
Plugin identifier from the community registry. |
required |
uninstall(plugin_id)
async
¶
Uninstall a plugin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id
|
str
|
Plugin identifier. |
required |
reload(plugin_id)
async
¶
Reload a plugin (useful during development).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id
|
str
|
Plugin identifier. |
required |
list(*, versions=False)
async
¶
List all installed plugins.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
versions
|
bool
|
If |
False
|
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of plugin objects. |