hdxcli


Namehdxcli JSON
Version 1.0.81 PyPI version JSON
download
home_pageNone
SummaryHydrolix command line utility to do CRUD operations on projects, tables, transforms and other resources in Hydrolix clusters
upload_time2025-07-22 12:37:56
maintainerAgustin Actis
docs_urlNone
authorGerman Diago Gomez
requires_python<4.0,>=3.10
licenseApache-2.0
keywords database bigdata hydrolix
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![](images/hdxcli.png)](https://github.com/hydrolix/hdx-cli)


`hdxcli` is the command-line tool to work with your Hydrolix clusters. It helps you manage resources like projects, tables, and Service Accounts. You can use it to automate tasks and include Hydrolix in your scripts and workflows.


## System Requirements
- Python: `>= 3.10`

Make sure you have the correct Python version installed.

## Installation
You can install hdxcli using pip:
```shell
  pip install hdxcli
```

# First Steps: Initial Setup
When you run your first `hdxcli` command (for example, `hdxcli project list`), if the CLI does not find a previous setup, it will guide you to create a 'default' connection profile. You will need to enter:

1. The **hostname** of your Hydrolix cluster (e.g., `mycluster.hydrolix.live`).
2. If the connection will use **TLS (https)** (recommended).

After setting up the profile, you will be asked to log in with your Hydrolix **username and password**. After a successful login, you can choose how the CLI will authenticate for future operations:

- Continue using your user credentials.
- Set up the CLI to use a **Service Account**. This is useful for longer sessions or for automated scripts.

You can also start this setup process yourself by running:
```shell
  hdxcli init
```
This command is good if you prefer to set up the CLI before running other commands.

## General Usage
The main way to use commands is:

`hdxcli [GLOBAL OPTIONS] RESOURCE [ACTION] [SPECIFIC ARGUMENTS...]`

For example, `hdxcli project list` or `hdxcli table --project myproject create mytable`

### Common Global Options (see hdxcli --help for all options):
- `--profile PROFILE_NAME`: Use a specific connection profile.
- `--username USERNAME`: Username for login (if needed).
- `--password PASSWORD`: Password for login (if `--username` is used).
- `--uri-scheme [http|https]</var>`: Choose the connection scheme (http or https).
- `--timeout SECONDS`: Timeout for API requests.

- ### Connection Profiles
Profiles let you save settings for different Hydrolix clusters or users.

- List profiles: `hdxcli profile list`
- View details of the 'default' profile: `hdxcli profile show default`
- Use a profile in a command: `hdxcli --profile my_other_profile project list`

### Default Project and Table Context
To make commands simpler, you can set a "current" or "default" project and table.

- Set default project and table:
    ```shell
    hdxcli set <project-name> <table-name>
    ```
    Example: `hdxcli set weblogs access_logs`

- After setting defaults, commands for tables or transforms will not need `--project` or `--table` options:
    ```shell
    hdxcli transform show my_transform # Will use project and table set by 'set' command
    ```

- Clear default project and table:
    ```shell
    hdxcli unset
    ```
  
## Main Commands (Summary)
`hdxcli` commands are grouped by the type of resource they manage. Use `hdxcli --help` to see all commands. Some of the main groups are:

- `profile`: Manage your connection profiles.
- `init`: Initialize `hdxcli` configuration.
- `set` / `unset`: Set or clear the default project/table.
- `project`: Create, list, delete, and manage projects.
- `table`: Manage tables inside projects.
- `transform`: Manage transforms.
- `service-account`: Manage Service Accounts and their tokens.
- `job`: Manage ingestion jobs.
- (Other important groups like `dictionary`, `function`, `storage`, etc.)
- `version`: Show the `hdxcli` version.

To get help for a specific command group or command:
```shell
    hdxcli project --help
    hdxcli project create --help
```

### Usage Examples
1. Set up the CLI, log in, and list projects:
    ```shell
    $ hdxcli init
    # ... follow prompts to set up hostname, scheme, and login ...
    # ... optionally, set up a Service Account ...
    
    $ hdxcli project list
    project_a
    project_b
    ```

2. Create a new project and then a table:
    ```shell
    $ hdxcli project create my_new_project
    Created project 'my_new_project'
    
    $ hdxcli table --project my_new_project create my_new_table
    Created table 'my_new_table'
    ```

3. Set a default context and show transform details:
    ```shell
    $ hdxcli set my_new_project my_new_table
    Profile 'default' set project/table
    
    $ hdxcli transform show my_existing_transform
    # ... (output of the transform) ...
    ```

4. Show project information in indented JSON format:
    ```shell
    $ hdxcli project show my_new_project -i
    {
        "name": "my_new_project",
        "org_id": "xxxx-xxxx-xxxx-xxxx",
        ...
    }
    ```
### Getting Help
- For an overview of commands: `hdxcli --help`
- For help on a specific resource or action: `hdxcli <resource> --help` or `hdxcli <resource> <action> --help`
- For more in-depth information, check out the [official Hydrolix documentation](https://docs.hydrolix.io/docs/hdxcli).

## License

[![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)

This project is licensed under the terms of the **Apache License 2.0**.
You can find a copy of the license in the [LICENSE](LICENSE) file included in this repository.
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "hdxcli",
    "maintainer": "Agustin Actis",
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": "agustin@hydrolix.io",
    "keywords": "database, bigdata, hydrolix",
    "author": "German Diago Gomez",
    "author_email": "german@hydrolix.io",
    "download_url": "https://files.pythonhosted.org/packages/d2/67/60eea177ff171d540e31d539947babe25f39dd9a50b8151f0f5522d7d25d/hdxcli-1.0.81.tar.gz",
    "platform": null,
    "description": "[![](images/hdxcli.png)](https://github.com/hydrolix/hdx-cli)\n\n\n`hdxcli` is the command-line tool to work with your Hydrolix clusters. It helps you manage resources like projects, tables, and Service Accounts. You can use it to automate tasks and include Hydrolix in your scripts and workflows.\n\n\n## System Requirements\n- Python: `>= 3.10`\n\nMake sure you have the correct Python version installed.\n\n## Installation\nYou can install hdxcli using pip:\n```shell\n  pip install hdxcli\n```\n\n# First Steps: Initial Setup\nWhen you run your first `hdxcli` command (for example, `hdxcli project list`), if the CLI does not find a previous setup, it will guide you to create a 'default' connection profile. You will need to enter:\n\n1. The **hostname** of your Hydrolix cluster (e.g., `mycluster.hydrolix.live`).\n2. If the connection will use **TLS (https)** (recommended).\n\nAfter setting up the profile, you will be asked to log in with your Hydrolix **username and password**. After a successful login, you can choose how the CLI will authenticate for future operations:\n\n- Continue using your user credentials.\n- Set up the CLI to use a **Service Account**. This is useful for longer sessions or for automated scripts.\n\nYou can also start this setup process yourself by running:\n```shell\n  hdxcli init\n```\nThis command is good if you prefer to set up the CLI before running other commands.\n\n## General Usage\nThe main way to use commands is:\n\n`hdxcli [GLOBAL OPTIONS] RESOURCE [ACTION] [SPECIFIC ARGUMENTS...]`\n\nFor example, `hdxcli project list` or `hdxcli table --project myproject create mytable`\n\n### Common Global Options (see hdxcli --help for all options):\n- `--profile PROFILE_NAME`: Use a specific connection profile.\n- `--username USERNAME`: Username for login (if needed).\n- `--password PASSWORD`: Password for login (if `--username` is used).\n- `--uri-scheme [http|https]</var>`: Choose the connection scheme (http or https).\n- `--timeout SECONDS`: Timeout for API requests.\n\n- ### Connection Profiles\nProfiles let you save settings for different Hydrolix clusters or users.\n\n- List profiles: `hdxcli profile list`\n- View details of the 'default' profile: `hdxcli profile show default`\n- Use a profile in a command: `hdxcli --profile my_other_profile project list`\n\n### Default Project and Table Context\nTo make commands simpler, you can set a \"current\" or \"default\" project and table.\n\n- Set default project and table:\n    ```shell\n    hdxcli set <project-name> <table-name>\n    ```\n    Example: `hdxcli set weblogs access_logs`\n\n- After setting defaults, commands for tables or transforms will not need `--project` or `--table` options:\n    ```shell\n    hdxcli transform show my_transform # Will use project and table set by 'set' command\n    ```\n\n- Clear default project and table:\n    ```shell\n    hdxcli unset\n    ```\n  \n## Main Commands (Summary)\n`hdxcli` commands are grouped by the type of resource they manage. Use `hdxcli --help` to see all commands. Some of the main groups are:\n\n- `profile`: Manage your connection profiles.\n- `init`: Initialize `hdxcli` configuration.\n- `set` / `unset`: Set or clear the default project/table.\n- `project`: Create, list, delete, and manage projects.\n- `table`: Manage tables inside projects.\n- `transform`: Manage transforms.\n- `service-account`: Manage Service Accounts and their tokens.\n- `job`: Manage ingestion jobs.\n- (Other important groups like `dictionary`, `function`, `storage`, etc.)\n- `version`: Show the `hdxcli` version.\n\nTo get help for a specific command group or command:\n```shell\n    hdxcli project --help\n    hdxcli project create --help\n```\n\n### Usage Examples\n1. Set up the CLI, log in, and list projects:\n    ```shell\n    $ hdxcli init\n    # ... follow prompts to set up hostname, scheme, and login ...\n    # ... optionally, set up a Service Account ...\n    \n    $ hdxcli project list\n    project_a\n    project_b\n    ```\n\n2. Create a new project and then a table:\n    ```shell\n    $ hdxcli project create my_new_project\n    Created project 'my_new_project'\n    \n    $ hdxcli table --project my_new_project create my_new_table\n    Created table 'my_new_table'\n    ```\n\n3. Set a default context and show transform details:\n    ```shell\n    $ hdxcli set my_new_project my_new_table\n    Profile 'default' set project/table\n    \n    $ hdxcli transform show my_existing_transform\n    # ... (output of the transform) ...\n    ```\n\n4. Show project information in indented JSON format:\n    ```shell\n    $ hdxcli project show my_new_project -i\n    {\n        \"name\": \"my_new_project\",\n        \"org_id\": \"xxxx-xxxx-xxxx-xxxx\",\n        ...\n    }\n    ```\n### Getting Help\n- For an overview of commands: `hdxcli --help`\n- For help on a specific resource or action: `hdxcli <resource> --help` or `hdxcli <resource> <action> --help`\n- For more in-depth information, check out the [official Hydrolix documentation](https://docs.hydrolix.io/docs/hdxcli).\n\n## License\n\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)\n\nThis project is licensed under the terms of the **Apache License 2.0**.\nYou can find a copy of the license in the [LICENSE](LICENSE) file included in this repository.",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Hydrolix command line utility to do CRUD operations on projects, tables, transforms and other resources in Hydrolix clusters",
    "version": "1.0.81",
    "project_urls": null,
    "split_keywords": [
        "database",
        " bigdata",
        " hydrolix"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "612c5072b782cf11a13e600652ecd3163eef770e42cacfcbabbd836ab8d9838f",
                "md5": "a3886e9bdfa18ffd685974a9fb13d0b3",
                "sha256": "947b41ea9648fc40c2843a678b2e1f25a7d9dcc336218c42be53fcdd67634782"
            },
            "downloads": -1,
            "filename": "hdxcli-1.0.81-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3886e9bdfa18ffd685974a9fb13d0b3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 158870,
            "upload_time": "2025-07-22T12:37:54",
            "upload_time_iso_8601": "2025-07-22T12:37:54.853066Z",
            "url": "https://files.pythonhosted.org/packages/61/2c/5072b782cf11a13e600652ecd3163eef770e42cacfcbabbd836ab8d9838f/hdxcli-1.0.81-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d26760eea177ff171d540e31d539947babe25f39dd9a50b8151f0f5522d7d25d",
                "md5": "6b055db5d6010b183e2459989c113372",
                "sha256": "51faecd30fa09ef8752ef4ccb6c1f9aaafd093a5ac8d93ee052779e3bc73f90b"
            },
            "downloads": -1,
            "filename": "hdxcli-1.0.81.tar.gz",
            "has_sig": false,
            "md5_digest": "6b055db5d6010b183e2459989c113372",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 107369,
            "upload_time": "2025-07-22T12:37:56",
            "upload_time_iso_8601": "2025-07-22T12:37:56.389638Z",
            "url": "https://files.pythonhosted.org/packages/d2/67/60eea177ff171d540e31d539947babe25f39dd9a50b8151f0f5522d7d25d/hdxcli-1.0.81.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-22 12:37:56",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "hdxcli"
}
        
Elapsed time: 1.24540s