The Valyent CLI provides a powerful way to deploy and manage your applications directly from your terminal. This guide will walk you through the process of deploying applications using the CLI.

Installation

First, install the Valyent CLI:

curl -L https://cli.valyent.cloud | sh

Authentication

Before deploying applications, authenticate with Valyent:

1

Get your API key

Generate an API key from the Valyent Console under API Keys section.

2

Log in

valyent auth login --api-key <your-api-key>

Project Setup

Let’s prepare your application for deployment:

1

Initialize your project

Navigate to your project directory and ensure it has a Dockerfile:

cd your-project
2

Create a Valyent configuration

Create a valyent.yaml file in your project root:

valyent init

Deployment Commands

Here are the essential commands for managing your deployments:

Deploy an Application

valyent deploy

Expose your application

To make your application accessible from the internet, create a gateway:

valyent gateways create

Your application will be accessible at <gateway_name>.valyent.app.

Environment Variables

Manage your application’s environment variables:

# Set environment variables
valyent env set KEY1=value1 KEY2=value2

# List environment variables
valyent env list

Next Steps

  • Set up continuous deployment with GitHub Actions
  • Explore the Go SDK for programmatic control
  • Learn about advanced deployment patterns
  • Configure monitoring and alerts

Need help? Join our Discord community or check out our documentation.