XL Command Line Interface reference
The xl
command line tool provides a fast and straightforward method for provisioning Digital.ai Release, Deploy, and Runner servers using YAML files. The YAML files can include items such as releases, pipelines, applications, infrastructure, and target environments. In addition, the XL CLI is used for installing or upgrading Digital.ai Deploy and Release.
Usage
xl [command]
Available Commands
Command | Description |
---|---|
apply | Apply configuration changes |
blueprint | Create a Blueprint |
generate | Generate configuration |
help | Help about any command |
ide | IDE commands |
license | Display license info |
kube | Install, upgrade, or clean Digital.ai Deploy or Release using Operator. |
preview | Preview Deployment |
version | Display version info |
wrapper | Generate XL wrapper |
Flags
Flag | Description |
---|---|
--blueprint-current-repository string | Current active blueprint repository name |
--config string | config file (default: $HOME/.xebialabs/config.yaml) |
-h, --help | help for xl |
-q, --quiet | suppress all output, except for errors |
-v, --verbose | verbose output |
--xl-deploy-authmethod string | Authentication method to access the Digital.ai Deploy server, possible values are http, login (default "http") |
--xl-deploy-password string | Password to access the Digital.ai Deploy server (default "admin") |
--xl-deploy-url string | URL to access the Digital.ai Deploy server (default http://localhost:4516/ ) |
--xl-deploy-username string | Username to access the Digital.ai Deploy server (default "admin") |
--xl-release-authmethod string | Authentication method to access the Digital.ai Release server, possible values are http, login, token (default "http") |
--xl-release-password string | Password to access the Digital.ai Release server (default "admin") |
--xl-release-token string | Personal access token to access the Digital.ai Release server |
--xl-release-url string | URL to access the Digital.ai Release server (default http://localhost:5516/ ) |
--xl-release-username string | Username to access the Digital.ai Release server (default "admin") |
Use xl [command] --help
for more information about a command.
xl apply
Command
Use the xl apply
command to execute YAML specifications.
Note If you try to overwrite the YAML specification file after deployment,you will receive an error message "Error while processing YAML document at line 1 of XL YAML file E:\demo\applications.yaml: Unexpected response: File cannot be updated. If you want to change the file, create a new CI for the artifact" and you cannot override the file specification.
Syntax
xl apply [flag] [value]
Command-specific flags
Flag | Description |
---|---|
-d , --detach | Detach the client at the moment of starting a deployment or release |
-f , --file stringarray | Required. Path(s) to the file(s) to apply |
-h , --help | Help for the apply command |
-s , --include-scm-info | Send source control information. Fails if source control information cannot be found or is dirty. For more information, see Source control management in YAML |
-non-interactive | Automatically archive finished deployment tasks |
-p , --proceed-when-dirty | Proceed with applying changes even if repository is dirty This is used together with the s , --include-scm-info flag. For more information, see Proceed-when-dirty flag |
--values stringToString | Values (default []) |
File order processing
You must choose at least one YAML file to perform an apply operation, but if you want to execute two or more YAML files, you can use one of the following methods:
Import kind YAML : The preferred method is to use a separate YAML file of the kind "Import" and list the YAML files to apply in order.
For example, you can create a YAML file called import-yamls.yaml
apiVersion: xl/v1
kind: Import
metadata:
imports:
- infra.yaml
- env.yaml
- app.yaml
- xlr-pipeline.yaml
Using this method, you can then simply run the xl apply -f /tmp/import-yamls.yaml
file which will in turn sequentially run the YAML files listed in the imports:
section.
String multiple files in the CLI: You can also specify multiple YAML files to apply in order when running the xl apply
command. For example:
xl apply -f /tmp/infra.yaml -f /tmp/env.yaml -f /tmp/app.yaml -f xlr-pipeline.yaml
Examples
xl apply -f /tmp/infra.yaml
xl apply -f /tmp/infra.yaml -f /tmp/env.yaml -f /tmp/app.yaml -f /tmp/xlr-pipeline.yaml
xl apply -f xebialabs.yaml -d
xl blueprint
Command
You can use the xl blueprint
command to run blueprints.