core/commands2: Added 'publish' command