Can't run command in terminal to get API connection

236 views Asked by At

I fellow the instruction from official Akeneo Doc. I try to get API connection list.

php bin/console pim:oauth-server:list-clients --env=prod

Every time I run this command in terminal, it throws error.

Could not open input file: bin/console

I tried for both version 1.7 and 2.0. It's still same. Do i need to open terminal in certain folder to run?

Akeneo Server is on docker.

1

There are 1 answers

0
taymyinl On

First I find Id of my container (for me, it's Akeneo)

docker container ls

my Akeneo Id on docker is

"0de07xxxxxxx"

I exac my container my this command

docker exec -it "0de07xxxxxxx" bash 

and I find my path folder by find command.

find / -name app

Now i can run php command to get api connection list. and yeah i do need to open terminal in akeneo folder to run php command lines.