|
| 1 | +# `infrahubctl branch` |
| 2 | + |
| 3 | +Manage the branches in a remote Infrahub instance. |
| 4 | + |
| 5 | +List, create, merge, rebase .. |
| 6 | + |
| 7 | +**Usage**: |
| 8 | + |
| 9 | +```console |
| 10 | +$ infrahubctl branch [OPTIONS] COMMAND [ARGS]... |
| 11 | +``` |
| 12 | + |
| 13 | +**Options**: |
| 14 | + |
| 15 | +* `--install-completion`: Install completion for the current shell. |
| 16 | +* `--show-completion`: Show completion for the current shell, to copy it or customize the installation. |
| 17 | +* `--help`: Show this message and exit. |
| 18 | + |
| 19 | +**Commands**: |
| 20 | + |
| 21 | +* `create`: Create a new branch. |
| 22 | +* `delete`: Delete a branch. |
| 23 | +* `list`: List all existing branches. |
| 24 | +* `merge`: Merge a Branch with main. |
| 25 | +* `rebase`: Rebase a Branch with main. |
| 26 | +* `validate`: Validate if a branch has some conflict and... |
| 27 | + |
| 28 | +## `infrahubctl branch create` |
| 29 | + |
| 30 | +Create a new branch. |
| 31 | + |
| 32 | +**Usage**: |
| 33 | + |
| 34 | +```console |
| 35 | +$ infrahubctl branch create [OPTIONS] BRANCH_NAME |
| 36 | +``` |
| 37 | + |
| 38 | +**Arguments**: |
| 39 | + |
| 40 | +* `BRANCH_NAME`: Name of the branch to create [required] |
| 41 | + |
| 42 | +**Options**: |
| 43 | + |
| 44 | +* `--description TEXT`: Description of the branch |
| 45 | +* `--sync-with-git / --no-sync-with-git`: Extend the branch to Git and have Infrahub create the branch in connected repositories. [default: no-sync-with-git] |
| 46 | +* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml] |
| 47 | +* `--help`: Show this message and exit. |
| 48 | + |
| 49 | +## `infrahubctl branch delete` |
| 50 | + |
| 51 | +Delete a branch. |
| 52 | + |
| 53 | +**Usage**: |
| 54 | + |
| 55 | +```console |
| 56 | +$ infrahubctl branch delete [OPTIONS] BRANCH_NAME |
| 57 | +``` |
| 58 | + |
| 59 | +**Arguments**: |
| 60 | + |
| 61 | +* `BRANCH_NAME`: [required] |
| 62 | + |
| 63 | +**Options**: |
| 64 | + |
| 65 | +* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml] |
| 66 | +* `--help`: Show this message and exit. |
| 67 | + |
| 68 | +## `infrahubctl branch list` |
| 69 | + |
| 70 | +List all existing branches. |
| 71 | + |
| 72 | +**Usage**: |
| 73 | + |
| 74 | +```console |
| 75 | +$ infrahubctl branch list [OPTIONS] |
| 76 | +``` |
| 77 | + |
| 78 | +**Options**: |
| 79 | + |
| 80 | +* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml] |
| 81 | +* `--help`: Show this message and exit. |
| 82 | + |
| 83 | +## `infrahubctl branch merge` |
| 84 | + |
| 85 | +Merge a Branch with main. |
| 86 | + |
| 87 | +**Usage**: |
| 88 | + |
| 89 | +```console |
| 90 | +$ infrahubctl branch merge [OPTIONS] BRANCH_NAME |
| 91 | +``` |
| 92 | + |
| 93 | +**Arguments**: |
| 94 | + |
| 95 | +* `BRANCH_NAME`: [required] |
| 96 | + |
| 97 | +**Options**: |
| 98 | + |
| 99 | +* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml] |
| 100 | +* `--help`: Show this message and exit. |
| 101 | + |
| 102 | +## `infrahubctl branch rebase` |
| 103 | + |
| 104 | +Rebase a Branch with main. |
| 105 | + |
| 106 | +**Usage**: |
| 107 | + |
| 108 | +```console |
| 109 | +$ infrahubctl branch rebase [OPTIONS] BRANCH_NAME |
| 110 | +``` |
| 111 | + |
| 112 | +**Arguments**: |
| 113 | + |
| 114 | +* `BRANCH_NAME`: [required] |
| 115 | + |
| 116 | +**Options**: |
| 117 | + |
| 118 | +* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml] |
| 119 | +* `--help`: Show this message and exit. |
| 120 | + |
| 121 | +## `infrahubctl branch validate` |
| 122 | + |
| 123 | +Validate if a branch has some conflict and is passing all the tests (NOT IMPLEMENTED YET). |
| 124 | + |
| 125 | +**Usage**: |
| 126 | + |
| 127 | +```console |
| 128 | +$ infrahubctl branch validate [OPTIONS] BRANCH_NAME |
| 129 | +``` |
| 130 | + |
| 131 | +**Arguments**: |
| 132 | + |
| 133 | +* `BRANCH_NAME`: [required] |
| 134 | + |
| 135 | +**Options**: |
| 136 | + |
| 137 | +* `--config-file TEXT`: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml] |
| 138 | +* `--help`: Show this message and exit. |
0 commit comments