list-checkCommon Workflows

Common workflows and examples for the Zipwire CLI

These examples show how to use the Zipwire CLI for typical contractor workflows.

Workflow 1: Daily Time Tracking

Track your work throughout the day and view what you've logged.

# Morning: Log your first task
zw journal track "Fixed authentication bug in login flow" -d 2h --activity "Client A > Development > Bug Fixes"

# Midday: Log another task
zw journal track "Code review for pull requests" -d 1h --activity "Client A > Development > Code Review"

# Afternoon: Log your final task
zw journal track "Documentation updates" -d 1.5h --activity "Client A > Documentation"

# End of day: Review what you tracked
zw journal list --today

# View summary of hours per activity
zw journal status

Workflow 2: Create and Submit a Timesheet

Once you have entries in your journal, create a timesheet and send it for approval.

Workflow 3: Manage Activities

Create and organize your project activities.

Workflow 4: Automated Daily Tracking (Script)

Automate time tracking in a shell script. Useful for scheduled jobs or integrations.

Run this daily:

Workflow 5: Structured Output for Integration

Use structured output to integrate with other tools or scripts.

Workflow 6: Multiple Client Setup

Working for multiple clients? Create separate activity trees and track time accordingly.

Workflow 7: Git Integration

Automatically log time when you push code or analyze your git history.

The CLI can parse your git commits and create time entries automatically:

Here's a real-world example of this in action:

Zipwire CLI tracking from git logs
The CLI automatically creates journal entries from your git history, turning your development work into tracked time entries without manual data entry.

You can also hook into git events to automatically log time:

To set this up:

Workflow 8: Querying Your Data

Use structured output to query and analyze your time entries.

Tips for Automation

  1. Store tokens securely: Use environment variables, not hardcoded values

  2. Handle errors: Check exit codes in scripts

  3. Use structured output: Makes parsing and integration much easier

  4. Test first: Run commands manually before automating them

  5. Log activities: Keep records of what automation is doing

  6. Use cron carefully: Schedule during off-hours if possible

Next Steps

  • Explore the full command reference with zw --help

  • Set up a Configuration that works for your workflow

  • Integrate the CLI with your existing tools and CI/CD pipelines

  • Consider how AI agents or coding assistants could help automate your time tracking


For detailed command documentation, use the built-in help:

Last updated