CLI Tool
The Mojave CLI is a lightweight command-line interface that lets you interact with your Mojave workspace directly from your terminal. It’s ideal for developers, power users, and remote teams who want to manage time, projects, and invoices without switching context.
Installation
Install globally using npm:
After installation, verify the command:
Authentication
Set your API token using:
The token is stored securely in your system keychain or config file depending on OS.
Available Commands
Command | Description |
---|---|
| Set or view API token |
| View current user profile |
| List all projects |
| Create a new project |
| Start tracking time |
| Stop the currently running timer |
| Log time manually |
| List recent invoices |
| Send an invoice by ID |
Example Usage
View current user
Start a timer
Stop the timer
Create a new project
Log time manually
Configuration
You can view or change saved config using:
This shows your current token, default project, and timezone settings.
Output Formats
Add --json
to any command to get machine-readable output:
Best Practices
Use aliases for frequently used commands
Add
mojave
scripts into your CI workflowsPipe outputs into logs or file exports
Set project defaults using
mojave config --project prj_xyz