CodeRun CLI is a command-line tool that allows you to deploy and manage Docker containers on a Helmcode Kubernetes platform easily.
curl -L https://github.com/helmcode/coderun-cli/releases/latest/download/coderun-linux-amd64 -o coderun
chmod +x coderun
sudo mv coderun /usr/local/bin/
curl -L https://github.com/helmcode/coderun-cli/releases/latest/download/coderun-linux-arm64 -o coderun
chmod +x coderun
sudo mv coderun /usr/local/bin/
curl -L https://github.com/helmcode/coderun-cli/releases/latest/download/coderun-darwin-amd64 -o coderun
chmod +x coderun
sudo mv coderun /usr/local/bin/
curl -L https://github.com/helmcode/coderun-cli/releases/latest/download/coderun-darwin-arm64 -o coderun
chmod +x coderun
sudo mv coderun /usr/local/bin/
- Download the appropriate file from Releases
- Rename it to
coderun.exe
- Place it in your PATH
git clone https://github.com/helmcode/coderun-cli.git
cd coderun-cli
go build -o coderun .
coderun --version
coderun login
# Basic deployment
coderun deploy nginx:latest --name my-web-app --http-port 80
# With custom resources
coderun deploy my-app:v1.0 --name web-app --http-port 8080 --replicas 3 --cpu 500m --memory 1Gi
# With environment variables
coderun deploy my-app:latest --name prod-app --http-port 3000 --env-file .env
# Redis
coderun deploy redis:latest --name my-redis --tcp-port 6379
# PostgreSQL
coderun deploy postgres:latest --name my-db --tcp-port 5432 --env-file database.env
# Custom TCP application
coderun deploy my-tcp-app:latest --name tcp-service --tcp-port 9000
coderun list
coderun status <DEPLOYMENT_ID>
coderun delete <DEPLOYMENT_ID>
Command | Description |
---|---|
login |
Authenticate with the platform |
deploy |
Deploy an application |
list |
List all deployments |
status |
View detailed deployment status |
delete |
Delete a deployment |
- Web applications are automatically exposed with HTTPS
- URL format:
https://app-name-id.helmcode.com
- Automatic TLS certificates
- TCP applications are exposed on the LoadBalancer
- Format:
app-name-id.helmcode.com:port
- Ideal for databases, TCP APIs, etc.
Flag | Description | Example |
---|---|---|
--name |
Application name (required) | --name my-app |
--replicas |
Number of replicas | --replicas 3 |
--cpu |
CPU limit | --cpu 500m |
--memory |
Memory limit | --memory 1Gi |
--http-port |
HTTP port to expose | --http-port 8080 |
--tcp-port |
TCP port to expose | --tcp-port 5432 |
--env-file |
Environment variables file | --env-file .env |
DATABASE_URL=postgres://user:pass@host:5432/db
API_KEY=your-secret-key
DEBUG=true
coderun deploy wordpress:latest --name my-blog --http-port 80 --replicas 2
coderun deploy my-api:v2.1 --name api-service --http-port 3000 --cpu 200m --memory 512Mi --env-file api.env
coderun deploy redis:alpine --name cache --tcp-port 6379
coderun deploy mongo:latest --name database --tcp-port 27017 --env-file mongo.env
The CLI includes automatic validations for:
- β Application names (3-30 characters, lowercase, letters/numbers/hyphens)
- β Ports in valid range (1-65535)
- β HTTP/TCP mutual exclusion (only one allowed)
- β Resource format (CPU/memory)
- β Authentication verification
State | Description |
---|---|
pending |
Deployment being created |
running |
Application running correctly |
failed |
Deployment error |
stopped |
Application stopped |
coderun login
# Add the --name flag
coderun deploy nginx:latest --name my-application
# Use only one of them
coderun deploy my-app:latest --name app --http-port 8080
# Or
coderun deploy my-app:latest --name app --tcp-port 9000
Releases are automatically generated when a tag is created in the repository:
git tag v0.0.1
git push origin v0.0.1
This automatically triggers compilation for all platforms and creates a release on GitHub.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request