Skip to content

Mahavishnu-K/FastDB-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FastDB CLI

The official command-line interface for FastDB, a fast and efficient database management tool.

Overview

FastDB CLI provides a command-line interface to interact with FastDB databases. It offers features for authentication, database management, and query execution.

Installation

Install the FastDB CLI using pip:

pip install -e .

Features

  • Authentication: Login and logout functionality for secure access
  • Database Management: Create, list, and manage databases
  • Query Execution: Run queries directly from the command line
  • Status Monitoring: Check authentication and connection status

Quick Start

Login

fastdb login

List Databases

fastdb db list

Select a Database

fastdb use <database-name>

List Tables

fastdb db list --tables

Run Queries

fastdb run <query>

Check Status

fastdb status

Commands

Authentication Commands

  • fastdb login - Login to FastDB
  • fastdb logout - Logout from FastDB
  • fastdb status - Show current authentication status

Database Commands

  • fastdb db list - List all available databases
  • fastdb db list --tables - List all tables in the current database
  • fastdb use <database> - Select a database to work with
  • fastdb run <query> - Execute a query
  • fastdb db - Access database management commands

Dependencies

  • typer - Modern Python CLI framework
  • requests - HTTP library for API communication
  • rich - Rich text and beautiful formatting in the terminal

Project Structure

fastdb/
├── __init__.py      # Package initialization
├── main.py          # Main CLI application entry point
├── auth.py          # Authentication commands (login, logout, status)
├── actions.py       # Action commands (use, run)
├── db.py            # Database management commands
├── config.py        # Configuration management
└── __pycache__/     # Python cache directory

Development

To set up the development environment:

  1. Clone the repository
  2. Install dependencies: pip install -e .
  3. Start developing and testing commands with fastdb

License

FastDB CLI - Version 0.1.0

About

The terminal interface for managing FastDB clusters.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages