Registry Mirror
Skip to content

Repository files navigation

intuitive

A full-screen terminal editor for Infisical secrets, in the style of the Doppler TUI.

  • Environments and Projects on the left, Secrets on the right, Status and Filter at the bottom.
  • Every secret of an environment is listed under its folder path. Filter the list by path.
  • Values are masked. Press v to reveal the value under the cursor.
  • Press y to copy the path, name or value of a secret.
  • Add, edit, move and delete secrets as pending changes. Press s to review them and sync them to Infisical.
  • The initial project and environment come from .infisical.yaml or .infisical.json, as for the Infisical CLI.

Requirements

  • The Infisical CLI, signed in with infisical login. intuitive reads the CLI's session with infisical login status --json and infisical user get token. It doesn't sign in by itself. It was tested with CLI version 0.45.15.
  • macOS or Linux.
  • To copy with y: pbcopy on macOS, or wl-copy or xclip on Linux.

Install

With the install script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/makesometh-ing/intuitive/releases/latest/download/intuitive-installer.sh | sh

The script downloads the binary for your platform from the latest release and installs it to $CARGO_HOME/bin, which is ~/.cargo/bin by default. It adds that directory to your PATH in your shell profile when it isn't there yet.

From a release archive

  1. Download the archive for your platform from the latest release:
    • intuitive-aarch64-apple-darwin.tar.xz for Apple silicon Macs
    • intuitive-x86_64-apple-darwin.tar.xz for Intel Macs
    • intuitive-x86_64-unknown-linux-gnu.tar.xz or intuitive-aarch64-unknown-linux-gnu.tar.xz for Linux
  2. Check the archive against its .sha256 file.
  3. Extract it, and move intuitive to a directory in your PATH.

With Cargo

cargo install --locked --git https://github.com/makesometh-ing/intuitive

Use

intuitive

Run it in a directory linked to an Infisical project to start in that project. Otherwise the first project is selected. Press ? for every shortcut, and q to quit.

Key Action
1, 2, 3 Focus Environments, Projects or Secrets
j / k Move down or up
Enter Select a project or environment, or filter by the path row under the cursor
h / l Focus the path, name or value box of the secret under the cursor
y Copy the full text of the focused box
v Reveal or mask the value under the cursor
a Add a secret
e Edit the path, name and value of the secret under the cursor
d Delete the secret under the cursor at the next sync
u Undo the pending change of the secret under the cursor
s Review the pending changes and sync them
/ Type a path to filter by
? Help
q Quit

Change secrets

a and e open a pop-over with the Path, Name and Value fields. Move between the fields with Tab and Shift-Tab, Down and Up, or Ctrl-J and Ctrl-K. Enter saves the pop-over as a pending change. Esc closes it without a change.

  • A pending change is marked in the Secrets pane: + for an add, ~ for an edit and - for a delete. Infisical isn't changed until the sync.
  • s lists the pending changes without their values. Enter sends them to Infisical in the order they were made. A failed change stays pending, and the Status pane shows the server error.
  • Pending changes are kept in memory only. Before you select a different project or environment, or quit, intuitive asks to sync or discard them.
  • Enter can't be typed in a field. In the Value field, \n is a newline and \\ is a backslash. Pasted text is inserted as it is, and its newlines are shown as \n.
  • A missing folder is created when a secret is added or moved to it.
  • A rename keeps the version history of the secret. A move to a different path creates a new secret at that path, with its own version history. The history of the original secret isn't moved.
  • Secret references such as ${OTHER_KEY} are saved as they are typed.

The initial selection follows the rules of the Infisical CLI:

  • The project comes from INFISICAL_PROJECT_ID, then the nearest .infisical.yaml or .infisical.json in the current directory or a parent directory.
  • The environment comes from INFISICAL_ENVIRONMENT, then the Git branch override in the file, then the default environment in the file, then dev.

Build from source

Install a current stable Rust toolchain with rustup, then:

cargo build --release
cargo test

The binary is target/release/intuitive. The tests run the compiled binary in a pseudo-terminal with a test Infisical CLI and a test HTTP server. They don't need an Infisical account or network access.

Release

Releases are built by dist in GitHub Actions.

  1. Set version in Cargo.toml, for example 0.2.0, and commit it.
  2. Push a tag with the same version: git tag v0.2.0 && git push origin v0.2.0.

The workflow builds the four platform archives and the install script, and publishes them as a GitHub release for the tag.

License

AGPL-3.0

About

A full-screen Infisical secret browser for the terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages