Welcome Guest, Not a member yet? Register   Sign In
Ci4, CLI Spark Run Standart Command Terminal
#1

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?
Reply
#2

(This post was last modified: 05-04-2024, 11:42 AM by codeus.)

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.
Reply
#3
Photo 

(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
Reply
#4

The following script may be useful for you.
https://github.com/codeigniter4/translat...p/bin/test
Reply
#5
Thumbs Up 

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

Greate..thanks Kenji.. its work..
Reply




Theme © iAndrew 2016 - Forum software by © MyBB