Share AppName validation between CLIs

Shouldn't this interface be in `validators.d.ts`