Skip to content

Environment Variables by .env files for CLI #836

@vixson

Description

@vixson

Description

Have some environment variables to control the behaviour of the CLI, e.g., PORT, HOST, SSL, DEBUG_LEVEL, etc.

PORT=1234
HOST=123.456.890.1
CORS=*
DEBUG_LEVEL=nologs
DEBUG_LEVEL=true

Why

To be able to run the CLI command like serve src -nLC without directly specifying the host or port on the command.

> terminal

serve src -nLC

.env

PORT=3200
HOST=localhost

Instead of

> terminal

serve src -l 3200 -nLC

This would make the CLI command shorter and easier to control

Alternatives

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions