Where can I find info on piping logs to the CLI?
# prisma-whats-new
i
Where can I find info on piping logs to the CLI?
a
gc help logs:function
You're probably looking for the
--tail
option
i
Is there a beta version of the CLI I need to have?
Copy code
graphcool help logs:function
doesn't give me an option for logs
a
Do you have the CLI beta version installed? I haven't got the latest installed, so the syntax might have changed... @nilan?
n
yes it changed it's now
graphcool help logs
🙂
👍🏻 1
i
I installed graphcool-cli-beta
It shows logs as one of the available commands
n
did you install
npm install -g graphcool@beta
?
i
But
Copy code
graphcool-beta help logs
doesn't give me any specific info about the command
n
looks like you're on an old version
i
Wrong package?
n
yes
i
Copy code
-e, --env ENV              Environment name to set
What does that value correspond to?
n
in
.graphcoolrc
you can have many environments (by default only
dev
)
i
Copy code
gc logs -e dev -p Manageable -f validDataSources --tail
Yields
Copy code
Please provide a valid environment that has a valid project id
n
what if you leave out
-e dev
?
i
Same result
My .graphcoolrc just has an auth token in it
n
could you PM me the contents of
.graphcoolrc
?
that's wrong
probably due to the old CLI version creating it
could you just delete it, and do
graphcool init
again?
i
Sure
What exactly does the graphcool init command do?
Is that the right command if I am trying to link to an existing project?
n
in an empty folder: enters init wizard in a folder containing a
graphcool.yml
file: creates new project based on the configuration
Is that the right command if I am trying to link to an existing project?
that's only possible by ejecting a project, read more here: https://www.graph.cool/forum/t/feedback-new-cli-beta/949?u=nilan you can also create a new project based on an existing one using
graphcool init
in an empty folder
by the way, would love for you to experiment with the CLI and share your thoughts and questions in the Forum in a batched manner, so everyone can be part of that conversation 🙂
i
Cool
😄 1