CLI need normalize domain name field #399

Closed
opened 2026-04-05 20:27:35 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @John-Henrique on 5/10/2023

CloudPanel version(s) affected

2.2.2

Description

If you type a domain capitalized, cloud panel will create an account normally.

Example:

clpctl site:add:php --domainName=Domain.com --phpVersion=8.1 --vhostTemplate='Generic' --siteUser=john --siteUserPassword='!secretPassword!'

Resulting in directories like this
/home/Domain/htdocs/Domain.com

The same thing to Users and Databases.

How to reproduce

Just create a new site using CLI typing a capitalized domain

clpctl site:add:php --domainName=Domain.com --phpVersion=8.1 --vhostTemplate='Generic' --siteUser=john --siteUserPassword='!secretPassword!'

Possible Solution

Just a normalize to lower on CLI inputs.

Additional Context

Ok, I know this isn`t properly a error, but will be fine get all inputs normalized.

*Originally created by @John-Henrique on 5/10/2023* ### CloudPanel version(s) affected 2.2.2 ### Description If you type a domain capitalized, cloud panel will create an account normally. Example: ``` clpctl site:add:php --domainName=Domain.com --phpVersion=8.1 --vhostTemplate='Generic' --siteUser=john --siteUserPassword='!secretPassword!' ``` Resulting in directories like this **/home/Domain/htdocs/Domain.com** The same thing to Users and Databases. ### How to reproduce Just create a new site using CLI typing a capitalized domain ``` clpctl site:add:php --domainName=Domain.com --phpVersion=8.1 --vhostTemplate='Generic' --siteUser=john --siteUserPassword='!secretPassword!' ``` ### Possible Solution Just a normalize to lower on CLI inputs. ### Additional Context Ok, I know this isn`t properly a error, but will be fine get all inputs normalized.
Sign in to join this conversation.