drown-cli
CLI tool for managing apps on Drown Platform - a self-hosted PaaS (Platform as a Service).
Deploy and manage containerized applications with simple commands, similar to Heroku CLI but for your own infrastructure.
Installation
pip install drown-cli
Quick Start
# Login to your Drown Platform instance
drown login
# List your apps
drown apps
# Create a new app
drown create my-app
# Scale your app
drown scale my-app 3
# View logs
drown logs my-app
# Check metrics
drown metrics my-app
# Logout
drown logout
Commands
drown login
Authenticate with your Drown Platform instance. You'll be prompted for your username and password.
drown login
Credentials are saved to ~/.drown/config.json for subsequent commands.
drown logout
Remove saved credentials.
drown logout
drown apps
List all your deployed applications.
drown apps
Output:
NAME DOMAIN STATUS REPLICAS
my-app my-app.dr0wn.duckdns.org running 3
web-frontend web.dr0wn.duckdns.org running 1
drown create <app-name>
Create a new application.
drown create my-new-app
If run from a git repository, automatically adds a platform git remote. Then deploy with:
git push platform main
drown scale <app-name> <count>
Scale the number of replicas for an application.
drown scale my-app 5
drown logs <app-name>
View application logs.
drown logs my-app
drown metrics <app-name>
View resource usage metrics (CPU, memory) for all replicas.
drown metrics my-app
Output:
REPLICA PORT STATUS CPU MEMORY
0 8001 running 2.1% 64MiB
1 8002 running 1.8% 62MiB
2 8003 running 2.4% 65MiB
Configuration
API URL
By default, the CLI connects to https://dashboard.dr0wn.duckdns.org.
To use a custom instance, set the DROWN_API_URL environment variable:
export DROWN_API_URL=https://your-instance.com
drown login
Config File
Authentication token is stored in ~/.drown/config.json:
{
"token": "your-jwt-token",
"username": "your-username",
"api_base": "https://dashboard.dr0wn.duckdns.org"
}
Requirements
- Python 3.7+
- Git (optional, for
drown createauto-remote feature)
Development
git clone https://github.com/drownplatform/drown-cli.git
cd drown-cli
pip install -e .
License
MIT License - see LICENSE file for details.
Links
- Platform: dashboard.dr0wn.duckdns.org
- GitHub: github.com/drownplatform/drown-cli
- PyPI: pypi.org/project/drown-cli
Support
For issues or questions, please open an issue on GitHub.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drown-0.1.0.tar.gz.
File metadata
- Download URL: drown-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6c12c5c589d740a1ce88e021d2a6e8c684fe469d9a186dfc73b934c4afdde0a
|
|
| MD5 |
8f2880b53019a29c98437c51bf15b08e
|
|
| BLAKE2b-256 |
d01277f86c38869b17639bab5408ee65879ea3c082d44cd8b9f30c60eaa665a4
|
File details
Details for the file drown-0.1.0-py3-none-any.whl.
File metadata
- Download URL: drown-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2441430bd9ee5ec3aa5e1324db931a05392a106a352e157d59a5d40419298d15
|
|
| MD5 |
f816592013afe73b98d7f43120bd79d2
|
|
| BLAKE2b-256 |
4fdb1f265bf36630a087b968bffea5b68459bf98c9bf21eb07be1c4d856c9d0d
|