Configuration Tools for Martini Runtime
The Martini Command Line Interface (CLI) tool is an essential component designed to empower developers and system administrators with robust capabilities for managing Martini instances remotely. This powerful tool facilitates a wide range of operations, enabling users to interact with Martini environments efficiently and effectively without the need for a graphical interface.
Introduction to Martini CLI
At the core of Martini's design philosophy is the principle of flexibility, and the Martini CLI tool exemplifies this by offering a comprehensive suite of commands that cater to the diverse needs of modern IT environments. Whether you are deploying new integrations, monitoring system health, or managing configurations, the Martini CLI tool provides a unified interface that streamlines these tasks, enhancing productivity and operational efficiency.
Key Features
- Remote Management: The CLI tool is engineered to enable remote management of Martini instances, allowing system administrators and developers to execute commands, modify configurations, and monitor system performance from any location.
- Automation and Scripting: With its command-line nature, the Martini CLI tool is an ideal candidate for automation scripts, making it simpler to automate routine tasks and deploy consistent configurations across multiple instances.
- Direct Access: Bypass the need for a graphical user interface (GUI) and interact directly with Martini's core functionalities, ensuring faster execution of commands and reduced system overhead.
- Comprehensive Command Set: From basic system checks to intricate configuration updates, the CLI tool offers an extensive set of commands that cover virtually every aspect of Martini's operational capabilities.
Getting Started
Before running the CLI commands, ensure that Java 11 is installed on your computer. The Martini CLI requires Java 11 to function properly. You can check if Java 11 is installed by running the following command:
1 |
|
If Java 11 is installed, you will see output similar to:
1 2 3 |
|
If Java is not installed or the output shows a different version, you will need to install Java 11 before proceeding.
Installing Java
To install Java, use your server's package manager, download it from Oracle's official Java website, or use the appropriate package repository for your operating system, such as AdoptOpenJDK for open-source Java distributions.
Once Java is confirmed to be installed, you can run the Martini CLI under the bin/
directory:
1 |
|
This will launch a shell containing commands for managing Martini. To list available commands, type help
.
Note: The sample text below shows the Martini splash screen which appears when the CLI first launches.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
More commands are available when you're logged in
The above commands represent just a portion of the entire command set. Additional commands become accessible once you log in using the connect
command.
Connecting to an instance
Once you have installed your license, you can login to a Martini Instance using your credentials from the TORO Marketplace.
1 2 3 |
|
After connecting successfully, the prompt changes to the URL of the instance you're connected to. Type help
again to see the added commands.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
Displaying help text
If you are lost on the commands and wondering whats the purpose or options included with the command, you can use the help
command followed by the intended command.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Command Autocompletion
The CLI tool supports tab
autocompletion. For example, if you type list-tab
, the CLI will display all the commands that start with list
:
1 2 3 4 5 6 7 8 |
|
To choose from the given commands that start with list
, you can press tab
again to scroll through the available commands and press enter
to choose.
1 2 3 4 5 6 7 8 9 |
|
Reverse Search
This is a feature in the CLI tool that allows users to find previously executed commands from the session. You can do this by pressing ctrl+R
.
For example, if you type li then pressing ctrl+R
the CLI will suggest the previous command that we used to list the packages.
1 2 |
|
Saved logs
All commands typed during the session are written to a log file named toro-martini-cli.log
. This is reused by the tool to do reverse searches. Make sure that the log file is not accessible to the public.
Scripting with CLI tool
With the help of CLI, you can automate your commands by using a script to run in the CLI tool of Martini.
For example, with this script named stop-packages
, it stops a list of packages written inside the script. To run this script using the CLI tool, you can use the command:
1 |
|
Designed for Professionals
Understanding the critical role that CLI tools play in system administration and development, the Martini CLI tool is tailored to meet the demands of professionals who value efficiency, precision, and reliability. The tool's intuitive syntax and structured command hierarchy make it accessible to newcomers while offering the depth and flexibility that seasoned users expect.
Seamless Integration
The CLI tool is seamlessly integrated with Martini, ensuring that users have consistent and up-to-date access to all features and functionalities of the platform. This integration fosters a cohesive ecosystem where changes made via the CLI are reflected across the platform, maintaining system integrity and synchronicity.