Skip to content

feat: [DEV-477] deploy commands#197

Open
ArielSantos01 wants to merge 6 commits intomainfrom
feat/deploy-commands
Open

feat: [DEV-477] deploy commands#197
ArielSantos01 wants to merge 6 commits intomainfrom
feat/deploy-commands

Conversation

@ArielSantos01
Copy link
Contributor

@ArielSantos01 ArielSantos01 commented Mar 12, 2026

Description

Se agregan los comandos deploy:dev, deploy:prod, deploy:feature, deploy:func:dev, deploy:func:prod y deploy:func:feature al CLI de Draft, permitiendo desplegar servicios y funciones Lambda individuales sin necesidad de hacer cd al directorio del servicio primero.

Los servicios pueden referenciarse por su nombre (el campo service: en serverless.yml) o por path, y los comandos pueden ejecutarse desde cualquier lugar del repositorio.

Task Context

What is the current behavior?

Desplegar un servicio o función Lambda requiere navegar manualmente al directorio del servicio y ejecutar shortcuts específicos por ambiente:

  • cd services/gamestats && dev-deploy
  • cd services/gamestats && dev-deploy-func storegamestats

What is the new behavior?

Los servicios y funciones pueden desplegarse directamente desde cualquier lugar del repositorio usando nombres de servicio o paths:

Desplegar servicio completo

draft deploy:dev <service-name or service-path> draft deploy:prod
`draft deploy:feature

Desplegar varios servicios

`draft deploy:dev <service-name or service-path> <service-name or service-path> ...
`draft deploy:prod <service-name or service-path> <service-name or service-path> ...
`draft deploy:feature <service-name or service-path> <service-name or service-path> ...

Desplegar función Lambda individual

draft deploy:func:dev <service-name or service-path> <function-name> draft deploy:func:prod
`draft deploy:func:feature

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant