Skip to main content

Command-line interface for deploying web applications on Ufazien platform

Reason this release was yanked:

This version contains bugs, please use the latest version.

Project description

Ufazien CLI

๐Ÿš€ A Command-line interface for deploying web applications on the Ufazien platform.

Features

  • โœจ Beautiful terminal UI powered by Rich
  • ๐ŸŽฏ Modern CLI framework using Typer
  • ๐Ÿ” Secure authentication with token management
  • ๐Ÿ“ฆ Easy project creation and deployment
  • ๐Ÿ—„๏ธ Database provisioning support
  • ๐Ÿ“ Automatic project structure generation

Installation

From Source

# Clone the repository
git clone <repository-url>
cd ufazien-cli-py

# Install in development mode
pip install -e .

# Or install in production mode
pip install .

From PyPI (Coming Soon)

pip install ufazien-cli

Usage

Login

Authenticate with your Ufazien account:

ufazien login

You'll be prompted for your email and password.

Create a New Website

Create a new website project in the current directory:

ufazien create

The CLI will guide you through:

  • Website name and subdomain
  • Website type (Static or PHP)
  • Database creation (for PHP projects)
  • Project structure generation

Deploy Your Website

Deploy your website to Ufazien:

ufazien deploy

This will:

  1. Create a ZIP archive of your project (excluding files in .ufazienignore)
  2. Upload the files to your website
  3. Trigger the deployment

Check Status

Check your login status and profile:

ufazien status

Logout

Logout from your account:

ufazien logout

Commands

Command Description
login Login to your Ufazien account
logout Logout from your account
create Create a new website project
deploy Deploy your website
status Check login status and profile

Project Structure

When you create a new website, the CLI generates a project structure:

PHP Projects

.
โ”œโ”€โ”€ index.php
โ”œโ”€โ”€ config.php
โ”œโ”€โ”€ database.php (if database is created)
โ”œโ”€โ”€ .env (if database is created)
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .ufazienignore
โ”œโ”€โ”€ .ufazien.json
โ””โ”€โ”€ src/
    โ”œโ”€โ”€ index.php
    โ”œโ”€โ”€ css/
    โ”‚   โ””โ”€โ”€ style.css
    โ””โ”€โ”€ js/
        โ””โ”€โ”€ main.js

Static Projects

.
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .ufazienignore
โ”œโ”€โ”€ .ufazien.json
โ””โ”€โ”€ src/
    โ”œโ”€โ”€ css/
    โ”‚   โ””โ”€โ”€ style.css
    โ””โ”€โ”€ js/
        โ””โ”€โ”€ main.js

Configuration

Create a .ufazienignore file in your project root to exclude files and directories from deployment. The format is similar to .gitignore:

.git/
node_modules/
*.log
.env

Requirements

  • Python 3.8+
  • Ufazien account

Development

Setup Development Environment

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -e ".[dev]"

Running Tests

pytest

Code Formatting

black src/
ruff check src/

License

MIT License

Support

For issues and questions, please visit Ufazien Support.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ufazien_cli-0.1.5.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ufazien_cli-0.1.5-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file ufazien_cli-0.1.5.tar.gz.

File metadata

  • Download URL: ufazien_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for ufazien_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 577bf9765b589168f734a99003cb46b12525c3c9575848adeb1f86f92b126043
MD5 b9d6df87c9594b7478699491b8650c1d
BLAKE2b-256 7d4f89d7499846eb1a4269007fc1da2e82c4c2a7064813dc03c926db4d27795b

See more details on using hashes here.

File details

Details for the file ufazien_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: ufazien_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for ufazien_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0c17e0b96b2bde71f11a9462d5cc378696019322ad574808f7a409b0486d4580
MD5 b04f55ad8ab255bb3d45867c28ce3803
BLAKE2b-256 fad390e308561e029cb6a90e44092f20425b3a6d255adf708755e8b9335d9613

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page