@sreeport/cli
v0.1.2
Published
Command-line interface for Sreeport.
Maintainers
Readme
@sreeport/cli
Command-line interface for Sreeport.
Sreeport gives local development projects stable ports, .localhost domains, Caddy routing, browser preferences, logs, and start/stop/restart commands.
Install
npm install -g @sreeport/cliQuick Start
Create a Sreeport config in a project:
sreeport next init --name web --domain web.localhost --port 3100Start the project:
sreeport start webStart the local proxy:
sreeport proxy startOpen the project:
sreeport open webCommands
sreeport init
sreeport scan
sreeport start [project|all]
sreeport stop [project|all]
sreeport restart [project|all]
sreeport open [project]
sreeport status --json
sreeport logs [project]
sreeport proxy status|write|start|stop|restart
sreeport doctor
sreeport next initExample Config
export default {
projects: [
{
name: "web",
domain: "web.localhost",
port: 3100,
framework: "next",
browser: "chrome"
}
]
} satisfies import("@sreeport/core").SreeportConfig;Caddy
Sreeport uses Caddy for local routing. Install Caddy separately:
brew install caddyThen run:
sreeport proxy startPrivacy
The CLI reads your local sreeport.config.* file and writes runtime state under the standard user application support paths. This npm package does not ship private mappings, logs, or environment files.
Links
- Repository: https://github.com/sreejithmuralidharan/sreeport
- Documentation: https://github.com/sreejithmuralidharan/sreeport#readme
- Issues: https://github.com/sreejithmuralidharan/sreeport/issues
License
MIT
