CLI Reference
configure
Configure your account and environment
$ ms configure
up
Run all or specific applications
# Run all applications
$ ms configure
# Run a specific applications
$ ms up api nginx database
# Run and Recreate if already exists
$ ms up --recreate api
exec
Execute a command inside the application
➜ ~ ms exec nginx -- date
Mon May 3 01:12:53 UTC 2021
# Entering in the bash mode of nginx
➜ ~ ms exec nginx -- bash
root@nginx-7fd849f65f-xlfjr:/#
logs
Print logs of the application
# Just print latest logs (No Watch / Follow)
$ ms logs nginx
# Follow logs (Watch mode)
$ ms logs nginx -f
proxy
Create a local tunnel between your computer and application
# Listen on default application port
➜ ~ ms proxy nginx
Forwarding from 127.0.0.1:80 -> 80
Forwarding from [::1]:80 -> 80
Port forwarding is ready to get traffic. have fun and enjoy ManyStagings!
# Choose a specific port to listen on your computer
➜ ~ ms proxy nginx -p 8080
Forwarding from 127.0.0.1:8080 -> 80
Forwarding from [::1]:8080 -> 80
Port forwarding is ready to get traffic. have fun and enjoy ManyStagings!
status
Get the status info of all applications inside an environment
➜ ~ ms status
+-------------+---------+----------+------+------------------------------------------------+
| APPLICATION | STATUS | AGE | PORT | PUBLIC URL |
+-------------+---------+----------+------+------------------------------------------------+
| postgres | RUNNING | 1h52m42s | 5432 | |
| hello-world | RUNNING | 1h50m35s | 80 | https://carlos-hello-world.ms.myproject.com |
| nginx | RUNNING | 1h52m39s | 80 | https://carlos-nginx.ms.myproject.com |
| go-api | RUNNING | 1h17m44s | 80 | https://carlos-go-api.ms.myproject.com |
+-------------+---------+----------+------+------------------------------------------------+
Last updated
Was this helpful?