CLI Actions is an Android Studio plugin that allows you to create shortcuts to terminal commands with grouping for easy access. This plugin simplifies your workflow by enabling you to define and execute frequently used commands right from within Android Studio.
You can install the CLI Actions plugin in Android Studio using the Plugin Marketplace:
- Open Android Studio.
- Navigate to
Preferences/Settings
>Plugins
. - Search for "CLI Actions" in the marketplace.
- Click
Install
and restart Android Studio to activate the plugin.
For manual installation, download the latest release from the JetBrains Plugin Marketplace. You can also visit the GitHub repository for more information.
CLI Actions allows you to streamline your workflow by defining and executing terminal commands from within Android Studio. Here are a few usage examples:
- Grouping of Commands: Organize your commands into groups for easier access and management.
- Custom Configuration Files: Create configuration files with the
.cliactions.yaml
suffix in your project root or user home directory. - Dynamic Shortcut Generation: Generate shortcuts dynamically based on your project structure.
- Cross-Project Commands: Define commands at the root user level to make them available across all your projects.
- Grouping of Commands: Organize your commands into groups for efficient management.
- Custom Configuration Files: Create
.cliactions.yaml
files in your project or user directory to define shortcuts. - Cross-Project Commands: Define root-level commands accessible across all projects.
- Dynamic Shortcuts: Generate shortcuts based on your project structure.
Configure CLI Actions using YAML-based configuration files with the following structure:
groups:
- name: Group Name
commands:
- name: Command Name
command: your-terminal-command
prompt: true/false (default false)
forceNewTab: true/false (default false)
- Incorrect formatting may render the plugin useless, so ensure your configuration files are correctly formatted.
- Restart your IDE after making any configuration changes.
Contributions to the CLI Actions plugin are welcome. To contribute:
- Fork the GitHub repository.
- Make your changes.
- Open a pull request (PR) to the repository.
CLI Actions is distributed under the Apache License, Version 2.0. Third-party libraries and components used in the plugin may have their own licenses.