npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@andreclinio/gitlab-cli

v0.8.0

Published

Simple command line interface for GitLab

Readme

For End-Users

This section is for people who just want to install the program. If you want more information, check developers issues at the DEV section below.

Install with SNAP (mostly for Linux users)

The first easiest option is SNAP. Try the snap command to install or to update the program.

sudo snap install gitlab-cli --edge --devmode
sudo snap refresh gitlab-cli --edge --devmode

Install with NPM (once you have NodeJs installed)

If you have NodeJs installed, a good option is NPM. Try the npm command to install or to update the program.

npm i -g @andreclinio/gitlab-cli

Usage (Fast Instructions)

Use --help option for instructions.

$ gitlab-cli --help
...

A brief example to see your projects:

$ gitlab-cli --token XXXXX --url https://gitlab.mycompany.com projects
 - [id:1] : projectA - group1/projectA
 - [id:2] : projectB - group2/projectB

Tip: The personel token can set previosly inside Gitlab -- see docspersonal_access_tokens.html for details

Configuration (Optional)

You can create the file gitlab-cli.cfg (in the current directory) or a $HOME/gitlab-cli.cfg (in your home directory) to store the GitLab URL and your personel token. Once configured this way, you can use the options --auto-token and/or --auto-url (or just simply --auto-all) to avoid exposing sensitive data in command line.

Attention: In previous versions, the configuration file was named .gitlab-cli. Now it's called gitlab-cli.cfg. It can be located at the current directory or home directory.

The file should follow the JSON syntax:

{
    "token": "yadayadayada",
    "url": "https://gitlab.mycompany.com"
}

Example:

$ gitlab-cli --auto-token --auto-url projects -n 2
- [id:1] : projectA - group1/projectA
- [id:2] : projectB - group2/projectB

$ gitlab-cli --auto-all issues -n 10 --pna projectA --opened
- [issue-1231] Yada yada
- [issue-1232] Yada yada yada

Tip: Do not grant read access for file (gitlab-cli.cfg) to other users...

For Developers

Start Playing

git clone https://github.com/andreclinio/gitlab-cli
cd gitlab-cli
npm i
npx tsc && node build/main.js --help

Examples (DEV mode)

npx tsc && node build/main.js --help
npx tsc && node build/main.js --token XXXXX --url https://mygit.mycompany.com issues --opened --verbose --project-name my-project
npx tsc && node build/main.js release-notes --token XXXXX --url https://mygit.mycompany.com --project-name my-project --verbose --milestone-name my-milestone

Tag (version) Generation

See package.json scripts for details.

Normal stable version

npm run release

Beta release

npm run release-beta

Snap Publish

The npm command below is used only to remove snap files and rebuild the project. See the package.json file.

npm run snapcraft
 
snapcraft login
snapcraft upload gitlab-cli_<version>_<arch>.snap
snapcraft status gitlab-cli
snapcraft list-revisions gitlab-cli

rm -fr *.snap

NPM Publish

The npm login command below is needed only at first time. First, move to a valid tag (git checkout) and perform the folloeing commands:

npm login
npm publish --access public
npm publish --tag beta --access public

Installing a beta version:

npm i @andreclinio/[email protected] --global