Add stat command with subcommands.