CodeIgniter Forums
Ci4, CLI Spark Run Standart Command Terminal - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Ci4, CLI Spark Run Standart Command Terminal (/showthread.php?tid=90788)



Ci4, CLI Spark Run Standart Command Terminal - dhiya as - 05-03-2024

hi, is there a function/feature to run the command line outside the spark command?

I am creating an application installation feature via the spark CLI, 
I want to run several commands such as 
"composer require..", "cd", etc, 
these commands are standard from the terminal..can I do that with spark?


RE: Ci4, CLI Spark Run Standart Command Terminal - codeus - 05-04-2024

For commands such as cd and composer, it would easiest to use a shell, which of course will run spark command also.

If you are using OSX / linux / unix, then use bash.
For windows, use powershell.


RE: Ci4, CLI Spark Run Standart Command Terminal - dhiya as - 05-04-2024

(05-04-2024, 11:36 AM)codeus Wrote: For commands such as cd and composer, it would easiest to use a shell, which of course will run spark command also.

If you are using OSX / linux / unix, then use bash.
For windows, use powershell.

hi codeus, thanks for u replay
i mean , 
i have create features CLI  for my project, 
its a new command in spark to installation my project.
just by  call 1 command in my project then all other command will be automaticaly executed

ex. php spark ybs:install

so other command  will be automaticaly executed

i have create that but the problem i dont know how to run
command outside the spark .

i have class extend BaseCommand

n use function $this->call(...)

but this function just call command inside the spark.

i need call command outside the spark


RE: Ci4, CLI Spark Run Standart Command Terminal - kenjis - 05-05-2024

The following script may be useful for you.
https://github.com/codeigniter4/translations/blob/develop/bin/test


RE: Ci4, CLI Spark Run Standart Command Terminal - dhiya as - 05-06-2024

(05-05-2024, 12:54 AM)kenjis Wrote: The following script may be useful for you.
https://github.com/codeigniter4/translations/blob/develop/bin/test

Greate..thanks Kenji.. its work..