<blockquote>
  <p>is it simply a case that hasn't been needed for the command line interface yet?</p>
</blockquote>

<p>Most likely this one.</p>

<p>Can you send your plugin over to support@buildwithcraft.com and point us to a command that will reproduce it so we can look into it?</p>

<p>Will update the answer here with what we find.</p>

CC BY-SA 3.0
2014-11-18T18:31:46.217Z
2014-11-18T18:31:46.217Z
Brad Bell
<p>The <code>if</code> statement on Line 859 of <code>TemplatesService.php</code> prevent the template service from loading templates from a plugin.</p>

<p>Is there a specific reason for this, or is it simply a case that hasn't been needed for the command line interface yet?</p>

<p>I would like to use the template service to render various things like report emails. Is there another way I can do this from the CLI at the moment?</p>

<plugin-development>
Plugin template's are not available from console commands
# Plugin template's are not available from console commands

(Asked by: username_0 on 2014-11-18)

The `if` statement on Line 859 of `TemplatesService.php` prevent the template service from loading templates from a plugin.

Is there a specific reason for this, or is it simply a case that hasn't been needed for the command line interface yet?

I would like to use the template service to render various things like report emails. Is there another way I can do this from the CLI at the moment?

**Tags:** plugin-development

---

## 1 answers

### Answer by username_1 on 2014-11-18. Score: 1

> is it simply a case that hasn't been needed for the command line interface yet?

Most likely this one.

Can you send your plugin over to support@buildwithcraft.com and point us to a command that will reproduce it so we can look into it?

Will update the answer here with what we find.


---

