@mindbricks/mbx
v1.0.11
Published
Mindbricks CLI Command line tools for Mindbricks platform
Downloads
969
Readme
@mindbricks/mbx
Official CLI tool for the Mindbricks platform. Authenticate and manage your Mindbricks projects from the command line.
Installation
npm install -g @mindbricks/mbxQuick Start
Login
Authenticate with your Mindbricks account:
mbx loginCheck Authentication Status
View your current logged-in user:
mbx whoamiExport Project
Download and extract a project to a folder (auto-extracts by default):
mbx export <project-shortname>
# Examples:
mbx export myproject # Exports and extracts to current directory
mbx export myproject -o ./downloads # Exports and extracts to specified directory
mbx export myproject --zip # Downloads as ZIP file (no extraction)
mbx export myproject -o ./downloads -z # Downloads as ZIP to specified directoryPull Service Update
Update a service with the latest version from Mindbricks:
mbx pull
# Can also specify a path
mbx pull ./path/to/serviceThe pull command requires a .mindbricks.json file in the service directory with the following structure:
{
"projectShortname": "your-project",
"projectCodename": "your-codename",
"serviceName": "your-service"
}Logout
Log out and remove stored credentials:
mbx logoutCommands
| Command | Description |
|---------|-------------|
| mbx login | Authenticate with your Mindbricks account |
| mbx logout | Log out and remove stored credentials |
| mbx whoami | Display current authenticated user information |
| mbx export <shortname> | Export a project to local directory |
| mbx pull | Pull latest service update (run from within a service directory) |
Options
Export Options
-o, --output <path>- Specify output directory (default: current directory)-z, --zip- Keep as ZIP file without extracting (default: auto-extract to folder)
Authentication
The CLI stores your authentication token in ~/.mbx-token.json. This file is automatically created when you login and is used for all authenticated requests.
Requirements
- Node.js >= 16.0.0
License
MIT
Support
For issues and questions, please visit https://mindbricks.com/support
