slidersConfiguration

Configuring the Zipwire CLI for your workflow

The Zipwire CLI stores configuration in a YAML file. This guide covers the available settings and how to customize them for your workflow.

Config File Location

Your configuration is stored at:

~/.config/zw/config.yaml

To view your current configuration:

zw config show

Configuration Options

API Settings

api-base-url

The API endpoint the CLI connects to.

api-base-url: https://api.zipwire.io

Usually you don't need to change this, but it's useful if you're running a local Zipwire instance.

api-token

Your authentication token. Set via zw auth login.

Never commit this to version control. Use environment variables in CI/CD instead.

Output Settings

output-format

Controls the output format for all commands.

Options:

  • human – Pretty-printed, hierarchical output with colors (default)

  • structured – Machine-readable key-value format

Override per-command:

no-color

Disable colored output.

Options:

  • false – Colors enabled (default)

  • true – Disable all colors

Override per-command:

The CLI automatically detects if output is being piped and disables colors when appropriate.

Customizing Configuration

Via Command Line

Use the zw config command to update settings:

Manual Editing

Edit ~/.config/zw/config.yaml directly:

Using Environment Variables

Override config settings with environment variables:

This is useful for CI/CD pipelines and scripts:

Per-Command Overrides

Most commands accept flags to override config settings:

Use --help to see all available flags for a command:

Multiple Configurations

If you need different configurations for different contexts (work vs. personal, different clients, etc.), create multiple config files:

Smart Parsing

The CLI has smart parsing for common values:

Activity Names

Activities use the hierarchy format:

Must be quoted if they contain spaces or special characters:

Dates

Dates are parsed intelligently:

Durations

Durations are flexible:

Troubleshooting

Config File Not Found

If the CLI can't find your config file:

Settings Not Applied

Make sure you:

  1. Saved the file correctly

  2. Using the right file path

  3. Not overriding with command-line flags

Check your active config:

Reset to Defaults

Remove the config file and re-authenticate:


For more help, use the built-in help system:

Last updated