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
| Flag | Description |
|---|---|
--static | Target static.lnk (default for most commands) |
--dynamic | Target dynamic.lnk |
--quiet, -q | Suppress non-error output |
--verbose, -v | Show detailed output |
--help, -h | Show help |
Commands
lnk add
Add a redirect to static.lnk or dynamic.lnk.
lnk remove
Remove a redirect by its source path.
lnk list
List all redirects, or filter by file or path.
lnk check
Perform a live HTTP check on a redirect.
lnk validate
Validate redirect file syntax and destinations.
lnk deploy
Commit changes and push to trigger a deployment.