You can't control pin from the terminal. You must use the device tree editor (or edit and recompile the device tree manually).