FastDev and atlas-cli have been deprecated and are no longer available in Atlassian Plugin SDK 8.x and later versions. Please use Automatic Plugin Reinstallation with QuickReload instead.
This page describes the shell script atlas-cli
, part of the Atlassian Plugin SDK.
Along with the plugin install (pi
) command, this command allows you to install a plugin into a running Atlassian application, without having to restart the application. At the CLI prompt, you enter pi
to install a plugin whenever you change its code.
Note that this mechanism is now incorporated in the user interface of Atlassian application as one of the developer tools. For more information, see Automatic Plugin Reinstallation with FastDev. If you want to avoid using FastDev but do want to use the command line mode as described here, add the following to the AMPS configuration in your project POM:
<useFastdevCli>false</useFastdevCli>
atlas-cli [options]
- Starts up a command line interface to your plugin running in the host application. After you change the plugin code, enter pi
at the CLI prompt to install the updated plugin in the Atlassian application. (Runs mvn amps:cli
.) Interpreted parameters: http-port, context-path, server, cli-port
.Available CLI commands:
pi
-- Plugin install. Installs your updated plugin into the application.quit
, exit
or bye
-- Exits from the CLI.This shell script supports some interpreted parameters, specified below. All other parameters are passed straight through to Maven.
Explaining the table columns:
Interpreted parameters:
Full Parameter | Description |
---|---|
--http-port | HTTP port for the servlet container, e.g. Shortened: -p |
--context-path | The application context path. You will need to include the leading forward slash. For example, if your application is running at localhost:1990/confluence then you should enter To run your application in the root web application context (eg. localhost:1990), then you should enter |
--server | Host name of the application server. The default is |
--cli-port | The port the CLI will listen to for commands. The default is |
All above accepts a value.
The shell script will display some help text if you enter one of the following as the first argument:
For example:
1 2atlas-cli -? atlas-cli -help
Once you have done the initial atlas-create-APPLICATION-plugin
and atlas-run
, you can keep the application running in one command window and use the CLI (command line interface) to dynamically reinstall your plugin after each change.
pom.xml
is located).atlas-cli
to start the CLI.Waiting for commands
.pi
(plugin install) to compile, package and install the plugin.Rate this page: