Installation
Authentication
Login
- Browser-based authentication (recommended)
- Manual API key entry from the Valyent dashboard
Logout
Project Initialization
Initialize a New Project
valyent.json configuration file in your current directory. You can either:
- Specify a fleet ID directly using the
--fleetflag - Select an existing fleet or create a new one through an interactive prompt
Fleets
Fleets are groups of machines that can be managed together.Create a Fleet
List Fleets
Delete a Fleet
Machines
Machines are the compute instances running your workloads.List Machines
Create a Machine
machine-config.json):
region: The region where the machine will be deployed (e.g., “gra-1”)skip_start: Whether to skip starting the machine after creationconfig:image: Docker image to use for the machineworkload:env: Array of environment variablesrestart.policy: Container restart policyinit.user: User to run the container as
gateway_enabled: Whether to enable gateway accessguest:cpu_kind: Type of CPU (“eco” for economical)cpus: Number of CPU coresmemory_mb: Memory allocation in megabytes
Machine Operations
Gateways
Gateways manage incoming traffic to your applications.Create a Gateway
- Gateway name
- Target port
List Gateways
Delete a Gateway
Environment Variables
List Environment Variables
Set Environment Variables
Load Environment Variables from File
.env
Deployment
Deploy Project
- Reading the project configuration from
valyent.json - Creating a tarball of your codebase (excluding
.git,node_modules, and paths in.dockerignore) - Uploading and creating a new deployment
- Streaming build logs in real-time
Open Deployed Application
Notes
- The CLI supports various aliases for commands (e.g.,
fleetforfleets,gatewayforgateways) - Most commands that require a fleet ID will prompt you to select one if not specified
- The CLI includes built-in confirmation prompts for destructive operations
- Environment variables can be loaded from
.envfiles or set individually - Build and deployment logs are streamed in real-time for better visibility