CLI
laktory.cli.app
¤
laktory.cli.preview
¤
preview(environment=None, filepath='./stack.yaml', options=None)
Validate configuration and resources and preview deployment.
PARAMETER | DESCRIPTION |
---|---|
environment |
Name of the environment.
TYPE:
|
filepath |
Stack (yaml) filepath.
TYPE:
|
options |
Comma separated IaC backend options (flags).
TYPE:
|
Examples:
laktory preview --env dev pulumi_options "--show-reads,--show-config"
Source code in laktory/cli/_preview.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
laktory.cli.deploy
¤
deploy(environment=None, filepath='./stack.yaml', auto_approve=False, options=None)
Execute deployment.
PARAMETER | DESCRIPTION |
---|---|
environment |
Name of the environment.
TYPE:
|
filepath |
Stack (yaml) filepath.
TYPE:
|
auto_approve |
Automatically approve and perform the update after previewing it
TYPE:
|
options |
Comma separated IaC backend options (flags).
TYPE:
|
Examples:
laktory deploy --env dev --filepath my-stack.yaml
Source code in laktory/cli/_deploy.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|
laktory.cli.run
¤
run(job=None, dlt=None, timeout=1200, raise_exception=True, full_refresh=False, current_run_action='WAIT', environment=None, filepath='./stack.yaml')
Execute remote job or DLT pipeline and monitor failures until completion.
PARAMETER | DESCRIPTION |
---|---|
job |
Name of the job to run (mutually exclusive with dlt)
TYPE:
|
dlt |
Name of the DLT pipeline to run (mutually exclusive with job)
TYPE:
|
timeout |
Maximum allowed time (in seconds) for run.
TYPE:
|
raise_exception |
Raise exception on failure
TYPE:
|
current_run_action |
Action to take for currently running job or pipline.
TYPE:
|
full_refresh |
Full tables refresh (pipline only)
TYPE:
|
environment |
Name of the environment.
TYPE:
|
filepath |
Stack (yaml) filepath.
TYPE:
|
Examples:
laktory run --env dev --dlt pl-stock-prices --full_refresh --action CANCEL
Source code in laktory/cli/_run.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|