Command line
The commitline command starts Commitline, quits it, and tells you how it's doing, from any terminal.
Get the command
| System | How |
|---|---|
| Windows | The installer adds it to your PATH. Open a new terminal to use it. |
| macOS | Choose Commitline › Install command in PATH. It links the command into /usr/local/bin, and asks for an administrator's permission. |
| Linux, .deb | It's installed as /usr/bin/commitline. |
| Linux, AppImage | Run the AppImage with --command-line first, such as ./Commitline-0.0.1-linux-x64.AppImage --command-line status. |
Commands
| Command | What it does |
|---|---|
commitline open | Starts Commitline, or brings its window forward. |
commitline quit | Quits Commitline, as its Quit does. It never starts it. |
commitline status | Says whether Commitline is running, its modules, and any work in progress. It never starts it. |
commitline commands | Lists the commands Commitline's parts offer. |
commitline run with a command | Runs one of those commands, and prints its result. |
commitline help | Shows the help, or with a module's name, that module's commands. |
The command never opens a window of its own: it talks to the Commitline that's running.
Options
| Option | What it does |
|---|---|
--json | Prints the answer as JSON, for scripts. |
--no-start | Doesn't start Commitline when it isn't running. |
--timeout with a number of seconds | Waits at most that long, from 1 to 3,600. |
--data-dir with a folder | Uses another data folder. |
--help | Shows the help. |
Exit codes
| Code | Means |
|---|---|
| 0 | It worked. |
| 1 | It failed. |
| 2 | The command was mistyped. |
| 3 | Commitline isn't running. |
| 4 | Another build of Commitline is running. |
| 5 | The data folder can't be used. |
| 6 | It timed out, or was cancelled. |
| 7 | The module isn't on. |
| 8 | Commitline is installing an update. |
| 9 | Part of the command didn't stop. |