Implement cli for join