Skip to main content

Questions tagged [commands]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
16 views

How to schedule custom command that executes every hour

I created a custom command to print logs. Now I want to schedule that command to execute every hour. Can any one give me a step-by-step process to achieve that? I am new to craft CMS. Craft CMS ...
Dipesh C's user avatar
0 votes
0 answers
39 views

Queue process fails with unclear error ouput

I have a custom job queued, which in itself writes to the logs that the thing it is doing has been done successfully, however if I check the result in "Utilities" > "Queue Manager&...
7ochem's user avatar
  • 165
2 votes
1 answer
96 views

Deployment strategy that removes tables from uninstalled plugins

I have read the following article best practices for deployments. https://craftcms.com/knowledge-base/deployment-best-practices here the following is recommended: git pull composer install php craft ...
antdev's user avatar
  • 137
1 vote
1 answer
27 views

How to change file path where the Debug Toolbar's debugger files are stored?

According to Pull Request #10825 for Craft 4, you can override the filesystem and path where the debugger files are stored for the Debug Toolbar. In the absence of using a separate filesystem, I'd ...
jrrdnx's user avatar
  • 153
1 vote
1 answer
415 views

Exception 'yii\base\UnknownMethodException'

After updating to 3.7.19 I ran the command as instructed in the changelog: php craft utils/repair/section-structure <sectionHandle> But it returned the following: Exception 'yii\base\...
Paul Frost's user avatar
  • 1,060
2 votes
1 answer
630 views

Parse variable to new queue job

Is there a way to parse a variable to a queue job? I want to re-send some Craft commerce emails via a cron job, so have created a console controller for the cron job to run a command against. This ...
Jaytrix's user avatar
  • 337
1 vote
1 answer
47 views

Console command ./craft db/restore expects "info" table. Why?

Why does the console command ./craft db/restore expect the info table to exist and contain a row? There is also no option to ignore a non-existing info or empty info table. When we create automated ...
Matthias Redl-Mann's user avatar
1 vote
1 answer
208 views

execute Yii2 console command from Yii2 extension with Craft

Does anyone know if and how a console command from a Yii2 extension can be used with Craft? To be more specific, I would like to use https://www.yiiframework.com/extension/yii2-migration-creator which ...
Matthias Redl-Mann's user avatar
1 vote
1 answer
34 views

Running Craft Console Commands on Webfaction

I'm trying to run a few of Craft's console commands on a Webfaction server to automate running Craft migrations and resolving Project Config changes, and it's throwing an error. Here's what I'm doing: ...
Jake Dohm's user avatar
  • 766