@hotglue/cli
v1.1.14
Published
hotglue CLI tools
Readme
@hotglue/cli 
The hotglue Command Line Interface (CLI)
Table of Contents
Installation
You can install the CLI globally (recommended) using
npm install -g @hotglue/cliAnd then you can run it from anywhere using
hotglue --helpAlternatively, you may install it locally in a project folder using
npm install --save-dev @hotglue/cliAnd then you can run the local installation from within that folder using
npx hotglue --helpUsage
Usage: hotglue <command>
Commands:
hotglue config View global CLI settings (ie. apikey)
hotglue config set Configure global CLI settings (ie. apikey)
hotglue env list List accessible environments
hotglue env download Download environment settings (ie. requirements.txt)
hotglue env deploy Deploy environment settings (ie. requirements.txt)
hotglue etl download Download ETL script files
hotglue etl deploy Deploy ETL script files
hotglue snapshots download Download snapshot files
hotglue snapshots deploy Deploy snapshot files
hotglue flows list List flows for a given environment
hotglue jobs list List all jobs for a given flow
hotglue jobs logs Get logs for a job
hotglue jobs download Download jobroot files to the specified location
hotglue supported-entities get Get a supported entity and its connection parameters
hotglue supported-entities create Create a supported entity
hotglue linked-entities create Link an entity for a tenant
hotglue tenants list List the tenants in the environment
Options:
-k, --apikey Your API Key [string]
-e, --environment Environment ID [string]
-f, --flow Flow ID [string]
-t, --tap Tap ID [string]
-u, --tenant Tenant ID [string]
-j, --jobroot A job root path [string]
-d, --downwloadTo The target download location [string]
-s, --sourceFolder The source directory [string]
-o, --overwrite Overwrite existing files? [boolean]
--include-secrets Include environment API keys [boolean]
-v, --version Show version number [boolean]
-h, --help Show help [boolean]List environments
List the environments available to the configured Personal API Key. This command does not require an environment ID.
hotglue env list
hotglue env list --jsonEnvironment API keys are omitted by default. Use --include-secrets to include them in the output.
hotglue env list --include-secretsSecret-enabled output uses publicApiKey, personalApiKey, and environmentApiKey. It may contain your Personal API Key, so do not expose it in logs, CI output, or shared terminals.
Supported entities
Get a supported entity, including its connect_ui_params:
hotglue supported-entities get --flow my-flow --id s3 --jsonCreating a supported entity also returns the entity and its connection parameters:
hotglue supported-entities create --flow my-flow --id s3 --jsonLink an entity
Linking defaults to a connector on a v2 flow:
hotglue linked-entities create --flow my-flow --tenant my-tenant --id s3 --config '{"bucket":"orders"}'Use --entity-type source|target and --flow-version v1|v2 for other entity types and flow versions.
Configuration
The hotglue CLI derives its configuration from two places: the User/Profile settings and the Project settings.
The User settings are stored in a config.yaml file located at $HOME/.hotglue/. At the moment, it is only used to store your apikey.
The Project settings are stored in a hotglue rc-like file and can be created anywhere in your project's folder structure. A Project settings file can hold any of the CLI's parameters (including overriding the apikey, even though we do not recommend it) is used in order to define configuration values specific for that context
Project configuration files
The configuration files can use any of the following names:
hotglue.yaml, .hotglue.yaml, .hotgluerc.yaml, .hotgluerc.yml, .hotgluerc, .hotgluerc.json, .hotgluerc.js
As the extensions suggest, the files support either yaml, json or js syntax (in case of JS, the config object has to be exported). However, we recommend using the yaml format.
Additional info
- When deploying files, symbolic links are not followed.
