mudhost
v1.0.0
Published
CLI for Hosting - deploy preview environments with one command
Maintainers
Readme
Quick Start
Login to your Hosting instance:
npx mudhost login --api https://your-domain.comAlternatively, you can provide username and password directly:
mudhost login -u admin -p admin123 --api https://your-domain.comDeploy your project:
npx mudhost deploy my-project ./distAccess your preview:
https://my-project-main-12345.your-domain.comCommands
Login
npx mudhost login [options]Deploy
npx mudhost deploy <project-id> [dist-dir] [options]List Deployments
npx mudhost list [options]Delete Deployment
npx mudhost delete <deployment-id>Whoami
npx mudhost whoamiLogout
npx mudhost logoutExamples
# Deploy with custom branch
npx mudhost deploy my-app ./build --branch feature/new-ui
# Deploy to custom API
npx mudhost deploy my-app ./dist --api https://staging.example.com
# List deployments for a project
npx mudhost list --project my-appConfiguration
The CLI automatically saves your authentication token and API URL in ~/.mudhost/config.json.
You can also create a mudhost.json file in your project:
{
"apiUrl": "https://your-domain.com",
"defaultProject": "my-app",
"defaultBranch": "main"
}