Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Audience: Immuta users
Content Summary: The Immuta CLI allows users to interact with their Immuta tenant using the command line to manage data sources, projects, policies, and purposes. This feature allows you to have all of your Immuta tenant information in a Git repository and use the CLI to sync your Immuta tenant with the files in your Git repository. To install the Immuta CLI, follow this installation guide.
You can navigate this section of documentation in two different ways: by workflow or by command.
The navigation in the left pane is organized by major workflows you would use in Immuta. Each workflow contains relevant commands. Follow this chronological outline to find commands relevant to your workflow.
Below is a list of major commands available in the Immuta CLI. Click a command to navigate to its corresponding page that details subcommands, options, and arguments.
immuta
: Interact with your Immuta tenant to create data sources, projects, policies, and purposes.
immuta api
: Make an authenticated Immuta API request. This command will let you hit any endpoint in the Immuta API, including version 1 endpoints. For example, immuta api /tag
will hit the v1 endpoint to list tags. This allows you to use the immuta api
command instead of something like Postman or cURL to interact with the V1 API.
immuta clone
: Clone all data sources, projects, purposes, and policies information into files.
immuta completion
: Generate shell completion scripts.
immuta configure
: Specify an Immuta tenant url and API key to be saved to the Immuta configuration file.
immuta datasource
: Manage data sources.
immuta policy
: Manage Global Policies.
immuta project
: Manage projects.
immuta purpose
: Manage purposes.
Audience: Immuta users
Content Summary: This page details how to install the Immuta CLI and tab completions.
macOS CLI Binary Warning: When installing the macOS CLI binary, macOS displays the warning "could not verify that this app is free from malware" when the binary is run. Navigate to the Security & Privacy section in your System Preferences to allow the binary to be run.
Download the binary that corresponds to your operating system.
The latest stable binaries can be found here:
Linux x86_64 (amd64)
Linux ARMv8 (arm64)
The latest stable binaries can be found here:
Darwin x86_64 (amd64)
Darwin ARMv8 (arm64)
The latest stable binary can be found here: https://immuta-platform-artifacts.s3.amazonaws.com/cli/latest/immuta_cli_windows_amd64.
Download and add the binary to a directory in your system's $PATH as immuta.exe
.
The SHA 256 checksum is available to verify the file at https://immuta-platform-artifacts.s3.amazonaws.com/cli/latest/immuta_cli_SHA256SUMS.
Run immuta configure
.
Enter the URL of your Immuta tenant in the interactive prompt.
Enter your Immuta API Key in the interactive prompt:
Below is the configuration file that will be saved at ~/.immutacfg.yaml
:
To generate shell completion scripts for Immuta CLI commands, run immuta completion [bash|zsh|fish|powershell]
. You can opt to specify -h
or --help
for instructions on installing tab completions for Bash, Zsh, Fish, and PowerShell commands and flags.
Use the tabs below for specific instructions for each of these shells.
Install bash-completion https://github.com/scop/bash-completion.
Add this to your ~/.bash_profile
:
Generate an _immuta
completion script and save it in your $fpath
:
Ensure that the following is present in your ~/.zshrc
:
Generate an immuta.fish
completion script:
Run immuta completion powershell | Out-String | Invoke-Expression
.
To load completions for every new session, run
Source this immuta.ps1
from your PowerShell profile.
The exact configuration file locations might vary based on your system. Make sure to restart your shell before you test whether completions are working.