Azure / Azure/static-web-apps-cli
Connect to a dev server using ports only (shorthand syntax)
Open
complexity: hours
priority: low (P2)
scope: cli
type: enhancement
type: RFC
- Dominant language
- TypeScript
- Stars
- 668
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the solution you'd like**
We would like to support a shorter syntax when connecting to a dev server.
Instead of asking the user to type in:
```
swa start http://localhost:4200 --api http://localhost:7071
```
We can also support:
```
swa start :4200 --api :7071
```
This would assume that these dev servers are running on `http://localhost:PORT`.
Specs:
- This shorthand syntax only works for `http`
- Use ":" before the port number. This would make it easier to parse.
cc @johnpapa @anthonychu
Contributor guide
Assessment
This issue has not been assessed yet.