@mifistix-cloud/cli
v2.0.5
Published
CLI Tool for Mifistix Cloud - Command-line interface for project management
Readme
@mifistix-cloud/cli
CLI Tool for Mifistix Cloud - Command-line interface for project management.
License
This module is licensed for internal use within Mifistix only. See LICENSE for details.
Installation
npm install -g @mifistix-cloud/cliQuick Start
# Initialize project in current directory
mifistix init
# List all projects
mifistix projects:list
# Read database data
mifistix database:get /users
# Show current config
mifistix config
# Start local emulator
mifistix serveCommands
init
Initialize Mifistix project in current directory.
Creates MifistixCloudConfig.json with template configuration.
mifistix initconfig
Show current configuration.
mifistix configprojects:list
List all your projects.
mifistix projects:listdatabase:get
Read data from Realtime Database.
mifistix database:get /users
mifistix database:get /users/user1auth:list
List project users.
mifistix auth:listserve
Start local emulator for development.
mifistix servehelp
Show help information.
mifistix helpConfiguration
Edit MifistixCloudConfig.json after running init:
{
"apiKey": "mfstx-YOUR_API_KEY",
"projectDomain": "your-project.mifistix.cloud",
"projectId": "YOUR_PROJECT_ID",
"storageBucket": "your-project.mifistix.storage",
"messagingId": "YOUR_MESSAGING_ID",
"appId": "mfstx-app-YOUR_APP_ID",
"region": "eu-central"
}Environment Variables
MIFISTIX_SERVER_URL: Custom server URL
export MIFISTIX_SERVER_URL=https://custom-server.com
mifistix projects:listArchitecture
cli/
├── src/
│ ├── core/
│ │ └── CLIRunner.js # Main CLI runner
│ ├── services/
│ │ ├── InitCommand.js # Init command handler
│ │ ├── ConfigCommand.js # Config command handler
│ │ ├── ProjectsCommand.js # Projects command handler
│ │ ├── DatabaseCommand.js # Database command handler
│ │ ├── AuthCommand.js # Auth command handler
│ │ └── ServeCommand.js # Serve command handler
│ ├── utils/
│ │ ├── styles.js # Text styling
│ │ └── configLoader.js # Config loader
│ ├── types/
│ │ └── index.js # Type definitions
│ └── config/
│ └── constants.js # Configuration constants
├── bin/
│ └── mifistix.js # CLI entry point
└── index.jsLicense
MIT
