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:
Operation | Syntax | Description |
---|---|---|
completion |
| Generate the autocompletion script for digibeectl for the specified shell. |
config |
| Configure digibeectl. |
create |
| Command to create resources |
delete |
| Command to delete resources |
get |
| Get all resources or a specific resource. |
help |
| Help about any command. |
info |
| Show all commands available. |
set |
| Set a specific resource. |
update |
| Update digibeectl to the latest version. |
version |
| 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:
Operations | Resources | Description |
---|---|---|
create, delete, get | api-mgmt-credentials | Create/ delete / get API credentials. |
get | api-mgmt-url | Get API URL. |
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:
Operation | Resource | Flags | Shorthand | Description | Permission |
---|---|---|---|---|---|
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. |
Operation | Resource | Flags | Shorthand | Description | Permissions |
---|---|---|---|---|---|
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. |
Operation | Resource | Flags | Shorthand | Description | Permissions |
---|---|---|---|---|---|
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. |
Operation | Resource | Flags | Shorthand | Description | Permissions |
---|---|---|---|---|---|
create | project | --name --description (mandatory flags) --help | -n -d -h
| Creates a new project. |
|
Operation | Resource | Flags | Shorthand | Description | Permissions |
---|---|---|---|---|---|
get | realm |
|
| List realm information. | REALM:READ |
|
| --help | -h | List help commands. |
|
--output | -o | Display the resources in JSON format. |
Operation | Resource | Flags | Shorthand | Description |
---|---|---|---|---|
get | api-mgmt-credentials |
|
| Manage API credentials. |
|
| --username | -u | Search by username (optional). |
|
| --help | -h | Get help with the commands. |
get | api-mgmt-url |
|
|
|
|
| --help | -h | Get help with the commands. |
create | api-mgmt-credentials |
|
|
|
|
| --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.
Operation | Subcommands | Flags | Shorthand | Description |
---|---|---|---|---|
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. |