Explore how to use the CLI to interact with Valyent.
The login command provides two authentication methods:
Removes stored credentials from your machine.
Creates a new valyent.json
configuration file in your current directory. You can either:
--fleet
flagFleets are groups of machines that can be managed together.
Machines are the compute instances running your workloads.
Example machine configuration (machine-config.json
):
Configuration fields:
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 asgateway_enabled
: Whether to enable gateway accessguest
:
cpu_kind
: Type of CPU (“eco” for economical)cpus
: Number of CPU coresmemory_mb
: Memory allocation in megabytesGateways manage incoming traffic to your applications.
Interactive prompt will ask for:
Example:
Supports loading variables from files like .env
Deploys your project to Valyent by:
valyent.json
.git
, node_modules
, and paths in .dockerignore
)Opens your deployed application in the default web browser.
fleet
for fleets
, gateway
for gateways
).env
files or set individuallyExplore how to use the CLI to interact with Valyent.
The login command provides two authentication methods:
Removes stored credentials from your machine.
Creates a new valyent.json
configuration file in your current directory. You can either:
--fleet
flagFleets are groups of machines that can be managed together.
Machines are the compute instances running your workloads.
Example machine configuration (machine-config.json
):
Configuration fields:
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 asgateway_enabled
: Whether to enable gateway accessguest
:
cpu_kind
: Type of CPU (“eco” for economical)cpus
: Number of CPU coresmemory_mb
: Memory allocation in megabytesGateways manage incoming traffic to your applications.
Interactive prompt will ask for:
Example:
Supports loading variables from files like .env
Deploys your project to Valyent by:
valyent.json
.git
, node_modules
, and paths in .dockerignore
)Opens your deployed application in the default web browser.
fleet
for fleets
, gateway
for gateways
).env
files or set individually