Command-line Shell
The CAS command-line shell provides the ability to query the CAS server for help on available settings/modules and various other utility functions.
To invoke and work with the utility, execute:
1
java -jar /path/to/cas-server-support-shell-$casVersion.jar
…where $casVersion
needless to say is the CAS version that is deployed.
The interface that is next presented will guide you through with available parameters and methods of querying. You will learn how to launch into the interactive shell and query the CAS engine dynamically.

Make sure you have the proper JCE bundle installed in your
Java environment that is used by CAS, specially if you need to use specific signing/encryption algorithms and methods.
Be sure to pick the right version of the JCE for your Java version. Java versions can be detected via the java -version
command.
Note that the WAR Overlay deployment strategy should already be equipped with this functionality. You should not have to do anything special and extra to interact with the shell. See the relevant overlay documentation for more info on how to invoke and work with the shell.
Shell Commands
The following commands are available and exposed by the CAS command-line shell.
generate-key
Generate signing/encryption crypto keys for CAS settings
cipher-text,encode-text
Sign and encrypt text data using keys
decipher-text,decode-text
Decrypt and verify text data using keys
generate-ddl
Generate database DDL scripts
decrypt-value
Decrypt a CAS property value/setting via Jasypt
encrypt-value
Encrypt a CAS property value/setting via Jasypt
jasypt-list-algorithms
List alogrithms you can use with Jasypt for property encryption
jasypt-list-providers
List encryption providers with PBE Ciphers you can use with Jasypt
jasypt-test-algorithms
Test encryption algorithms you can use with Jasypt to make sure encryption and decryption both work
generate-full-jwt
Generate JWT and sign it using a given keystore
generate-jwt
Generate a JWT with given size and algorithm for signing and encryption.
generate-oidc-jwks
Generate OIDC JSON Web Keystore
add-properties
Add properties associated with a CAS group/module to a Properties/Yaml configuration file.
convert-props
Convert CAS properties to YAML file at the same location.
export-props
Export CAS properties and settings from configuration metadata.
find
Look up properties associated with a CAS group/module.
generate-idp-metadata
Generate SAML2 IdP Metadata
generate-anonymous-user
Generate an anonymous (persistent) username identifier
generate-yaml
Generate a YAML registered service definition
validate-service
Validate a given JSON/YAML service definition by path or directory
validate-endpoint
Test connections to an endpoint to verify connectivity, SSL, etc
validate-ldap
Test connections to an LDAP server to verify connectivity, SSL, etc