---
name: "cg-help"
section: "1"
platform: "linux"
package: "cogito"
version: "0.18.2-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/cg-help"
---

# cg-help(1)

show help for cogito commands

## NAME

cg-help - show help for cogito commands

## SYNOPSIS

cg-help \[-c\] \[cg-COMMAND \| COMMAND\].sp

## DESCRIPTION

Takes an optional argument describing the command to show the help for. The command can be specified either as *COMMAND* or *cg-COMMAND*. If the argument is left out an overview of all the Cogito commands will be shown..sp Note, short help for a command is also available by passing --help or -h to the command. The complete command manual is shown when passing --long-help (and is the same as doing "cg-help command")..sp

## OPTIONS

- \-c

  Colorize the output. You can customize the colors using the $CG\_COLORS environment variable (see below).

- \-h, --help

  Print usage summary.

- \--long-help

  Print user manual. The same as found in [**cg-help**(1)](/cg-help/1.md).

## ENVIRONMENT VARIABLES

PAGER

The pager to display log information in, defaults to less.

PAGER\_FLAGS

Flags to pass to the pager.

CG\_COLORS

Colon-separated list of *name=color* pairs, where name is one of helpcopy, helpusage, helpsection, helplitem, helpcgcmd, helpcode, helpempth, default, and value is an ECMA-48 SGR sequence (see e.g. [console\_codes(4)](/console_codes/4.md)).

CG\_COLORS\_AUTO

Even if -c was passed or specified in ~/.cgrc, if this option is set, use colors only when the output is a terminal and it supports colors.

CG\_LESS

This is what the $LESS environment variable value will be set to before invoking $PAGER. It defaults to $LESS concatenated with the R flag to allow displaying of colorized output.

## CONFIGURATION VARIABLES

The following GIT configuration file variables are recognized:.sp

help.usecolor

If enabled, colorify the output like with -c if the output is a terminal.

## COPYRIGHT

Copyright © Petr Baudis, 2005.sp

## SEE ALSO

cg-help is part of [**cogito**(7)](/cogito/7.md), a toolkit for managing [**git**(7)](/git/7.md) trees..sp
