PHPackages                             there4/fogbugz-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. there4/fogbugz-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

there4/fogbugz-cli
==================

FogBugz Command Line Client

544[5 issues](https://github.com/there4/fogbugz-php-cli/issues)PHP

Since Dec 15Pushed 10y ago5 watchersCompare

[ Source](https://github.com/there4/fogbugz-php-cli)[ Packagist](https://packagist.org/packages/there4/fogbugz-cli)[ RSS](/packages/there4-fogbugz-cli/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

FogBugz Command Line Client [![Build Status](https://camo.githubusercontent.com/6cfc5c668e641c35d00c0e5287b27b2e94018ff89ee9eec1333de1d3e8ec3ab3/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7468657265342f666f676275677a2d7068702d636c692e706e67)](http://travis-ci.org/there4/fogbugz-php-cli)
==============================================================================================================================================================================================================================================================================================================

[](#fogbugz-command-line-client-)

> Manage FogBugz cases from the command line

A simple command line client application that can be used to manage your FogBugz account, working on status, read cases, and leave short notes. This is built using the [Symfony Console](http://symfony.com/doc/current/components/console.html).

Quick Start
-----------

[](#quick-start)

Run the `fb` phar file from the command line. It will prompt you for host, user, and password. It will store an API token in a .fogbugz.yml file.

Help
----

[](#help)

```
FogBugz Command Line Client version 1.2.5 by Craig Davis

Usage:
  [options] command [arguments]

Options:
  --help           -h Display this help message.
  --quiet          -q Do not output any message.
  --verbose        -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  --version        -V Display this application version.
  --ansi              Force ANSI output.
  --no-ansi           Disable ANSI output.
  --no-interaction -n Do not ask any interactive question.

Available commands:
  assign       Assign a case to a different user
  cases        Show cases for the current filter
  close        Close a case
  current      Display the current working case
  estimate     Set the working time estimate for a case
  filters      List filters for the current user
  help         Displays help for a command
  list         Lists commands
  login        Establish a session with FogBugz
  logout       End the session with FogBugz
  note         Leave a note on a case
  open         Open a case in your local browser
  parent       View the parent of a case
  ps1          Display the current working case
  reactivate   Reactivate a case. (The opposite of resolving a case)
  recent       Show cases you have recently worked on.
  reopen       Reopen a Case
  resolve      Resolve a case
  search       Search by keyword
  selfupdate   Updates fb.phar to the latest version.
  setfilter    Set a FogBugz search filter
  setup        Configure this FogBugz client
  star         Star a case
  start        Start working on a case
  stop         Stop your current working case.
  unstar       Remove the star from a case
  version      Show version information
  view         View a case by case number

```

Setup
-----

[](#setup)

You don't have to clone this repo. You can [download the phar file](https://github.com/there4/fogbugz-php-cli/raw/master/fb) and save it to your computer as `fb` somewhere in your `PATH`.

This app stores a config file with host, user, an api token and other settings. If you'd like to change this path, set a env var for `FOGBUGZ_CONFIG` for a value such as `~/.fogbugz.yml` to store the config file in you home directory.

```
`env FOGBUGZ_CONFIG='~/.fogbugz.yml'`

```

You can either locate the `fb` phar file in a bin path, or add an alias to your bash config for the file

```
`alias fb='~/Projects/fogbugz-php-cli/fb'`

```

Dependencies
------------

[](#dependencies)

This app requires PHP 5.3. If you need to run on PHP 5.2, you can use the [older cli branch](https://github.com/there4/fogbugz-php-cli/tree/php-5.2) that has fewer depencies, but similar basic functionality.

Developing New Commands
-----------------------

[](#developing-new-commands)

The project depends on [Composer](http://getcomposer.org/) to load dependencies. Once you've got that, run `composer install` to load the the required libraries. From this point, you should be able to develop by running `php working.php`.

If you'd like to add new commands to the repo, see the `src/FogBugz/Command`directory. After creating a new command file, add it to the `src/FogBugz/Cli/Working.php` file around line 50 where we init the commands.

Building the Phar
-----------------

[](#building-the-phar)

If you'd like to rebuild the phar file, you'll need [Pake](https://github.com/indeyets/pake/wiki). Once you've got that, you'll need to run `pake build`. It will clean the files, run some linters, and then finally build the phar file.

Troubleshooting
---------------

[](#troubleshooting)

- `date_default_timezone_get())` : Some users are getting messages about system timezones. This is a problem with your php config. Please see the [PHP Docs](http://us3.php.net/date_default_timezone_get) for information about fixing this message.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/06719ba09ce20c0774f7b29346b41890f497cb06252f3b8b701fd0df32abd082?d=identicon)[craig-davis](/maintainers/craig-davis)

![](https://www.gravatar.com/avatar/ef78f0ca3100de38d3af37b825048ff460685d9aa49ff866e3d6fe6b248eaef9?d=identicon)[there4](/maintainers/there4)

---

Top Contributors

[![craig-davis](https://avatars.githubusercontent.com/u/9907304?v=4)](https://github.com/craig-davis "craig-davis (101 commits)")[![enobrev](https://avatars.githubusercontent.com/u/584126?v=4)](https://github.com/enobrev "enobrev (3 commits)")[![zorp](https://avatars.githubusercontent.com/u/88058?v=4)](https://github.com/zorp "zorp (3 commits)")

### Embed Badge

![Health badge](/badges/there4-fogbugz-cli/health.svg)

```
[![Health](https://phpackages.com/badges/there4-fogbugz-cli/health.svg)](https://phpackages.com/packages/there4-fogbugz-cli)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
