Digibeectl operations
Explore the various operations available in Digibeectl.
Last updated
Explore the various operations available in Digibeectl.
Last updated
With simple commands, you can easily configure your customer. Settings are automatically saved to a file, speeding up subsequent commands.
Follow the table for the standard syntax and descriptions for performing operations in Digibeectl:
completion
digibeectl completion SUB-COMMAND [flags]
Generate the autocompletion script for digibeectl for the specified shell.
config
digibeectl config [flags]
Configure digibeectl.
create
digibeectl create RESOURCE [flags]
Command to create resources
delete
digibeectl delete RESOURCE [flags]
Command to delete resources
get
digibeectl get RESOURCE [flags]
Get all resources or a specific resource.
help
digibeectl get SUB-COMMAND or RESOURCE [flags]
Help about any command.
info
digibeectl info [flags]
Show all commands available.
set
digibeectl create RESOURCE [flags]
Set a specific resource.
update
digibeectl update [flags]
Update digibeectl to the latest version.
version
digibeectl version [flags]
Show the version info of digibeectl.
Below you can see the Help documentation within Digibeectl:
Resource types are the specific resources to be accessed and used to compose certain commands.
Check out the sages examples for resource type:
The following table includes a list of all the supported resource types and their abbreviated aliases:
create, delete, get
api-mgmt-credentials
Create/ delete / get API credentials for Pipeline Metrics API.
get
api-mgmt-url
Get API URL for Pipeline Metrics API.
create, delete, get
deployment
Create/ delete deployments/ Retrieve details of a specific deployment.
get
deployment-history
Get all deployment history.
get
pipeline
Read content from the pipeline.
get
project
Read available projects.
get
realm
Get realm resource.
get
metrics
Get metrics from a valid pipeline.
create
pipeline
Creates a new pipeline.
create
project
Creates a new project.
The following tables categorize resources based on their corresponding operations and indicate the respective flags for each operation:
get
deployment
List deployments.
DEPLOYMENT:READ
--deployment-id
-d
Filter deployment by ID.
--environment
-e
Filter deployments by environment (default "test").
--name
-n
Filter deployments by name.
--projectName
-p
Filter deployments by project name.
--status
-s
Filter deployments by status.
--allspecs
-a
Show all pipeline specs (FlowSpec, TriggerSpec, InSpec, OutSpec).
--flowspec
-f
Show pipeline Flow specs.
--output
-o
Display the resources in JSON format.
get
deployment-history
List deployments history.
--name
-n
Filter deployments history by pipeline name.
--majorversion
-m
Filter deployments history by major version.
--page
-p
Show the number of items to return. Default is 1.
--size
-s
Show the number of pages to filter. Default is 20.
--help
-h
Get help with deployment history.
create
deployment
Create a deployment.
DEPLOYMENT:CREATE, DEPLOYMENT:CREATE:REDEPLOY, CONFIGURATION:READ, CONFIGURATION:UPDATE
--pipeline-id
(mandatory flag)
The pipeline ID.
--pipeline-size
-s
The pipeline size (SMALL/MEDIUM/LARGE). Default: SMALL
--consumers
-c
The maximum number of consumers on the pipeline to be deployed (Default: SMALL=10 / MEDIUM=20 / LARGE=40).
--environment
-e
The pipeline environment for deployment. Default: test.
--instance-name
-i
The pipeline instance name required when the pipeline has multiple instances.
--redeploy
Enable the pipeline redeployment.
--replicas
The pipeline number of replicas. Default: 1
--wait
If active, waits for the deployment to be completed. Timeout: 300 seconds.
delete
deployment
Remove a deployment.
DEPLOYMENT:DELETE
--deployment-id
-d
The ID of the deployment to be deleted.
--environment
-e
The environment of the deployment to be deleted.
--help
-h
List of help commands for implementation.
set
deployment
--rollback
--id
(mandatory flags)
Performs rollback to restore the previous version of the pipeline that was deployed.
get
metrics
--pipeline-name
--pipeline-version
--from
--to
--relative-date
Get metrics from a valid pipeline.
Use the --from and --to flag to filter metrics for a specific date or interval. The --from flag can be used without the --to flag, but the --to flag cannot be used on its own.
The --relative-date flag is another option that allows you to filter metrics within relative time intervals. You can use values such as: last 5 minutes, last 3 days, last 7 days or specify a date range.
get
pipeline
List pipelines.
PIPELINE:READ
--allspecs
Show all pipeline specs (FlowSpec, TriggerSpec, InSpec, OutSpec). Required:pipeline-id
--flowspec
-o
Show pipeline FlowSpec. Required: --pipeline-id
--archived
-a
Show only archived pipelines.
--help
-h
Get help for the pipeline.
--name string
-n
Filter pipelines by name.
--page int
Page results (default 1).
--pipeline-id string
Filter pipelines by ID.
--pipeline-version-major string
Filter pipelines bymajor version.
--pipeline-version-minor string
Filter pipelines by minor version.
--project-id string
Filter pipelines by project id.
--show-versions
Show pipelines with versions.
--output
-o
Display the resources in JSON format.
create
pipeline
--name string
--description
(mandatory flags)
--project string
--help
-n
-d
-p
-h
Creates a new pipeline.
create
project
--name
--description
(mandatory flags)
--help
-n
-d
-h
Creates a new project.
get
realm
List realm information.
REALM:READ
--help
-h
List help commands.
--output
-o
Display the resources in JSON format.
get
api-mgmt-credentials
Get API credentials for Pipeline Metrics API.
--username
-u
Search by username (optional).
--help
-h
Get help with the commands.
get
api-mgmt-url
Get API URL for Pipeline Metrics API.
--help
-h
Get help with the commands.
create
api-mgmt-credentials
Create API credentials for Pipeline Metrics API.
--username
-u
username for API credentials (required).
--password
-p
password for API credentials (required).
delete
api-mgmt-credentials
--username
-u
Delete a username.
For the username to be deleted, the realm name must be included before the username.
config
set
Set a new configuration with authentication parameters.
--file (mandatory)
-f
Generate a configuration file.
--secret-key (mandatory)
-s
The encrypted key.
--auth-key (mandatory)
-a
The authentication key.
config
get
Get the realm configuration details. Default is the current realm.
--help
-h
List help commands.
--realm
-r
The realm name.
config
view
Show all available realms and their configurations.
config
list
List all available realms and their configurations.
config
use
Change the current digibeectl realm.
--realm
-r
The realm name.
config
delete
Delete a digibeectl configuration from a realm.
--realm
-r
The realm name.
config
update
Update digibeectl to LTS (Long-term support) version.
config
version
Display current digibeectl version.