Much of the power of a command-line interface like EM CLI is the ability to automate the execution of multiple commands at a time. This chapter dives deep into the marriage of Python and EM CLI in what is known as interactive and scripting mode.
The first part of the chapter reviews some of the history of where Python, Jython, and JSON came from. Being able to take advantage of Python functionality in EM CLI requires a basic understanding of programming and Python syntax. An introduction to Python in this chapter, including examples, will allow even the first-time Python user to tackle Python efficiently in EM CLI. ...