@is-pinoy-dev/cli
v0.4.9
Published
CLI for managing [is-pinoy.dev](https://is-pinoy.dev) subdomains — validate JSON files locally and sync DNS records to Cloudflare.
Readme
@is-pinoy-dev/cli
CLI for managing is-pinoy.dev subdomains — validate JSON files locally and sync DNS records to Cloudflare.
Installation
npm install -g @is-pinoy-dev/cliCommands
registry validate
Validate subdomain JSON files against the schema.
is-pinoy registry validate --dir ./subdomainsregistry diff
Show what changes would be applied to Cloudflare without making any changes.
is-pinoy registry diff --dir ./subdomainsregistry sync
Apply changes to Cloudflare DNS.
is-pinoy registry sync --dir ./subdomains
# Skip confirmation prompt
is-pinoy registry sync --dir ./subdomains --yes
# Preview only, no changes applied
is-pinoy registry sync --dir ./subdomains --dry-runregistry status
Show an overview of the current registry state.
is-pinoy registry status --dir ./subdomainsEnvironment Variables
Required for diff, sync, and status (not needed for validate):
CLOUDFLARE_API_TOKEN=
CLOUDFLARE_ZONE_ID=Use --dotenv <path> to load from a .env file:
is-pinoy registry sync --dir ./subdomains --dotenv .env.localSubdomain File Format
Each file in the subdomains/ directory represents one subdomain:
{
"subdomain": "your-name",
"owner": {
"github": "your-github-username",
"email": "[email protected]" // optional — for contact purposes only
},
"records": {
"CNAME": {
"value": "your-deployment-url"
}
}
}