Skip to content

End-user database Workflow

Here is an example workflow for connecting to a psql DB via ark CLI, which assumes a DB was already onboarded:

  1. Install Ark SDK:
    go install github.com/cyberark/ark-sdk-golang
    
    Make sure that the PATH environment variable points to the Go binary. For example:
    export PATH=$PATH:$(go env GOPATH)/bin
    
  2. Create a profile:
    • Interactively:
      ark configure
      
    • Silently:
      ark configure --silent --work-with-isp --isp-username myuser
      
  3. Log in to Ark:
    ark login --silent --isp-secret <my-ark-secret>
    
  4. Connect to postgres using the CLI with an MFA caching token behind the scenes:
    ark exec sia db psql --target-address myaddress.com --target-user myuser