@virke/cli
v1.1.0
Published
CLI for the Virke developer platform — deploy sites, databases, and compute to Fastly's edge
Maintainers
Readme
@virke/cli
CLI for the Virke developer platform. Deploy sites, databases, and compute to Fastly's edge network.
Install
bun add -g @virke/cliRequires Bun >= 1.0.
Quick Start
# Authenticate with GitHub
virke login
# Create a new project
virke init
# Deploy your site
virke deploy
# Check deployment status
virke statusCommands
Authentication
virke login # Log in via GitHub OAuth
virke logout # Log out and clear credentials
virke whoami # Show current userProjects
virke init # Initialize a new project (creates virke.toml)
virke init --type compute # Initialize a compute project
virke status # Show project info and current deployment
virke dev # Start local dev serverDeployments
virke deploy # Build and deploy to production
virke deploy --preview # Create a preview deployment
virke deployments # List deployment history
virke rollback # Roll back to previous deployment
virke rollback <id> # Roll back to a specific deploymentCanary Deployments
virke canary start <deploy-id> --weight 10 # Route 10% traffic to canary
virke canary adjust --weight 50 # Increase to 50%
virke canary promote # Promote canary to production
virke canary abort # Abort and revert
virke canary status # Check canary statusDomains
virke domains add <hostname> # Add a custom domain
virke domains list # List all domains
virke domains remove <hostname> # Remove a domain
virke domains status <hostname> # Check DNS/SSL statusEnvironment Variables
virke env set KEY=value # Set a variable
virke env set SECRET=val --secret # Set a secret (encrypted)
virke env list # List all variables
virke env remove KEY # Remove a variableDatabases (Virke DB)
virke db create <name> # Create a SQLite database
virke db list # List databases
virke db query <name> "SELECT *" # Run a SQL query
virke db delete <name> # Delete a databaseKey-Value Store (Virke KV)
virke kv create <namespace> # Create a KV namespace
virke kv get <ns> <key> # Get a value
virke kv set <ns> <key> <value> # Set a value
virke kv delete <ns> <key> # Delete a key
virke kv list <ns> # List keysObject Storage (Virke OS3)
virke os3 create <bucket> # Create a bucket
virke os3 put <bucket> <key> <file> # Upload a file
virke os3 get <bucket> <key> # Download an object
virke os3 list <bucket> # List objects
virke os3 delete <bucket> <key> # Delete an objectOrganizations
virke orgs list # List your organizations
virke orgs create <name> # Create an organization
virke orgs members <slug> # List members
virke orgs invite <slug> <email> # Invite a memberMonitoring
virke logs # Tail real-time edge logs
virke logs --follow # Stream logs continuouslyConfiguration
Projects are configured via virke.toml:
name = "my-site"
slug = "my-site"
type = "static"Credentials are stored in ~/.virke/config.json after virke login.
