Download the PHP package jeffersongoncalves/repos-cli without Composer

On this page you can find all versions of the php package jeffersongoncalves/repos-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package repos-cli

![repos-cli](https://raw.githubusercontent.com/jeffersongoncalves/repos-cli/main/art/jeffersongoncalves-repos-cli.png)

repos-cli

Buy Me A Coffee

A multi-host bulk git repository manager. Clone, pull, and list open issues across hundreds of repos on GitHub, GitLab, and Bitbucket from one terminal — no more cd-ing into 600 folders one at a time.

Built with Laravel Zero and modeled on the other CLIs in this monorepo.

Tests Total Downloads License PHP 8.3+

Install

Global (recommended)

The binary repos will be on your PATH as long as Composer's global vendor/bin is in it.

From source

Usage

Update

Authenticate

Clones use your local SSH key, same as any git clone. The saved token is only used for API calls (listing repos, listing issues) — one login per host you use.

GitHub

Device flow (recommended — nothing to create or manage):

Opens a verification URL and a short code; approve it in the browser. The saved token refreshes itself automatically once it expires.

Personal access token instead:

  1. Create a classic token with the repo scope (covers repos, issues, and search)
  2. repos auth:github:login and paste it

GitLab

Device flow (recommended):

Personal access token instead:

  1. GitLab → Settings → Access Tokens → create one with the read_api scope
  2. repos auth:gitlab:login and paste it

Bitbucket

No device flow — Bitbucket doesn't support it. API token only:

  1. Bitbucket → Personal settings → Security → API tokens → Create API token with scopes
  2. Name it (e.g. repos-cli), select Bitbucket as the app, and grant these permissions — Write does not imply Read, each is separate:
Scope Permission Scope ID
User Read read:user:bitbucket
Repositories Read read:repository:bitbucket
Issues Read read:issue:bitbucket

User Read is required even though the CLI never reads user data directly — it's what the login check (GET /2.0/user) needs to verify the token.

  1. repos auth:bitbucket:login — prompts for your Atlassian account email (not your Bitbucket username) and the token

Credentials are stored in ~/.repos-cli/config.json (mode 0600).

Multiple credentials per host

Every auth:*:login command takes --profile=<name> (default: default), so you can keep more than one credential for the same host — e.g. a personal GitHub device-flow login alongside a work PAT for an org with OAuth App restrictions:

repos auth:show lists every profile per host. Commands that hit a host's API (clone for bulk owner/org clones, issues) accept --profile=; it defaults to default when omitted.

Clone

Submodules are cloned recursively (git clone --recurse-submodules).

Pull

Issues

Audit (GitHub)

Hygiene report for every repo of an owner — run it from the folder that holds your clones:

Check Flags a repo when
clone there's no clone of it under --path (default: current directory)
website its website points to packagist.org
description the description is empty
branch the default branch isn't the highest N.x branch (multi-branch packages) or main
dependabot .github/dependabot.yml is missing
automerge dependabot-auto-merge.yml differs from --automerge-template (skipped without it)
ci a push-triggered workflow run of the default branch's HEAD commit failed
immutable release immutability is disabled (skipped silently when the token can't read the setting)
tests a PHP repo (composer.json at the root of the default branch) has no tests/ folder or no workflow whose file name contains test
migrations a database/migrations/*.php.stub file isn't registered via hasMigration()/hasMigrations() in src/*ServiceProvider.php (its name never appears as a string there) (skipped when the provider uses discoversMigrations())
dependabot-prs an open Dependabot pull request has failing checks
social a public repo still uses GitHub's generated social preview image (one GraphQL call per 100 repos)
catalog an entry of --catalog (a plugins.json) has no GitHub repo, an archived one, or no Packagist package; or the owner publishes a Packagist package the catalog doesn't list and whose repo isn't archived (skipped without it)

The catalog is a JSON object of categories; every nested object with a title and a package (vendor/name) is an entry, and an optional repo gives the GitHub path when it differs from package. Entries under startkit, filament, laravel, laravelZero, cli and cakephp must be on Packagist.

Network errors and GitHub 5xx are retried; a repo that still can't be read is reported as an error finding and the audit moves on. Archived repos and forks are skipped unless you pass --include-archived / --include-forks. The command exits 1 when it finds anything, so it can gate a CI job.

Supported hosts

Host Auth Notes
GitHub Personal access token, or --device flow Bulk clone/issues via orgs/{org}/repos or users/{user}/repos; issues search via search/issues.
GitLab Personal access token, or --device flow Bulk clone/issues via groups/{ns}/projects or users/{ns}/projects.
Bitbucket Account email + API token Same auth shape as bb-cli. Issues skipped for repos with no issue tracker enabled. No device flow — Bitbucket doesn't support it.

Development

License

MIT © Jefferson Goncalves


All versions of repos-cli with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeffersongoncalves/repos-cli contains the following files

Loading the files please wait ...