Heroku cli
Heroku CLI
__HTML_TAG_113_ Todos los comandos
Completo Heroku CLI comandos y flujos de trabajo para implementar y gestionar aplicaciones en la plataforma Heroku.
Instalación > autenticación
| Command |
Description |
| INLINE_CODE_0 |
Login to Heroku |
| INLINE_CODE_1 |
Login interactively |
| INLINE_CODE_2 |
Logout from Heroku |
| INLINE_CODE_3 |
Show current user |
| INLINE_CODE_4 |
Display auth token |
App Management
Operaciones de aplicación básica
| Command |
Description |
| INLINE_CODE_5 |
List all apps |
| INLINE_CODE_6 |
Create new app |
| INLINE_CODE_7 |
Delete app |
| INLINE_CODE_8 |
Show app info |
| INLINE_CODE_9 |
Rename app |
| INLINE_CODE_10 |
Open app in browser |
| _ |
|
| ### App Configuration |
|
| Command |
Description |
| --------- |
------------- |
| INLINE_CODE_11 |
Show config vars |
| INLINE_CODE_12 |
Set config var |
| INLINE_CODE_13 |
Remove config var |
| INLINE_CODE_14 |
Get specific config var |
| INLINE_CODE_15 |
List buildpacks |
| INLINE_CODE_16 |
Set buildpack |
| _ |
|
| ## Deployment |
|
Git Deployment
| Command |
Description |
| INLINE_CODE_17 |
Deploy from main branch |
| INLINE_CODE_18 |
Deploy from develop branch |
| INLINE_CODE_19 |
Add Heroku remote |
| INLINE_CODE_20 |
List releases |
| INLINE_CODE_21 |
Rollback to specific release |
Container Deployment
| Command |
Description |
| INLINE_CODE_22 |
Login to container registry |
| INLINE_CODE_23 |
Build and push container |
| INLINE_CODE_24 |
Release container |
| INLINE_CODE_25 |
Remove container |
| _ |
|
| ## Dynos and Scaling |
|
Dyno Management
| Command |
Description |
| INLINE_CODE_26 |
List dynos |
| INLINE_CODE_27 |
Scale web dynos |
| INLINE_CODE_28 |
Scale worker dynos |
| INLINE_CODE_29 |
Restart all dynos |
| INLINE_CODE_30 |
Restart specific dyno |
| INLINE_CODE_31 |
Stop specific dyno |
Dyno Tipos
| Command |
Description |
| INLINE_CODE_32 |
Show dyno types |
| INLINE_CODE_33 |
Resize dyno type |
| INLINE_CODE_34 |
SSH into dyno |
Add-ons
Add-on Management
| Command |
Description |
| INLINE_CODE_35 |
List app add-ons |
| INLINE_CODE_36 |
Add PostgreSQL |
| INLINE_CODE_37 |
Add Redis |
| INLINE_CODE_38 |
Remove add-on |
| INLINE_CODE_39 |
Upgrade add-on plan |
| INLINE_CODE_40 |
Downgrade add-on plan |
Popular Add-ons
| Command |
Description |
| INLINE_CODE_41 |
Add SendGrid email |
| INLINE_CODE_42 |
Add Papertrail logging |
| INLINE_CODE_43 |
Add New Relic monitoring |
| INLINE_CODE_44 |
Add Heroku Scheduler |
Database Operations
PostgreSQL_TABLE_128__
Database Maintenance_
| Command |
Description |
| INLINE_CODE_52 |
Show maintenance info |
| INLINE_CODE_53 |
Run maintenance |
| INLINE_CODE_54 |
Show database stats |
| INLINE_CODE_55 |
Diagnose database issues |
| _ |
|
| ## Logging and Monitoring |
|
Logs
| Command |
Description |
| INLINE_CODE_56 |
Show recent logs |
| INLINE_CODE_57 |
Stream logs |
| INLINE_CODE_58 |
Show app logs only |
| INLINE_CODE_59 |
Show specific dyno logs |
| INLINE_CODE_60 |
Show more log lines |
Monitoring
| Command |
Description |
| INLINE_CODE_61 |
Enable autoscaling |
| INLINE_CODE_62 |
Disable autoscaling |
| INLINE_CODE_63 |
Show app metrics |
Dominios y SSL
Domain Management
| Command |
Description |
| INLINE_CODE_64 |
List domains |
| INLINE_CODE_65 |
Add custom domain |
| INLINE_CODE_66 |
Remove domain |
| INLINE_CODE_67 |
Show domain info |
SSL Certificates
| Command |
Description |
| INLINE_CODE_68 |
List SSL certificates |
| INLINE_CODE_69 |
Add SSL certificate |
| INLINE_CODE_70 |
Remove SSL certificate |
| INLINE_CODE_71 |
Enable automatic SSL |
| INLINE_CODE_72 |
Disable automatic SSL |
Pipelines and Review Apps
Pipeline Management
| Command |
Description |
| INLINE_CODE_73 |
List pipelines |
| INLINE_CODE_74 |
Create pipeline |
| INLINE_CODE_75 |
Delete pipeline |
| INLINE_CODE_76 |
Add app to pipeline |
| INLINE_CODE_77 |
Remove app from pipeline |
| _ |
|
| ## Promotions |
|
| Command |
Description |
| --------- |
------------- |
| INLINE_CODE_78 |
Promote to production |
| INLINE_CODE_79 |
Rollback production |
Review Apps
| Command |
Description |
| INLINE_CODE_80 |
Enable review apps |
| INLINE_CODE_81 |
Disable review apps |
| _ |
|
| ## Equipos y Colaboración |
|
Team Management_
| Command |
Description |
| INLINE_CODE_82 |
List teams |
| INLINE_CODE_83 |
List team members |
| INLINE_CODE_84 |
Add team member |
| INLINE_CODE_85 |
Remove team member |
| _ |
|
| ### Access Control |
|
| Command |
Description |
| --------- |
------------- |
| INLINE_CODE_86 |
List app collaborators |
| INLINE_CODE_87 |
Add collaborator |
| INLINE_CODE_88 |
Remove collaborator |
| _ |
|
| ## CLI Plugins |
|
Plugin Management
| Command |
Description |
| INLINE_CODE_89 |
List installed plugins |
| INLINE_CODE_90 |
Install plugin |
| INLINE_CODE_91 |
Uninstall plugin |
| INLINE_CODE_92 |
Update all plugins |
Popular Plugins
| Command |
Description |
| INLINE_CODE_93 |
Install repo plugin |
| INLINE_CODE_94 |
Reset git repository |
| INLINE_CODE_95 |
Purge build cache |
Environment Management
Multiple Environments
| Command |
Description |
| INLINE_CODE_96 |
Add staging remote |
| INLINE_CODE_97 |
Add production remote |
| INLINE_CODE_98 |
Deploy to staging |
| INLINE_CODE_99 |
Deploy to production |
Environment Variables
| Command |
Description |
| INLINE_CODE_100 |
Show staging config |
| INLINE_CODE_101 |
Set production config |
Mantenimiento y solución de problemas
Maintenance Mode
| Command |
Description |
| INLINE_CODE_102 |
Enable maintenance mode |
| INLINE_CODE_103 |
Disable maintenance mode |
| INLINE_CODE_104 |
Check maintenance status |
| _ |
|
| ## Troubleshooting |
|
| Command |
Description |
| --------- |
------------- |
| INLINE_CODE_105 |
Run bash shell |
| INLINE_CODE_106 |
Run Rails console |
| INLINE_CODE_107 |
Run Django shell |
| INLINE_CODE_108 |
Run Node.js REPL |
| Command |
Description |
| INLINE_CODE_109 |
Enable preboot |
| INLINE_CODE_110 |
Disable preboot |
| INLINE_CODE_111 |
Wait for dyno to be ready |
Buenas prácticas
Deployment
- Use Pipelines: Establecer entornos de puesta en escena y producción
- ** Variables del medio ambiente**: Configuración de la tienda en vars de configuración
- Migraciones de base de datos: Ejecutar las migraciones durante el despliegue
- ** Comprobaciones de salud**: Implementar los puntos finales del control de salud
Security
- SSL: Utilice siempre SSL para aplicaciones de producción
- Separación del medio ambiente: Mantener el estancamiento y la producción separadas
- ** Control de acceso**: Acceso limitado a los colaboradores
- Secrets Management: Use vars de configuración para datos sensibles
- Dyno Sizing: Elija los tipos de dino apropiados
- Caching: Implementar estrategias de caché
- ** Optimización de la base de datos**: Supervisar y optimizar las consultas de bases de datos
- CDN: Use CDN for static assets
Monitoring
- Logging: Implementar un registro completo
- Métricos: Control de métricas de aplicación
- Alertas: Establecer alertas para cuestiones críticas
- Error Tracking: Use los servicios de seguimiento de errores