Artisan Commands
EdgeTrust registers Artisan commands under the edge-trust: namespace.
Overview
| Command | Purpose |
|---|---|
edge-trust:sync | Fetch, validate, and refresh ranges for enabled providers |
edge-trust:update | Alias of edge-trust:sync |
edge-trust:providers | List registered providers and enablement |
edge-trust:status | Show mode, cache, and freshness metadata |
edge-trust:validate | Validate currently resolved ranges |
edge-trust:clear | Clear EdgeTrust cache entries |
edge-trust:list | Print resolved CIDRs |
Sync / update
bash
php artisan edge-trust:sync
php artisan edge-trust:sync --provider=cloudflare
php artisan edge-trust:sync --force
php artisan edge-trust:updateBehavior:
- Contacts official sources for enabled providers (or the specified provider)
- Validates CIDRs (rejects global ranges, empty sets, change-percent violations unless
--force) - Updates caches / archives according to package behavior
- Preserves previous good data if validation fails
Full option tables: Commands reference.
Providers
bash
php artisan edge-trust:providersStatus
bash
php artisan edge-trust:status
php artisan edge-trust:status --jsonUseful in health checks and after deploys.
Validate
bash
php artisan edge-trust:validate
php artisan edge-trust:validate --provider=arvancloudClear / list
bash
php artisan edge-trust:clear --force
php artisan edge-trust:list --provider=fastlyScheduling
See Scheduling and Runtime sync.