Argument Map
HOME_DIR
module-attribute
Home Directory
Defaults to users home directory at $HOME/.duplo
This is where the cli will look by default for the config and cache as well.
| Help |
The home directory for duplo configurations
|
|---|---|
| Flags | --homedir, --home-dir |
| Environment Variable | DUPLO_HOME |
| Type | str |
| Required | False |
| Default | None |
CACHE_DIR
module-attribute
Cache Directory
Defaults to $HOME/.duplo/cache. This is where the cli will store the cached credentials. Sometimes you may need to delete this directory to clear out old credentials. Simply type duploctl and this will print where the cache is currently stored.
| Help |
The cache directory for saved credentials.
|
|---|---|
| Flags | --cachedir, --cache-dir |
| Environment Variable | DUPLO_CACHE |
| Type | str |
| Required | False |
| Default | None |
LOGLEVEL
module-attribute
| Help |
The log level to use.
|
|---|---|
| Flags | --log-level, --loglevel, -L |
| Environment Variable | DUPLO_LOG_LEVEL |
| Type | str |
| Required | False |
| Default | None |
| Choices | CRITICAL, FATAL, ERROR, WARN, WARNING, INFO, DEBUG, NOTSET |
CONFIG
module-attribute
| Help |
The path to the duploctl configuration file.
|
|---|---|
| Flags | --configfile, --config-file |
| Environment Variable | DUPLO_CONFIG |
| Type | str |
| Required | False |
| Default | None |
CONTEXT
module-attribute
| Help |
Use the specified context from the config file.
|
|---|---|
| Flags | --context, --ctx |
| Environment Variable | DUPLO_CONTEXT |
| Type | str |
| Required | False |
| Default | None |
HOST
module-attribute
| Help |
The URL to specified Duplo portal.
|
|---|---|
| Flags | --host, -H |
| Environment Variable | DUPLO_HOST |
| Type | str |
| Required | False |
| Default | None |
TOKEN
module-attribute
| Help |
The token to authenticate with DuploCloud Portal API.
|
|---|---|
| Flags | --token, -t |
| Environment Variable | DUPLO_TOKEN |
| Type | str |
| Required | False |
| Default | None |
TENANT
module-attribute
Tenant Name
Scopes the command into the specified tenant. In the background the TENANT_ID is discovered using this name. So if TENANT_ID is set, this is ignored. Often times this is set as an environment variable so you don't have to choose the tenant each and every command. This can also be set in the config file within a context.
| Help |
The tenant name
|
|---|---|
| Flags | --tenant, -T |
| Environment Variable | DUPLO_TENANT |
| Type | str |
| Required | False |
| Default | None |
TENANT_ID
module-attribute
Tenant ID
Scopes the command into the specified tenant. This is the internal id of the tenant. If this is set, TENANT name argument is ignored.
| Help |
The tenant id
|
|---|---|
| Flags | --tenantid, --tenant-id, --tid |
| Environment Variable | DUPLO_TENANT_ID |
| Type | str |
| Required | False |
| Default | None |
PLAN
module-attribute
Plan Name
Scopes the command to a specific infrastructure plan.
| Help |
The plan name.
|
|---|---|
| Flags | --plan, -P |
| Environment Variable | DUPLO_PLAN |
| Type | str |
| Required | False |
| Default | None |
BODY
module-attribute
File Body
This is the file path to a file with the specified resource's body within. Each Resource will have its own schema for the body. This is a YAML/JSON file that will be parsed and used as the body of the request. View the docs for each individual resource to see the schema for the body.
| Help |
A file to read the input from
|
|---|---|
| Flags | --file, -f, --cli-input |
| Type | FileType('r') |
| Action | YamlAction |
| Required | False |
| Default | None |
DATAMAP
module-attribute
| Help |
A file or literal value to add to the data map
|
|---|---|
| Flags | --fromfile, --from-file, --from-literal |
| Type | str |
| Action | DataMapAction |
| Required | False |
| Default | None |
DRYRUN
module-attribute
| Help |
Do not submit any changes to the server, just print the data to the console.
|
|---|---|
| Flags | --dryrun, --dry-run |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
ARN
module-attribute
| Help |
The aws arn
|
|---|---|
| Flags | --aws-arn, --arn |
| Type | str |
| Required | False |
| Default | None |
INTERACTIVE
module-attribute
| Help |
Use interactive Login mode for temporary tokens. Do not use with --token.
|
|---|---|
| Flags | --interactive, -I |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
ISADMIN
module-attribute
| Help |
Request admin access when using interactive login.
|
|---|---|
| Flags | --admin, --isadmin |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
NOCACHE
module-attribute
| Help |
Do not use cache credentials.
|
|---|---|
| Flags | --no-cache, --nocache |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
BROWSER
module-attribute
Web Browser
This is the browser of choice to use for interactive login. This is simply using the python webbrowser module to open the browser. If you don't have a browser installed, you can use w3m or lynx for a text based browser.
| Help |
The desired web browser to use for interactive login
|
|---|---|
| Flags | --web-browser, --browser |
| Environment Variable | DUPLO_BROWSER |
| Type | str |
| Required | False |
| Default | None |
| Choices | chrome, chromium, firefox, safari, epiphany, edge, opera, konqueror, kfm, w3m, lynx |
OUTPUT
module-attribute
| Help |
The output format
|
|---|---|
| Flags | --output, -o |
| Environment Variable | DUPLO_OUTPUT |
| Type | str |
| Required | False |
| Default | None |
| Choices | env, yaml, csv, json, string |
QUERY
module-attribute
| Help |
The jmespath query to run on a result
|
|---|---|
| Flags | --query, -q |
| Type | str |
| Required | False |
| Default | None |
PATCHES
module-attribute
| Help |
The json patch to apply
|
|---|---|
| Flags | --patches, --add, --remove, --copy, --replace, --test, --move |
| Type | str |
| Action | JsonPatchAction |
| Required | False |
| Default | None |
EXCLUDE
module-attribute
| Help |
Exclude from the command
|
|---|---|
| Flags | --exclude, --exclude |
| Type | str |
| Action | append |
| Required | False |
| Default | None |
SERVICE
module-attribute
| Help |
The service to run
|
|---|---|
| Flags | service |
| Type | str |
| Required | False |
| Default | None |
| Choices | cloudfront, system, version, storageclass, service, cronjob, job, pod, asg, batch_compute, configmap, ai, batch_scheduling_policy, tenant, ingress, s3, hosts, pvc, secret, infrastructure, plan, batch_definition, lambda, ecs, ssm_param, batch_queue, aws_secret, batch_job, user, rds, jit |
COMMAND
module-attribute
| Help |
The subcommand to run
|
|---|---|
| Flags | command |
| Type | str |
| Required | False |
| Default | None |
NAME
module-attribute
| Help |
The resource name
|
|---|---|
| Flags | name |
| Type | str |
| Required | False |
| Default | None |
| Nargs | ? |
DISTRIBUTION_ID
module-attribute
| Help |
The distribution id
|
|---|---|
| Flags | distribution_id |
| Type | str |
| Required | False |
| Default | None |
| Nargs | ? |
IMAGE
module-attribute
| Help |
The image to use
|
|---|---|
| Flags | image |
| Type | str |
| Required | False |
| Default | None |
| Nargs | ? |
S3BUCKET
module-attribute
| Help |
The s3 bucket to use
|
|---|---|
| Flags | bucket |
| Type | str |
| Required | False |
| Default | None |
S3KEY
module-attribute
| Help |
The s3 key to use
|
|---|---|
| Flags | key |
| Type | str |
| Required | False |
| Default | None |
HEALTH_CHECK_URL
module-attribute
| Help |
The health check URL
|
|---|---|
| Flags | --health-check-url, --health-check-url |
| Type | str |
| Required | False |
| Default | None |
TO_REVISION
module-attribute
| Help |
The revision to rollback to
|
|---|---|
| Flags | --revision, --to-revision |
| Type | int |
| Required | False |
| Default | None |
CONTAINER_PORT
module-attribute
| Help |
Container port
|
|---|---|
| Flags | --container-port, --container-port |
| Type | str |
| Required | False |
| Default | None |
CONTAINER
module-attribute
| Help |
The container name
|
|---|---|
| Flags | --container, --container, -C |
| Type | str |
| Required | False |
| Default | None |
CONTAINER_IMAGE
module-attribute
| Help |
a key and value to set as a side-car container name and image
|
|---|---|
| Flags | --container-image, --container-image |
| Type | str |
| Action | append |
| Required | False |
| Default | None |
| Metavar | ('key', 'value') |
| Nargs | 2 |
INIT_CONTAINER_IMAGE
module-attribute
| Help |
a key and value to set as an init container name and image
|
|---|---|
| Flags | --init-container-image, --init-container-image |
| Type | str |
| Action | append |
| Required | False |
| Default | None |
| Metavar | ('key', 'value') |
| Nargs | 2 |
EXTERNAL_PORT
module-attribute
| Help |
The external port
|
|---|---|
| Flags | --external-port, --external-port |
| Type | str |
| Required | False |
| Default | None |
PROTOCOL
module-attribute
| Help |
The protocol
|
|---|---|
| Flags | --protocol, --protocol |
| Type | str |
| Required | False |
| Default | None |
| Choices | http, https, tcp, udp, tls |
LOAD_BALANCER_TYPE
module-attribute
| Help |
The type of load balancer. Valid options are [applicationlb, k8clusterip, k8nodeport, networklb, targetgrouponly].
|
|---|---|
| Flags | --lb-type, --lb-type |
| Type | str |
| Required | False |
| Default | None |
| Choices | applicationlb, k8clusterip, k8nodeport, networklb, targetgrouponly |
LOAD_BALANCER_VISIBILITY
module-attribute
| Help |
The visibility of load balancer. Valid options are "public" or "private". Default is public.
|
|---|---|
| Flags | --visibility, --visibility |
| Type | str |
| Required | False |
| Default | None |
| Choices | public, private |
LOAD_BALANCER_MODE
module-attribute
| Help |
The mode of load balancer. Valid options are "docker-mode" or "native-app". Default is docker-mode.
|
|---|---|
| Flags | --mode, --mode |
| Type | str |
| Required | False |
| Default | None |
| Choices | docker-mode, native-app |
SERVICEIMAGE
module-attribute
| Help |
takes two arguments, a service name and an image:tag
|
|---|---|
| Flags | --serviceimage, -S |
| Type | str |
| Action | append |
| Required | False |
| Default | None |
| Metavar | ('service', 'image') |
| Nargs | 2 |
SETVAR
module-attribute
| Help |
a key and value to set as an environment variable
|
|---|---|
| Flags | --setvar, -V |
| Type | str |
| Action | append |
| Required | False |
| Default | None |
| Metavar | ('key', 'value') |
| Nargs | 2 |
STRATEGY
module-attribute
| Help |
The merge strategy to use. Valid options are "merge" or "replace". Default is merge.
|
|---|---|
| Flags | --strategy, -strat |
| Type | str |
| Required | False |
| Default | None |
| Choices | merge, replace |
DELETEVAR
module-attribute
| Help |
a key to delete from the environment variables
|
|---|---|
| Flags | --deletevar, -D |
| Type | str |
| Action | append |
| Required | False |
| Default | None |
SCHEDULE
module-attribute
| Help |
The schedule to use
|
|---|---|
| Flags | --schedule, -s |
| Type | str |
| Required | False |
| Default | None |
CRONSCHEDULE
module-attribute
| Help |
The schedule to use
|
|---|---|
| Flags | cronschedule |
| Type | str |
| Required | False |
| Default | None |
ENABLE
module-attribute
| Help |
Enable or disable the feature
|
|---|---|
| Flags | --enable, -y |
| Type | bool |
| Action | BooleanOptionalAction |
| Required | False |
| Default | None |
MIN
module-attribute
| Help |
The minimum number of replicas
|
|---|---|
| Flags | --min, -m |
| Type | int |
| Required | False |
| Default | None |
MAX
module-attribute
| Help |
The maximum number of replicas
|
|---|---|
| Flags | --max, -M |
| Type | int |
| Required | False |
| Default | None |
REPLICAS
module-attribute
| Help |
Number of replicas for service
|
|---|---|
| Flags | --replicas, -r |
| Type | int |
| Required | False |
| Default | None |
WAIT
module-attribute
| Help |
Wait for the operation to complete
|
|---|---|
| Flags | --wait, -w |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
WAIT_TIMEOUT
module-attribute
| Help |
Wait timeout for the operation to complete
|
|---|---|
| Flags | --wait-timeout, --wait-timeout |
| Type | int |
| Required | False |
| Default | None |
ALL
module-attribute
| Help |
Boolean flag to select all. Defaults to False.
|
|---|---|
| Flags | --all, --all |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
SIZE
module-attribute
| Help |
The instance size to use
|
|---|---|
| Flags | size |
| Type | str |
| Required | False |
| Default | None |
SAVE_SECRET
module-attribute
| Help |
Save the secret to secrets manager.
|
|---|---|
| Flags | --save-secret, --save |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
PASSWORD
module-attribute
| Help |
The password to use
|
|---|---|
| Flags | password |
| Type | str |
| Required | False |
| Default | None |
INTERVAL
module-attribute
| Help |
The monitoring interval to use
|
|---|---|
| Flags | interval |
| Type | int |
| Required | False |
| Default | None |
| Choices | 1, 5, 10, 15, 30, 60 |
IMMEDIATE
module-attribute
| Help |
Apply the change immediately
|
|---|---|
| Flags | --immediate, -i |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
TARGET
module-attribute
| Help |
The target name to use
|
|---|---|
| Flags | --target, --target-name |
| Type | str |
| Required | False |
| Default | None |
TARGETS
module-attribute
| Help |
The list of targets
|
|---|---|
| Flags | --targets, --targets |
| Type | str |
| Required | False |
| Default | None |
| Nargs | + |
TIME
module-attribute
| Help |
The time to use
|
|---|---|
| Flags | --time, --time |
| Type | str |
| Required | False |
| Default | None |
TITLE
module-attribute
| Help |
The Title for ticket
|
|---|---|
| Flags | --title, --title |
| Type | str |
| Required | True |
| Default | None |
AGENTNAME
module-attribute
| Help |
AI Agent to be used to process the ticket
|
|---|---|
| Flags | --agent_name, --agent_name, --agent |
| Type | str |
| Required | True |
| Default | None |
INSTANCEID
module-attribute
| Help |
AI Agent Instance Id
|
|---|---|
| Flags | --instance_id, --instance_id, --instance |
| Type | str |
| Required | True |
| Default | None |
APIVERSION
module-attribute
| Help |
API Version
|
|---|---|
| Flags | --api_version, --api-version |
| Type | str |
| Required | False |
| Default | None |
TICKETID
module-attribute
| Help |
The ID of the AI HelpDesk ticket
|
|---|---|
| Flags | --ticket_id, --ticket_id, --ticket |
| Type | str |
| Required | True |
| Default | None |
MESSAGE
module-attribute
| Help |
The message you want to send to the AI agent
|
|---|---|
| Flags | --message, --content, --msg, --message |
| Type | str |
| Required | False |
| Default | None |
DAYS
module-attribute
| Help |
The days to use
|
|---|---|
| Flags | days |
| Type | int |
| Required | False |
| Default | None |
CONTENT_DIR
module-attribute
| Help |
The content directory for a website.
|
|---|---|
| Flags | --content, --content-dir |
| Environment Variable | DUPLO_CONTENT |
| Type | str |
| Required | False |
| Default | None |
SSM_PARAM_TYPE
module-attribute
| Help |
The type of parameter to create
|
|---|---|
| Flags | --parametertype, -ptype |
| Type | str |
| Required | False |
| Default | None |
| Choices | String, StringList, SecureString |
CONTENT
module-attribute
| Help |
Arbitrary text to add as the content of some secret or configuration paramater.
|
|---|---|
| Flags | --parametervalue, -pval, -val, --value |
| Type | str |
| Required | False |
| Default | None |
SHOW_SENSITIVE
module-attribute
| Help |
Return sensitive values to output. WARNING - ENABLING THIS SETTING MAY DISPLAY SENSITIVE DATA TO STDOUT/LOG FILES
|
|---|---|
| Flags | --showsensitive, -show |
| Type | bool |
| Action | store_true |
| Required | False |
| Default | None |
BATCH_QUEUE
module-attribute
| Help |
The name of a Batch Queue
|
|---|---|
| Flags | --queue, -BQ, -bq, --batch-queue |
| Environment Variable | DUPLO_BATCH_QUEUE |
| Type | str |
| Required | False |
| Default | None |
ALLOCATION_TAGS
module-attribute
| Help |
Allocation tag used to specify custom allocation rules
|
|---|---|
| Flags | allocationtags |
| Type | str |
| Required | False |
| Default | None |