- Print
- PDF
britive ls
- Print
- PDF
Description
This command lists all the applications, profiles, and environments for an account in the Britive system.
Usage
$ britive ls [LISTTYPE] [APPENVNAME] |
where
- [LISTTYPE] can be profiles, applications, or environments, and
- [APPENVNAME] is an optional argument that can be an application name or environment name enclosed in double quotes " ".
Use the command britive ls --help to know more about the arguments and options available for the britive ls command.
Example 1 (britive ls profiles)
$ britive ls profiles |
Use the britive configure command to configure the desired output format for the britive ls commands.
If you have not configured any specific output format using the britive configure command, the britive ls command displays the output in the CSV format, by default.
For example, britive ls profiles command gives the output in CSV format when the output format is not configured using the britive configure command.
If you have configured the output format using the britive configure command, then the output of the britive ls command is displayed in the configured format.
For example, suppose you have configured Table as the output format using the britive configure command, then the britive ls profiles command shows the output in the tabular format.
Alternately, you can also specify the output format using the command option -f or --format. In this case, the value of the -f or --format option specified in the command overrides the output format that you have previously configured using the britive configure command if any. This is shown in the following example.
Example 2 (britive ls applications)
$ britive ls applications |
Example 3 (britive ls environments)
$ britive ls environments |
Example 4:(ls profiles [APPNAME])
$ britive ls profiles [APPNAME] |
Here [APPNAME] is "GCP - Test3".
In this usage, the britive ls command lists the profiles for a specific application named GCP - Test3. In the table returned in the output, the column "Name" shows the profile fetched by this command.
Example 5: (ls environments [APPNAME])
$ britive ls environments [APPNAME] |
Here [APPNAME] is "GCP - Test3".
In this usage, the britive ls command lists the environment(s) for a specific application named GCP - Test3. In the table returned in the output, the column "Environment" shows no value as there is no environment associated with this application.
Example 6:(ls profiles -c option)
$ britive ls profiles -c |
In this usage, the britive ls command lists the checked-out profiles in the CLI.
Alternately, you can also use the --checkedout option and get the same result as shown here.
$ britive ls profiles --checkedout |