Command Line Interface (CLI)
Powerful command-line tools for deploying, managing, and monitoring your mnnn applications.
Introduction
The mnnn CLI empowers developers with streamlined workflows for managing applications, environments, and infrastructure. Below are key features and usage guidelines.
Installation
You can install the mnnn CLI via npm.
$ npm install -g @mnnn/cli
Verify the installation:
$ mnnn --version
CLI Commands
Use these commands to manage your mnnn projects:
mnnn init
Initialize a new project configuration.
mnnn deploy
Deploy your application to a specified environment.
mnnn status
Check the status of deployed applications.
mnnn logs
View logs for deployed applications.
Configuration
The CLI uses a mnnn.config.json
file for project-level settings.
{
"deployment": {
"platform": "aws",
"region": "us-east-1"
},
"environment": "development"
}
You can also set global configurations:
$ mnnn config set api_key YOUR_API_KEY
Examples
Basic Workflow
$ mnnn init
$ mnnn deploy --platform gcloud
$ mnnn status
Advanced Usage
$ mnnn deploy --config prod.config.json
$ mnnn logs --application my-app
Troubleshooting
Common Errors
Error: "Permission denied"
Ensure your API key has deployment permissions and is valid.
Error: "Command not found"
Verify the CLI is installed globally and in your PATH.