Skip to content

gravitir/secretify-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secretify CLI

Installing Secretify CLI on Linux

Step 1: Download Secretify binary with curl

Download the latest release of Secretify for Linux using the following command:

curl -LO "https://www.secretify.io/release/bin/linux/amd64/secretify"

Step 2: Validate the binary (optional)

Download the secretify checksum file:

curl -LO "https://www.secretify.io/release/bin/linux/amd64/secretify.sha256"

Validate the secretify binary against the checksum file:

echo "$(cat secretify.sha256) secretify" | sha256sum --check

If valid, the output is:

secretify: OK

If the check fails, sha256 exits with nonzero status and prints output similar to:

secretify: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match

Step 3: Install secretify

To install Secretify system-wide, use the following command:

sudo install -o root -g root -m 0755 secretify /usr/local/bin/secretify

If you do not have root access on the target system, you can still install secretify to the ~/.local/bin directory:

chmod +x secretify
mkdir -p ~/.local/bin
mv ./secretify ~/.local/bin/secretify
# and then append (or prepend) ~/.local/bin to $PATH

Step 4: Test Secretify installation

After installation, verify that Secretify is installed correctly by running:

secretify version

This command should output the version of Secretify installed.

Installing Secretify CLI on Windows

Download the latest release of Secretify for Windows https://www.secretify.io/release/bin/win/secretify.exe as well as the checksum file https://www.secretify.io/release/bin/win/secretify.sha256.

Usage

dario@quasar:~$ secretify help
The safe way to share or transfer secrets.

Usage:
  secretify [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  create      Create a new secret link
  help        Help about any command
  login       Login with username and password
  logout      Log out
  reveal      Reveal a secret
  version     Show the build version, build time, and git hash

Flags:
  -h, --help   help for secretify

Use "secretify [command] --help" for more information about a command.

Login

To login, run the following command:

secretify login https://example.secretify.io -u YOUR_USERNAME

You will be prompted to enter your password. Once authenticated, your credentials will be securely stored. If a keyring is available, your credentials will be saved there; otherwise, they will be stored in a newly created file located at ~/.secretify/.netrc.

Logout

To logout, run the following command:

secretify logout

Creating a secret

To create a new secret, use the following command:

secretify create text --set message=v3ryS3ecure$

Upon successful creation, you will receive output similar to the following:

https://example.secretify.io/s/QfYkEafyW6j8UKpKGV#VZ3cQFjdhTWUohot-M1fLlXOydSCC25H--wDtF9UGTM

Revealing a secret

To reveal a secret, use the following command:

secretify reveal --link https://example.secretify.io/s/QfYkEafyW6j8UKpKGV#VZ3cQFjdhTWUohot-M1fLlXOydSCC25H--wDtF9UGTM

You will receive output similar to the following:

{"message":"v3ryS3ecure$"}

Releases

No releases published

Packages

No packages published

Languages