← 返回命令列表

Linux command

satis 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Build repository

satis build [satis.json] [output-dir]

Build specific packages

satis build [satis.json] [output-dir] [package1] [package2]

Build without user interaction

satis build -n [satis.json] [output-dir]

Initialize config

satis init [satis.json]

Add repository

satis add [https://packagist.org] [satis.json]

Purge old files

satis purge [satis.json] [output-dir]

说明

satis generates static Composer package repositories, providing a self-hosted alternative to Packagist for distributing private PHP packages. It reads a JSON configuration file that defines which repositories and packages to include, then generates static files that can be served by any web server. The generated repository acts as a local mirror and cache for both private and public packages. Teams can selectively mirror specific packages from Packagist or other sources, reducing external dependencies and improving install speeds. Since the output is purely static files, no special server-side software is required beyond a basic HTTP server.

参数

build
Build repository.
init
Create config.
add
Add repository.
purge
Remove old files.
-n
No interaction.
-v
Verbose output.
-q
Quiet output.

FAQ

What is the satis command used for?

satis generates static Composer package repositories, providing a self-hosted alternative to Packagist for distributing private PHP packages. It reads a JSON configuration file that defines which repositories and packages to include, then generates static files that can be served by any web server. The generated repository acts as a local mirror and cache for both private and public packages. Teams can selectively mirror specific packages from Packagist or other sources, reducing external dependencies and improving install speeds. Since the output is purely static files, no special server-side software is required beyond a basic HTTP server.

How do I run a basic satis example?

Run `satis build [satis.json] [output-dir]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does build do in satis?

Build repository.