You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now you need to create a configuration file, which is required to connect to Kimai:
23
+
### Configuration file
24
+
25
+
Before using it the first time, you have to create a configuration file, which holds the connection infos for Kimai.
26
+
By default this config file will be located at `~/.kimai2-console.json`:
27
+
28
+
```bash
29
+
kimai configuration:create
30
+
```
21
31
32
+
Make sure the file is only readable for your own user:
33
+
22
34
```bash
23
-
kimai dump-configuration
35
+
chmod 600 ~/.kimai2-console.json
24
36
```
25
37
26
-
Afterwards edit the file and change the URL, username and API token to your needs.
38
+
That's it, you can use Kimai from the command line now.
27
39
28
-
By default the configuration file targets the demo installation and will work, but this is likely not want you intent to use ;-)
40
+
By default the configuration file targets the demo installation and will work... but now its time to target your own Kimai, so
41
+
edit the config file and change the settings: URL, username and API token.
29
42
30
-
That's it, you can use Kimai now with e.g. `kimai customer:list`.
43
+
## Available commands
44
+
45
+
You get a list of all available commands with `kimai`.
46
+
47
+
-`kimai customer:list` - show a list of customers
48
+
-`kimai project:list` - show a list of projects
49
+
-`kimai activity:list` - show a list of activities
50
+
-`kimai version` - show the full version string of the remote installation
51
+
-`kimai configuration:create` - creates the initial configuration file
52
+
53
+
To get help for a dedicated command use the `--help` switch, eg: `kimai project:list --help`
31
54
32
55
## Environment variables
33
56
@@ -36,3 +59,7 @@ The following environment variables are supported:
36
59
-`KIMAI_MEMORY_LIMIT` - configures the allowed memory limit (eg `128MB`, or `-1` for unlimited) (see [here](https://www.php.net/manual/en/ini.core.php#ini.memory-limit))
37
60
-`KIMAI_CONFIG` - path to your configuration file (defaults to: $HOME/.kimai2-console.json)
0 commit comments