php/commands/src/CLI_Alias_Command.php
public function get( $args, $assoc_args ) {
		list( $alias ) = $args;

		$aliases = WP_CLI::get_runner()->aliases;

		if ( empty( $aliases[ $alias ] ) ) {
			WP_CLI::error( "No alias found with key '{$alias}'." );
		}

		foreach ( $aliases[ $alias ] as $key => $value ) {
			WP_CLI::log( "{$key}: {$value}" );
		}
	}
public function get( $args, $assoc_args ) {
		list( $alias ) = $args;

		$aliases = WP_CLI::get_runner()->aliases;

		if ( empty( $aliases[ $alias ] ) ) {
			WP_CLI::error( "No alias found with key '{$alias}'." );
		}

		foreach ( $aliases[ $alias ] as $key => $value ) {
			WP_CLI::log( "{$key}: {$value}" );
		}
	}
public function get ( $ args , $ assoc_args ) { list ( $ alias ) = $ args ; $ aliases = WP_CLI :: get_runner ( ) -> aliases ; if ( empty ( $ aliases [ $ alias ] ) ) { WP_CLI :: error ( "No alias found with key '{$alias}'." ) ; } foreach ( $ aliases [ $ alias ] as $ key => $ value ) { WP_CLI :: log ( "{$key}: {$value}" ) ; } }
Gets the value for an alias.

## OPTIONS

<key>
: Key for the alias.

## EXAMPLES

# Get alias.
$ wp cli alias get @prod
ssh: dev@somedeve.env:12345/home/dev/
Gets the value for an alias .