Logo
Usage
Overview

Usage

Command reference and practical token workflows.

1 min read
CLI Commands Integration

Core Commands

Terminal window
vygrant accounts
vygrant status
vygrant info

Token commands:

Terminal window
vygrant token get <account>
vygrant token refresh <account>
vygrant token delete <account>
vygrant token dump
vygrant token restore

Behavior Notes

  • token get returns access token text on stdout.
  • token get auto-refreshes when token is expired and refresh token is available.
  • token refresh requires a stored refresh token; otherwise it prints auth URL.
  • token dump/restore serialize token state (treat as sensitive data).

Script Integration

Use directly in commands that accept passwordeval or shell substitution:

Terminal window
ACCESS_TOKEN="$(vygrant token get myapp)"

Example with msmtp:

passwordeval "vygrant token get myapp"