Init
hth init <URL> creates a local directory. To interactively create the local directory, run hth init without a URL.
Commands
There are no commands available for hth init <URL>.
Flags
| Flags | Description |
|---|---|
| -c or --company | Set the company ID. |
| -d or --depot | Set the depot. |
| -f or --filename | Set the manifest repository filename. |
| -i or --instance | Set the Helix TeamHub instance URL. |
| --password | Set the password. |
| -p or --project | Set the project ID. |
| --ref | Set the manifest repository reference. |
| -r or --repository | Set the manifest repository ID. |
| -u or --user | Set the user ID. |
Usage example
With a URL:
hth init <URL>
Without a URL:
hth init
hth-cli will:
- request the instance name
- request the company name
- use the active session if there is one. If there is no active session, hth-cli requests your log in details.
- offer to store the instance and company in the global config
- request the project name
- request the manifest repository with the option to create a new one:
- Existing repository selected, hth-cli will:
- fetch the manifest repository data including the clone_url
- clone the manifest repository
- New repository selected, hth-cli will:
- request a new short name
- request the manifest property
- generate the manifest flag
- clone the manifest repository
- Existing repository selected, hth-cli will:
- To edit the manifest, run hth manifest edit
- To commit the changes and upload to Helix TeamHub, run hth manifest upload






