Add attach subcommand
Add login subcommand
Add output options to attach subcommand