CLI-based deployments
Learn how to deploy your applications with Valyent CLI.
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:
Authentication
Before deploying applications, authenticate with Valyent:
Get your API key
Generate an API key from the Valyent Console under API Keys section.
Log in
Project Setup
Let’s prepare your application for deployment:
Initialize your project
Navigate to your project directory and ensure it has a Dockerfile:
Create a Valyent configuration
Create a valyent.yaml
file in your project root:
Deployment Commands
Here are the essential commands for managing your deployments:
Deploy an Application
Expose your application
To make your application accessible from the internet, create a gateway:
Your application will be accessible at <gateway_name>.valyent.app
.
Environment Variables
Manage your application’s environment variables:
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.