asgardeo-cli is a experimental (non-official) cli app for managing and interacting with Asgardeo integrations.
Features
Authenticate as a machine (Client Credentials) or User (Device Flow)
Manage applications
List applications
Create applications (Support Templates)
Delete applications
Interactive mode
Keychain support for storing credentials
Logging
Installation
Prerequisites
Go 1.16 or higher
Make sure $HOME/bin is in your PATH
Steps
Clone the repository:
git clone https://github.com/shashimalcse/asgardeo-cli.git
cd asgardeo-cli
Build and install the CLI:
make install
Verify the installation:
asgardeo --version
If you encounter any issues, ensure that $HOME/bin is in your PATH by adding the following line to your shell configuration file (~/.zshrc for Zsh or ~/.bash_profile for Bash):
export PATH=$PATH:$HOME/bin
Then, reload your shell configuration:
source ~/.zshrc # or ~/.bash_profile for Bash
Usage
Authenticating to Your Tenant
Authenticating to your Identity Server/ Asgardeo tenant is required for most functions of the CLI. It can be initiated by running:
asgardeo login
There are two ways to authenticate:
As a user - Recommended when invoking on a personal machine or other interactive environment. Facilitated by device authorization flow.
Authenticating as a user is not supported for Asgardeo tenants.
As a machine - Recommended when running on a server or non-interactive environments (ex: CI). Facilitated by client credentials flow.