[WIP] api v2 environments - CRUD commands