jeffersongoncalves/packagist-cli

CLI tool to publish and manage Composer packages on Packagist via its API (submit, update, list, info).

Maintainers

Package info

github.com/jeffersongoncalves/packagist-cli

Type:project

pkg:composer/jeffersongoncalves/packagist-cli

Fund package maintenance!

jeffersongoncalves

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.1 2026-06-23 01:13 UTC

This package is auto-updated.

Last update: 2026-06-23 01:16:29 UTC


README

packagist-cli

packagist-cli

A small CLI to publish and manage your Composer packages on Packagist directly from the terminal — submit a new package, force a re-crawl, and inspect what you have published. It stores your Packagist API token locally in ~/.config/packagist.json (0600) so you only authenticate once.

Built with Laravel Zero.

Installation

composer global require jeffersongoncalves/packagist-cli

Or download the PHAR from the releases page.

Authentication

Grab your API token from https://packagist.org/profile/ and store it:

packagist auth
# or non-interactively
packagist auth --username=you --token=xxxxxxxx

The token is written to $XDG_CONFIG_HOME/packagist.json (falling back to ~/.config/packagist.json) with 0600 permissions.

Flag Description
--username= Packagist username (skips the prompt)
--token= Packagist API token (skips the prompt)
--show Print the stored credentials (token masked)
--forget Remove the stored credentials

Commands

submit — register a new package

packagist submit https://github.com/jeffersongoncalves/laravel-zero-support
# shorthand (assumed GitHub):
packagist submit jeffersongoncalves/laravel-zero-support

update — force a re-crawl

packagist update jeffersongoncalves/laravel-zero-support
# or by repository URL
packagist update https://github.com/jeffersongoncalves/laravel-zero-support

list — list a vendor's packages

packagist list jeffersongoncalves
# defaults to the authenticated username when omitted
packagist list

info — inspect a package

packagist info jeffersongoncalves/laravel-zero-support

Development

composer install
composer test        # pest + pint --test
composer build       # build the PHAR into builds/

License

MIT © Jefferson Gonçalves