Skip to content

[NFR]: Runtime commands #10

Closed
Closed

Description

@niden

Goal: run and maintain an application from crest.

  • serve (alias server) : start PHP's built-in server for the project
  • cache:clear : needs a design
  • optimize : direction only, needs a design

serve

devtools had serve / server. Crest replaces devtools, so it needs the same.

  • --port, default 8080, cast to int.
  • Projects from crest new ([NFR]: Project commands #8) get a container that runs php -S 0.0.0.0:8080 -t public .htrouter.php. serve uses the same command, so crest serve on the host and crest up in docker do the same thing.
  • The closing output of crest new prints crest serve for the host path.
  • Open: what serve does in a project that has no .htrouter.php.

cache:clear, optimize

Both need the project container (Project\Bootstrap). Design them when the runtime concerns they touch are clear.

Rules

  • Crest does not cache project data. If a command is slow, it reads less. It does not remember more.
  • up and down are not maintenance-mode commands. Those names belong to the docker compose wrappers in [NFR]: Project commands #8.

Done when

  • serve ships with the same --help, alias and error conventions as the other commands.
  • cache:clear and optimize are designed and shipped, or moved to their own issues.

Activity

  1. self-assigned this
    on Sep 25, 2026
  2. added
    enhancement
    on Sep 25, 2026
  3. added theissue type on Sep 25, 2026
  4. niden commented on Sep 26, 2026

    @niden
    SponsorMemberAuthor

    Resolved in #23

  5. moved this from Implemented to Released in Phalcon v5on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions