Entry not saving through command line
I'm assuming you're using a multi-environment config.  From wherever your plugin is bootstrapping yiic, you need to manually set the CRAFT_ENVIRONMENT PHP constant to the environment you want yiic to load in the config files.