<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Plug-in on Lima</title><link>https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/</link><description>Recent content in Plug-in on Lima</description><generator>Hugo</generator><language>en</language><atom:link href="https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/index.xml" rel="self" type="application/rss+xml"/><item><title>VM driver plugins</title><link>https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/vm/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/vm/</guid><description>&lt;p&gt;See &lt;a href="https://deploy-preview-5702--lima-vm.netlify.app/docs/dev/drivers/"&gt;Virtual Machine Drivers&lt;/a&gt;.&lt;/p&gt;
&lt;!-- TODO: migrate the most of the content from ../../dev/drivers.md to here --&gt;</description></item><item><title>CLI plugins</title><link>https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/cli/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/cli/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning&lt;/strong&gt;
Support for CLI plugins is experimental&lt;/p&gt;
&lt;/blockquote&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;⚡ Requirement&lt;/th&gt;
					&lt;th&gt;Lima &amp;gt;= 2.0&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Lima supports a plugin-like command aliasing system similar to &lt;code&gt;git&lt;/code&gt;, &lt;code&gt;kubectl&lt;/code&gt;, and &lt;code&gt;docker&lt;/code&gt;. When you run a &lt;code&gt;limactl&lt;/code&gt; command that doesn&amp;rsquo;t exist, Lima will automatically look for an external program named &lt;code&gt;limactl-&amp;lt;command&amp;gt;&lt;/code&gt; in your system&amp;rsquo;s PATH and additional directories.&lt;/p&gt;
&lt;h2 id="plugin-discovery"&gt;Plugin Discovery&lt;/h2&gt;
&lt;p&gt;Lima discovers plugins by scanning for executables named &lt;code&gt;limactl-&amp;lt;plugin-name&amp;gt;&lt;/code&gt; in the following locations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Directory containing the &lt;code&gt;limactl&lt;/code&gt; binary&lt;/strong&gt; (including symlink support)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;All directories in your &lt;code&gt;$PATH&lt;/code&gt; environment variable&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;&amp;lt;PREFIX&amp;gt;/libexec/lima&lt;/code&gt;&lt;/strong&gt; - For plugins installed by package managers or distribution packages&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Plugin discovery respects symlinks, ensuring that even if &lt;code&gt;limactl&lt;/code&gt; is installed via Homebrew and points to a symlink, all plugins are correctly discovered.&lt;/p&gt;</description></item><item><title>URL handler plugins</title><link>https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/url/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/url/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning&lt;/strong&gt;
Support for URL handler plugins is experimental&lt;/p&gt;
&lt;/blockquote&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;⚡ Requirement&lt;/th&gt;
					&lt;th&gt;Lima &amp;gt;= 2.0&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Lima&amp;rsquo;s template locator supports custom URL schemes through plugins. A plugin named &lt;code&gt;limactl-url-&amp;lt;scheme&amp;gt;&lt;/code&gt; handles URLs that begin with &lt;code&gt;&amp;lt;scheme&amp;gt;:&lt;/code&gt;. This lets you create short, memorable template locators for your own workflows.&lt;/p&gt;
&lt;h2 id="how-it-works"&gt;How it works&lt;/h2&gt;
&lt;p&gt;When Lima encounters a URL with an unrecognized scheme (e.g. &lt;code&gt;dev:webapp&lt;/code&gt;), it:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Searches for an executable named &lt;code&gt;limactl-url-dev&lt;/code&gt; using the standard &lt;a href="https://deploy-preview-5702--lima-vm.netlify.app/docs/config/plugin/cli/#plugin-discovery"&gt;plugin discovery&lt;/a&gt; mechanism&lt;/li&gt;
&lt;li&gt;Calls the plugin with the part after the colon as its sole argument (in this case, &lt;code&gt;webapp&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Reads the plugin&amp;rsquo;s stdout, which must be either a URL (with any supported scheme) or a local file path&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The plugin&amp;rsquo;s output can itself use a custom scheme. Lima resolves the chain until it reaches a final &lt;code&gt;https:&lt;/code&gt; URL or local file path. It detects and rejects redirect loops.&lt;/p&gt;</description></item></channel></rss>