pushify-cli
v1.1.3
Published
CLI tool for Pushify deployment platform
Downloads
76
Maintainers
Readme
Pushify CLI
Command-line interface for Pushify deployment platform.
Installation
# Install globally
npm install -g pushify-cli
# Or use npx
npx pushify-cli <command>Quick Start
Get your API key from Pushify Dashboard
Login with your API key:
pushify login --key pk_live_YOUR_API_KEY- Deploy your project:
pushify deploy my-projectCommands
Authentication
# Login with API key
pushify login --key pk_live_xxx
# Login with custom API URL (for self-hosted)
pushify login --key pk_live_xxx --url http://localhost:4000/api/v1
# Logout
pushify logout
# Check current authentication
pushify whoamiProjects
# List all projects
pushify projects
# List projects as JSON
pushify projects --jsonDeployments
# Deploy a project
pushify deploy my-project
# Deploy a specific branch
pushify deploy my-project --branch feature/new-feature
# Deploy and wait for completion
pushify deploy my-project --wait
# Short alias
pushify d my-projectStatus
# Show project status and recent deployments
pushify status my-project
# Show all projects status
pushify statusLogs
# View deployment logs
pushify logs <deployment-id>
# Follow logs in real-time
pushify logs <deployment-id> --followEnvironment Variables
Instead of using pushify login, you can set environment variables:
export PUSHIFY_API_KEY=pk_live_YOUR_API_KEY
export PUSHIFY_API_URL=https://api.pushify.dev/api/v1 # optionalExamples
CI/CD Integration
GitHub Actions example:
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to Pushify
env:
PUSHIFY_API_KEY: ${{ secrets.PUSHIFY_API_KEY }}
run: |
npx pushify-cli deploy my-project --waitShell Script
#!/bin/bash
# Deploy and check result
pushify deploy my-project --wait
if [ $? -eq 0 ]; then
echo "Deployment successful!"
else
echo "Deployment failed!"
exit 1
fiDevelopment
# Install dependencies
npm install
# Run in development mode
npm run dev -- projects
# Build
npm run build
# Run built version
npm start -- projectsLicense
MIT
