Skip to content

Commands

The lnk script is the primary interface for managing your vanityURLs redirects from the command line. Run lnk --help to see all available commands.

$ lnk --help
Commands:
  lnk add      /path https://destination [code]   # Add a redirect to static.lnk
  lnk remove   /path                              # Remove a redirect
  lnk list     [--static|--dynamic] [/path]       # List redirects
  lnk check    /path                              # Live HTTP check of a redirect
  lnk validate [--live]                           # Validate syntax and destinations
  lnk deploy   ["commit message"]                 # Commit, push, and deploy
  lnk help     [COMMAND]                          # Show help for a command
  lnk version                                     # Show lnk version

Global flags

FlagDescription
--staticTarget static.lnk (default for most commands)
--dynamicTarget dynamic.lnk
--quiet, -qSuppress non-error output
--verbose, -vShow detailed output
--help, -hShow help

Commands