rewardenv / reward

Reward is a Swiss Army knife CLI utility for orchestrating Docker based development environments.
https://rewardenv.readthedocs.io
MIT License
89 stars 13 forks source link

Bootstrap command not found after upgrade #55

Closed Mr-Leonerrr closed 9 months ago

Mr-Leonerrr commented 9 months ago

Description

I updated to the new version v0.4.9, and now I get this error when using the command. Checking the available commands, bootstrap does not appear in the list. Is there anything additional to install, or any changes related to this?

running reward bootstrap

image

running reward

image

running reward info

image

Edit 1

In existing projects, the command is available.

β”ŒπŸ¦ leoner in πŸ“ magento-test on 🌿 TEST-123 β€’3 βŒ€1 βœ—
└❯ reward
 β–ˆβ–ˆβ–€β–ˆβ–ˆβ–ˆ  β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆ     β–ˆβ–‘ β–„β–„β–„       β–ˆβ–ˆβ–€β–ˆβ–ˆβ–ˆ  β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„
β–“β–ˆβ–ˆ β–’ β–ˆβ–ˆβ–’β–“β–ˆ   β–€ β–“β–ˆβ–‘ β–ˆ β–‘β–ˆβ–‘β–’β–ˆβ–ˆβ–ˆβ–ˆβ–„    β–“β–ˆβ–ˆ β–’ β–ˆβ–ˆβ–’β–’β–ˆβ–ˆβ–€ β–ˆβ–ˆβ–Œ
β–“β–ˆβ–ˆ β–‘β–„β–ˆ β–’β–’β–ˆβ–ˆβ–ˆ   β–’β–ˆβ–‘ β–ˆ β–‘β–ˆ β–’β–ˆβ–ˆ  β–€β–ˆβ–„  β–“β–ˆβ–ˆ β–‘β–„β–ˆ β–’β–‘β–ˆβ–ˆ   β–ˆβ–Œ
β–’β–ˆβ–ˆβ–€β–€β–ˆβ–„  β–’β–“β–ˆ  β–„ β–‘β–ˆβ–‘ β–ˆ β–‘β–ˆ β–‘β–ˆβ–ˆβ–„β–„β–„β–„β–ˆβ–ˆ β–’β–ˆβ–ˆβ–€β–€β–ˆβ–„  β–‘β–“β–ˆβ–„   β–Œ
β–‘β–ˆβ–ˆβ–“ β–’β–ˆβ–ˆβ–’β–‘β–’β–ˆβ–ˆβ–ˆβ–ˆβ–’β–‘β–‘β–ˆβ–ˆβ–’β–ˆβ–ˆβ–“  β–“β–ˆ   β–“β–ˆβ–ˆβ–’β–‘β–ˆβ–ˆβ–“ β–’β–ˆβ–ˆβ–’β–‘β–’β–ˆβ–ˆβ–ˆβ–ˆβ–“
β–‘ β–’β–“ β–‘β–’β–“β–‘β–‘β–‘ β–’β–‘ β–‘β–‘ β–“β–‘β–’ β–’   β–’β–’   β–“β–’β–ˆβ–‘β–‘ β–’β–“ β–‘β–’β–“β–‘ β–’β–’β–“  β–’
  β–‘β–’ β–‘ β–’β–‘ β–‘ β–‘  β–‘  β–’ β–‘ β–‘    β–’   β–’β–’ β–‘  β–‘β–’ β–‘ β–’β–‘ β–‘ β–’  β–’
  β–‘β–‘   β–‘    β–‘     β–‘   β–‘    β–‘   β–’     β–‘β–‘   β–‘  β–‘ β–‘  β–‘
   β–‘        β–‘  β–‘    β–‘          β–‘  β–‘   β–‘        β–‘
                                             β–‘

Usage:
  reward [command] [flags]
  reward [command]

Environment Commands:
  bootstrap        Install and Configure the basic settings for the environment
  db               Interacts with the db service on an environment
  debug            Launches debug enabled shell within current project environment
  env              Controls an environment from any point within the root project directory
  shell            Launches into a shell within the current project environment
  sync             Manipulate syncing

Global Commands:
  env-init         Create the .env file
  info             Print out information about the environment
  install          Install required configurations
  self-update      Checks if new version exists and updates itself
  sign-certificate Create a self signed certificate for your dev hostname.
  plugin           Provides utilities for interacting with plugins
  svc              Orchestrates global services such as traefik, portainer and dnsmasq via docker-compose

Shortcuts:
  restart          Shortcut target: "env down ; env up"
  sync-restart     Shortcut target: "sync stop && sync start"
  up               Shortcut target: "svc up && env up"
  down             Shortcut target: "env down ; svc down"

Additional Commands:
  completion       Generate completion script
  version          Print the version information
  help             Help about any command

Flags:
      --app-dir string       app home directory (default "/home/omnipro/.reward")
  -y, --assume-yes           Automatic yes to prompts.
  -c, --config string        config file (default "/home/omnipro/.reward.yml")
      --debug                enable debug mode (same as --log-level=debug)
      --disable-colors       disable colors in output
      --docker-host string   docker host (default "unix:///var/run/docker.sock")
      --driver string        orchestration driver (default "docker-compose")
  -h, --help                 help for reward
      --log-level string     logging level (options: trace, debug, info, warning, error) (default "info")
      --print-environment    environment vars
      --skip-cleanup         skip cleanup of temporary files
  -v, --version              version for reward

Use "reward [command] --help" for more information about a command.

β”ŒπŸ¦ leoner in πŸ“ magento-test on 🌿 TEST-123 β€’3 βŒ€1 βœ—
└❯ reward info
+---------------------------+----------------------------------+
| INFO                      |                                  |
+---------------------------+----------------------------------+
| Reward version            | 0.4.9                            |
| Docs                      | https://rewardenv.readthedocs.io |
+---------------------------+----------------------------------+
| Global Services           |                                  |
+---------------------------+----------------------------------+
| phpmyadmin                | https://phpmyadmin.reward.test   |
| mailhog                   | https://mailhog.reward.test      |
| elastichq                 | https://elastichq.reward.test    |
| traefik                   | https://traefik.reward.test      |
| dnsmasq                   | https://dnsmasq.reward.test      |
| tunnel                    | https://tunnel.reward.test       |
+---------------------------+----------------------------------+
| Environment               |                                  |
+---------------------------+----------------------------------+
| Environment status        | Running                          |
| Environment address       | https://magento-test.test             |
| Admin URL                 | https://magento-test.test/admin       |
| Db Container Name         | magento-test-db-1                     |
| Redis Container Name      | magento-test-redis-1                  |
| Opensearch Container Name | magento-test-opensearch-1             |
+---------------------------+----------------------------------+

Specifications

janosmiko commented 9 months ago

Hi @Mr-Leonerrr ,

that's the expected behaviour from 0.4.x. The environment related commands are only available when the environment is initialized (.env file can be found in the current directory).

Mr-Leonerrr commented 9 months ago

Hi @Mr-Leonerrr ,

that's the expected behaviour from 0.4.x. The environment related commands are only available when the environment is initialized (.env file can be found in the current directory).

You are right, thank you very much for the clarification, creating the .env the command appears, sorry for the inconvenience. 😁