@sylphx/cli
v0.3.3
Published
Sylphx Platform CLI — deploy, manage logs, env vars, and more
Readme
@sylphx/cli
The official CLI tool for the Sylphx Platform. Deploy, manage logs, environment variables, domains, and more — directly from your terminal.
📖 Full documentation: sylphx.com/docs/cli
Installation
npm install -g @sylphx/cli
# or
bun add -g @sylphx/cliQuick Start
# Authenticate
sylphx login
# Link your project to a Sylphx app
cd my-project
sylphx link
# Deploy!
sylphx deployCommands
Authentication
sylphx login # Opens browser for OAuth flow
sylphx login --token <TOKEN> # Direct token auth (CI/CD)
sylphx logout # Clear stored credentials
sylphx whoami # Show current user + org + appProject Management
sylphx link # Link current directory to a Sylphx app
sylphx status # Show deployment status
sylphx open # Open app in browserDeployments
sylphx deploy # Deploy to default environment
sylphx deploy --env staging # Deploy to staging
sylphx rollback # Rollback to previous deployment
sylphx rollback --env production # Rollback productionLogs
sylphx logs # Show recent logs
sylphx logs -f # Follow logs (stream continuously)
sylphx logs --env staging # Logs for staging environmentEnvironment Variables
sylphx env list # List all env vars
sylphx env list --env staging # List staging env vars
sylphx env set DATABASE_URL=postgres://...
sylphx env set PORT=3000 --env staging
sylphx env rm DATABASE_URL # Remove an env varDomains
sylphx domains list # List custom domains
sylphx domains add example.com # Add a domain
sylphx domains rm example.com # Remove a domainConfiguration
Config is stored in ~/.sylphx/config.json:
{
"token": "slx_cli_...",
"defaultOrg": "my-org",
"apps": {
"/path/to/project": {
"appId": "app-uuid",
"orgId": "org-slug",
"defaultEnv": "production"
}
}
}CI/CD Usage
For automated environments, use a pre-generated token:
sylphx login --token $SYLPHX_API_TOKEN
sylphx deploy --env productionOr set the env var:
SYLPHX_API_TOKEN=slx_cli_... sylphx deployEnvironment Variables
| Variable | Description |
|---|---|
| SYLPHX_API_URL | Override API base URL (default: https://sylphx.com) |
Development
bun install
bun run dev -- --help # Run CLI in dev mode
bun run build # Build for productionLicense
MIT © Sylphx
