Cannot set --config path on linux, just shows help text

Hey guys,

I am trying to run grafana on an Ubuntu OS through the CLI. I have installed it, even created my own plugin that is built, everything. But when I run grafana-server start I get the error:

Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath

I have then tried to set these paths manually by running:

sudo grafana-cli --config /usr/share/grafana/conf/grafana.ini

and:

sudo grafana-cli --homepath “/usr/share/grafana”

This just shows the help text and any subsequent attempts to run the server start command give the same results as before. As a new grafana developer is there something I am missing?

it, even created my own plugin that is built, everything. But when I run
grafana-server start

Why are you not using the standard sysvinit or systemd startup scripts?

Antony.

I figured their tool would work, seeing as their tutorial says to use it. I did end up starting it with systemctl. But that isn’t the question. The question is, why doesn’t their CLI work the way it is meant to per their documentation?

Could you provide a URL to the documentation you’re following?

Thanks,

Antony.