R Observatory
Search
install.packages("cli")
CRAN checks, method
1 of 13platforms with problems
CRAN 30-day downloads, method
2.0M−8.3% down on the 30 days before, the worse direction
Test coverage, method
76%of lines run by tests

A suite of tools to build attractive command line interfaces ('CLIs'), from semantic elements: headings, lists, alerts, paragraphs, etc. Supports custom themes via a 'CSS'-like language. It also contains a number of lower level 'CLI' elements: rules, boxes, trees, and 'Unicode' symbols with 'ASCII' alternatives. It support ANSI colors and text styles as well.

Maintainer
Gábor Csárdi
Latest release
9 Apr 2026
First release
5 Nov 2017

Compare with another package

More details
Releases
29
Needs compilation
Yes
Needs R
>= 3.4
Config/Needs/website
r-lib/asciicast, bench, brio, cpp11, decor, desc, fansi, prettyunits, sessioninfo, tidyverse/tidytemplate, usethis, vctrs
Config/testthat/edition
3
Config/usethis/last-upkeep
2025-04-25
RoxygenNote
7.3.2.9000
Collections (12) Method, Collections
  • arcgis, installed by the arcgis package
  • diveR, installed by the diveR package
  • econdataverse, installed by the econdataverse package
  • fgeo, installed by the fgeo package
  • nflverse, installed by the nflverse package
  • pacta.loanbook, installed by the pacta.loanbook package
  • r4sub, installed by the r4sub package
  • redistverse, installed by the redistverse package
  • surveyverse, installed by the surveyverse package
  • tidymodels, installed by the tidymodels package
  • tidyverse, installed by the tidyverse package
  • tmapverse, installed by the tmapverse package
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("cli")
APA
Csárdi, G., Posit Software, PBC, Brüggemann, S., Müller, K., & Wickham, H. (2026). cli: Helpers for Developing Command Line Interfaces (Version 3.6.6) [Computer software]. https://doi.org/10.32614/CRAN.package.cli
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for cli version 3.6.6 [Data set]. HJJB, LLC. Data release v2026-10-27. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-27, which the citation names so these numbers can be found later.

1 of 13 check platforms have warnings or errors.

  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    Error

    Version checked
    3.6.6
    Time taken
    14 s

    whether package can be installed: Error

    Installation failed.

    Full output

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    3.6.6
    Time taken
    190 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    3.6.6
    Time taken
    128 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    3.6.6
    Time taken
    121 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    3.6.6
    Time taken
    120 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    3.6.6
    Time taken
    65 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    3.6.6
    Time taken
    242 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    3.6.6
    Time taken
    310 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    3.6.6
    Time taken
    180 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    3.6.6
    Time taken
    174 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    3.6.6
    Time taken
    56 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    3.6.6
    Time taken
    179 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    3.6.6
    Time taken
    251 s
  • 1 Error
  • 12 OK
Check output (1)

whether package can be installed, Error on 1 platform

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.7/cli.Rcheck/00install.out' for details.

Over time

No change since 20 Oct 2026

As a list (34)
ChangedWorst statusOKNotesWarningsErrors
20 Oct 2026Error12001
17 Oct 2026OK13000
15 Oct 2026Error12001
25 Sep 2026OK13000
18 Sep 2026Error12001
12 Sep 2026OK13000
20 Aug 2026Error12001
5 Aug 2026OK13000
1 Aug 2026Note12100
11 Jul 2026OK13000
10 Jul 2026Error12001
3 Jul 2026OK13000
24 Jun 2026Error12001
15 Jun 2026OK13000
13 Jun 2026Error12001
8 Jun 2026OK12000
6 Jun 2026Error12001
24 May 2026OK13000
14 May 2026Error11002
11 May 2026OK13000
10 May 2026Error12001
8 May 2026OK13000
4 May 2026Error11002
30 Apr 2026OK13000
28 Apr 2026Error12001
24 Apr 2026OK14000
16 Apr 2026Error13001
31 Mar 2026Warning8060
28 Mar 2026Error9131
25 Mar 2026Warning9230
22 Mar 2026Error8411
21 Mar 2026Warning9410
17 Mar 2026Note13100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
2,417,438−2.2% down on the 30 days before, the worse directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.

CRAN rank

3 of 26,529

CRAN

1,969,940 downloads in the last 30 days

Rank
3 of 26,529
Change
−8.3% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

66,916 downloads in the last 30 days

Rank
2 of 30,526
Change
+106% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

208 downloads in the last 30 days

Rank
218 of 29,212
Change
+7.8% up on the 30 days before, the better direction

It is in the total. Take it out

conda-forge

378,902 downloads in the last 30 days

Rank
2 of 3,828
Change
+31.1% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

1,472 downloads in the last 30 days

Rank
10 of 7,575
Change
−11.6% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
1
Dependent packages
1,818
Suggested by
102
Needs (1)
  • utils
Installing it adds
0 packages, 0 KB of source
Of those, need compilation
0
Optional extras (20)
Dependent packages (50 of 1,818)
PackageTitleDownloads in 30 days
ggplot2Create Elegant Data Visualisations Using the Grammar of Graphics2,007,503
vctrsVector Helpers1,925,790
lifecycleManage the Life Cycle of your Package Functions1,846,861
dplyrA Grammar of Data Manipulation1,701,126
tibbleSimple Data Frames1,611,199
scalesScale Functions for Visualization1,479,213
pillarColoured Formatting for Columns1,439,859
gtableArrange 'Grobs' in Tables1,321,069
isobandGenerate Isolines and Isobands from Regularly Spaced Elevation Grids1,276,432
purrrFunctional Programming Tools1,191,126
tidyrTidy Messy Data1,078,035
tidyselectSelect from a Set of Strings1,065,628
stringrSimple, Consistent Wrappers for Common String Operations1,063,430
readxlRead Excel Files930,881
tidyverseEasily Install and Load the 'Tidyverse'844,693
xml2Parse XML805,754
pkgbuildFind Tools Needed to Build R Packages795,629
shinyWeb Application Framework for R789,462
pkgloadSimulate Package Installation and Attach781,148
hmsPretty Time of Day762,381
descManipulate DESCRIPTION Files756,929
readrRead Rectangular Text Data733,857
testthatUnit Testing for R695,167
vroomRead and Write Rectangular Text Data Quickly639,006
broomConvert Statistical Objects into Tidy Tibbles565,143
igraphNetwork Analysis and Visualization523,571
waldoFind Differences Between R Objects489,042
havenImport and Export 'SPSS', 'Stata' and 'SAS' Files462,911
forcatsTools for Working with Categorical Variables (Factors)450,863
gargleUtilities for Working with Google APIs426,987
googledriveAn Interface to Google Drive420,919
googlesheets4Access Google Sheets using the Sheets API V4417,241
dbplyrA 'dplyr' Back End for Databases412,367
reprexPrepare Reproducible Example Code via the Clipboard400,520
rvestEasily Harvest (Scrape) Web Pages386,416
httr2Perform HTTP Requests and Process the Responses353,829
zipCross-Platform 'zip' Compression341,125
dtplyrData Table Back-End for 'dplyr'315,838
patchworkThe Composer of Plots310,400
conflictedAn Alternative Conflict Resolution Strategy307,642
devtoolsTools to Make Developing R Packages Easier301,151
roxygen2In-Line Documentation for R273,699
ggdistVisualizations of Distributions and Uncertainty220,109
usethisAutomate Package and Project Setup217,334
pkgdownMake Static HTML Documentation for a Package199,184
gh'GitHub' 'API'180,195
svgliteAn 'SVG' Graphics Device166,950
sessioninfoR Session Information158,651
covrTest Coverage for Packages147,825
rcmdcheckRun 'R CMD check' from 'R' and Capture Results125,830
Functions
924
Public exports
240
Lines of R code
18,111
Median complexity
2
Functions (924)
Size and composition

Lines by kind (70,904)

KindLinesShare
R code18,11126%
Tests19,77728%
Documentation10,78415%
Compiled code22,23231%

Lines by language

LanguageLinesShare
R26,89738%
C22,66532%
Rd10,53615%
Markdown10,41015%
Vignettes2130.3%
Other940.1%
C++890.1%

Languages are counted from file extensions.

Files
474
R functions
511
Compiled functions
416
Object systems
S3: 26 methods, S7: 1 classes
Complexity
Median
2
Mean
2.97
Highest
29
Median lines per function
8
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
511
Calls
763
Unconnected
66
Groups
14
Growth (28 releases)
Total lines by release
2,449 on 5 Nov 201770,904 on 9 Apr 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
75.6%
Expressions run by tests
72.2%
Test cases
449
Exports named in tests
77.9%
Coverage by file (63)
Coverage run
Lines counted
5,363
Lines the tests ran
4,600
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
RUnit, testthat, tinytest
Test cases
449
Snapshot tests
519
Lines of tests
19,777
Test lines per line of code
1.09
Exports documented
100%
Arguments documented
96.5%
Return value documented
69.2%
Help pages with examples
43%
Examples run in checks
98.1%
Other documentation
README
Yes, 348 words
Release notes file
Yes
Help pages
121
Lines of documentation
10,784

6 datasets, 0 can be loaded by name

DatasetSizeColumns
emojis2,280 × 19emoji, name, group, subgroup, version, points and 13 more
gfycat_adjectiveslength 8,946
gfycat_animalslength 1,748
rstudio_themeslength 31
spinners88 × 3name, interval, frames
wide_chars237 × 2test, regex

Funded by Posit Software, PBC

Earlier names (1)
  • RStudio

r-lib / cli on github.com

Stars
730no change on 30 days ago
Forks
95
Open issues
99
Last commit
19 Oct 2026
Activity
Commits
1,765
Open pull requests
17
Tagged releases
27
Latest tagged release
v3.6.6, 9 Apr 2026
In development
Default branch at 3.6.6.9000, ahead of CRAN 3.6.6 (checked 2026-10-25)
Issues closed in
16 days (median)
Pull requests closed in
2 days (median)
Pull requests merged
90%
Created
28 Apr 2017
Licence file reads as
–
Development practices (13)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Governance and communityCode of conduct
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2026-10-19
The repository has a site deploy workflow
pkgdown site last built 2026-10-01
CoverageCoverage reporting (Codecov)
Reproducibility and dev environmentMakefile
Lint, format, editorLint workflow, Air, VS Code, RStudio project

Method, repository practices

Across r-lib

Tools

ToolFirst seenFound
Claude Code1 Jun 2026Seen in the repositoryCLAUDE.mdNamed in .RbuildignoreCLAUDE.mdNamed in .gitignore.claude
  • Seen in the repository
  • Named in .Rbuildignore
  • Named in .gitignore

Across r-lib

R releases
  • On CRAN
  • Release
VersionReleasedR
3.6.6 current9 Apr 20264.5.3
3.6.523 Apr 20254.5.0
3.6.413 Feb 20254.4.2
3.6.321 Jun 20244.4.1
3.6.211 Dec 20234.3.2
1.0.223 Mar 2023 first seen4.2.3
3.6.123 Mar 20234.2.3
3.6.09 Jan 20234.2.2
Earlier versions (21)
VersionReleasedR
3.5.020 Dec 20224.2.2
3.4.123 Sep 20224.2.1
3.4.08 Sep 20224.2.1
3.3.025 Apr 20224.2.0
3.2.014 Feb 20224.1.2
3.1.120 Jan 20224.1.2
3.1.027 Oct 20214.1.1
3.0.117 Jul 20214.1.0
3.0.030 Jun 20214.1.0
2.5.026 Apr 20214.0.5
2.4.05 Apr 20214.0.5
2.3.123 Feb 20214.0.4
2.3.031 Jan 20214.0.3
2.2.020 Nov 20204.0.3
2.1.012 Oct 20204.0.3
2.0.228 Feb 20203.6.2
2.0.19 Jan 20203.6.2
2.0.09 Dec 20193.6.1
1.1.019 Mar 20193.5.3
1.0.125 Sep 20183.5.0
1.0.05 Nov 20173.4.2
Release notes (3.6.6)
  • New {.num} and {.bytes} inline styles to format numbers and bytes (@m-muecke, #644, #588, #643).