Getting Started
- Introduction to Aptible
- Deploy Starter Template
- Deploy your custom code
Core Concepts
- Apps
- Managed Databases
- Architecture
- Scaling
- Observability
- Security & Compliance
- Integrations
- Billing & Payments
Reference
- Pricing
- Aptible CLI
- Overview
- All CLI Commands
- aptible apps
- aptible apps:create
- aptible apps:deprovision
- aptible apps:rename
- aptible apps:scale
- aptible backup:list
- aptible backup:orphaned
- aptible backup:purge
- aptible backup:restore
- aptible backup_retention_policy
- aptible backup_retention_policy:set
- aptible config
- aptible config:add
- aptible config:get
- aptible config:rm
- aptible config:set
- aptible config:unset
- aptible db:backup
- aptible db:clone
- aptible db:create
- aptible db:deprovision
- aptible db:dump
- aptible db:execute
- aptible db:list
- aptible db:modify
- aptible db:reload
- aptible db:replicate
- aptible db:rename
- aptible db:restart
- aptible db:tunnel
- aptible db:url
- aptible db:versions
- aptible deploy
- aptible endpoints:database:create
- aptible endpoints:database:modify
- aptible endpoints:deprovision
- aptible endpoints:https:create
- aptible endpoints:https:modify
- aptible endpoints:list
- aptible endpoints:renew
- aptible endpoints:tcp:create
- aptible endpoints:tcp:modify
- aptible endpoints:tls:create
- aptible endpoints:tls:modify
- aptible endpoints:grpc:create
- aptible endpoints:grpc:modify
- aptible environment:ca_cert
- aptible environment:list
- aptible environment:rename
- aptible help
- aptible log_drain:create:datadog
- aptible log_drain:create:elasticsearch
- aptible log_drain:create:https
- aptible log_drain:create:logdna
- aptible log_drain:create:papertrail
- aptible log_drain:create:sumologic
- aptible log_drain:create:syslog
- aptible log_drain:deprovision
- aptible log_drain:list
- aptible login
- aptible logs
- aptible logs_from_archive
- aptible maintenance:apps
- aptible maintenance:dbs
- aptible metric_drain:create:datadog
- aptible metric_drain:create:influxdb
- aptible metric_drain:create:influxdb:custom
- aptible metric_drain:deprovision
- aptible metric_drain:list
- aptible operation:cancel
- aptible operation:follow
- aptible operation:logs
- aptible rebuild
- aptible restart
- aptible services
- aptible services:settings
- aptible services:autoscaling_policy
- aptible services:autoscaling_policy:set
- aptible ssh
- aptible version
- CLI Configurations
- Dashboard
- Terraform
- Metadata Variables
- Interface Feature Availability Matrix
- Glossary
All CLI Commands
aptible endpoints:tcp:create
This command creates a new App TCP Endpoint.
Synopsis
Copy
Ask AI
Usage:
aptible endpoints:tcp:create [--app APP] SERVICE
Options:
--env, [--environment=ENVIRONMENT]
[--app=APP]
-r, [--remote=REMOTE]
[--default-domain], [--no-default-domain] # Enable Default Domain on this Endpoint
[--ports=one two three] # A list of ports to expose on this Endpoint
[--internal], [--no-internal] # Restrict this Endpoint to internal traffic
[--ip-whitelist=one two three] # A list of IPv4 sources (addresses or CIDRs) to which to restrict traffic to this Endpoint
Examples
In all the examples below, $SERVICE
represents the name of a Service for the Spp you are adding an Endpoint to.
📘 If your app is using an Implicit Service, the service name is always
cmd
.
Create a new Endpoint
Copy
Ask AI
aptible endpoints:tcp:create \
--app "$APP_HANDLE" \
"$SERVICE"
Create a new Endpoint using a Default Domain
Copy
Ask AI
aptible endpoints:tcp:create \
--app "$APP_HANDLE" \
--default-domain \
"$SERVICE"
Create a new Endpoint using a custom set of Container Ports
❗️ Warning
The
--ports
argument accepts a list of ports, so you need to pass it last.
Copy
Ask AI
aptible endpoints:tcp:create \
--app "$APP_HANDLE" \
"$SERVICE" \
--ports 8000 8001 8002 8003
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.