Install Tarvena and connect cloud projects to Google Drive

Use this guide when preparing a Windows machine for a user who works on Tarvena cloud projects and keeps project files in a locally mounted Google Drive folder.

Tarvena has two separate ownership planes:

  • the Tarvena cloud service owns users, organizations, project identity, membership, roles, and structured project data;
  • Google Drive for desktop owns local file delivery for DWG, PDF, DOCX, Markdown, images, and generated exports.

A machine never registers or reconstructs a project from files. It signs in, lists authorized cloud projects, and connects each project to the matching local folder when required.

1. Install and verify Tarvena

The production installer includes tarvena.exe, tarvena-runtime.exe, and the agent guides. It installs for the current Windows user.

  1. Obtain the approved Tarvena-Setup-<version>.exe installer.

  2. Run it as the current user and wait for completion:

    $Installer = 'C:\Path\To\Tarvena-Setup-0.97.0.exe'
    Start-Process -FilePath $Installer -Wait
    
  3. Open the Tarvena desktop app. Use the installed CLI directly so the current PowerShell session does not depend on a refreshed Path:

    $InstallRoot = Join-Path $env:LOCALAPPDATA 'Programs\Tarvena\Desktop'
    $Tarvena = Join-Path $InstallRoot 'resources\cli\tarvena.exe'
    & $Tarvena --local runtime ping
    
  4. Check that the installed CLI can locate its agent guides:

    & $Tarvena help agent-docs
    

2. Sign in and select the correct organization

Click Sign in inside the Tarvena desktop app and finish the browser login. Select the intended organization in the desktop dashboard, then check the shared session from the CLI:

& $Tarvena --local auth status

Keep Tarvena open while using the CLI. It uses the desktop session and does not start a separate runtime or provide independent sign-in/sign-out. Confirm the returned account and selected organization before continuing. Personal and shared organizations are separate identities. Verified active members can use their organization's projects immediately; Google Drive access alone does not grant Tarvena project access.

Do not share an installation credential between Windows accounts or copy authentication files from another machine.

3. Discover projects from the Tarvena cloud API

List the projects visible to the signed-in user:

$Projects = & $Tarvena --local cloud-project list | ConvertFrom-Json
$Projects | ConvertTo-Json -Depth 10

The result can contain two visibility classes:

  • role equal to owner, editor, or viewer means the user is a project member;
  • role equal to null means an organization owner/admin has directory and lifecycle visibility only. It does not grant project content, Project Folder, Files, or sharing access.

Select only actual project memberships before any local Drive operation:

$MemberProjects = @($Projects.projects | Where-Object { $null -ne $_.role })
$DirectoryOnlyProjects = @($Projects.projects | Where-Object { $null -eq $_.role })

Read a selected project by its cloud ID:

$ProjectId = '<project-id-from-list>'
$Project = & $Tarvena --local cloud-project get $ProjectId | ConvertFrom-Json
$Project | ConvertTo-Json -Depth 10

if ($null -eq $Project.project.role) {
  throw 'This project is directory-visible only; project membership is required for Drive access.'
}

Use the returned id, name, organizationId, role, and projectFolderRelpath as the authoritative project identity. Match projects by the cloud result, not by guessing IDs from folder names.

There is no local project discovery, package import, or registration command.

4. Locate the mounted Drive folder

Inspect Windows filesystem drives:

Get-PSDrive -PSProvider FileSystem |
  Select-Object Name, Root, DisplayRoot

Google Drive commonly mounts as G:, but the root is machine-specific. Select the local Drive root that contains the paths represented by the projects' projectFolderRelpath values. For example:

$DriveRoot = 'G:\.shortcut-targets-by-id\<shared-drive-id>\Z dysku Google'

if (-not (Test-Path -LiteralPath $DriveRoot -PathType Container)) {
  throw "Google Drive root is unavailable: $DriveRoot"
}

For each cloud project whose role is not null, derive the expected local folder without recursively scanning the Drive:

$WorkspaceRelpath = $Project.project.projectFolderRelpath
$ExpectedFolder = $DriveRoot
foreach ($Segment in ($WorkspaceRelpath -split '/')) {
  $ExpectedFolder = Join-Path $ExpectedFolder $Segment
}

[pscustomobject]@{
  ProjectId = $Project.project.id
  WorkspaceRelpath = $WorkspaceRelpath
  ExpectedFolder = $ExpectedFolder
  Available = Test-Path -LiteralPath $ExpectedFolder -PathType Container
}

If the folder is unavailable, wait for Google Drive to mount or download it. Do not create a second cloud project merely because this machine cannot currently see the folder.

Launch Tarvena and open the Projects screen. Each project where the user is an actual member shows one of these local states:

  • Drive folder connected — the expected folder is available; no action is needed;
  • Files pending — the expected path is known, but Drive has not made the folder available yet;
  • Relink required — select Relink folder and choose the exact project folder under the local Drive mount.

The selected folder must end with the project's complete projectFolderRelpath. Tarvena derives and stores the machine-specific Drive root and project binding only after validating that relationship. The binding is disposable local state; it does not change project identity or cloud project data.

The current CLI intentionally does not expose a local Project Folder relink command. Folder selection is a trusted desktop/OS action. After relinking in the desktop, CLI commands use the same runtime and binding.

Directory-only projects (role: null) intentionally offer no local Project Folder binding or Files access. Add the user as an explicit project member before attempting either operation.

6. Create a genuinely new project

Create a cloud project only when the user explicitly requests a new project. Choose a stable path relative to the selected Drive root:

$Created = & $Tarvena --local cloud-project create `
  --name 'New reservoir project' `
  --type 'water-permit' `
  --project-folder-parent 'G:\My Drive\Tarvena projects' |
  ConvertFrom-Json

$Created | ConvertTo-Json -Depth 10

Then allow Google Drive to create or synchronize that relative folder and connect it through the desktop Projects screen. Creating cloud project metadata does not upload, inventory, or hash the folder's files.

Never create a new cloud project as a repair operation for an existing cloud project.

7. Share project access independently of Drive

List current project members and use the returned project revision for membership changes:

$Members = & $Tarvena --local cloud-project members list --project $ProjectId |
  ConvertFrom-Json
$Members | ConvertTo-Json -Depth 10

An owner can add or change a member:

& $Tarvena --local cloud-project members upsert `
  --project $ProjectId `
  --email '[email protected]' `
  --role editor `
  --expected-revision $Members.revision

The invited user must also belong to the owning organization and independently have filesystem access to the Drive folder. Application membership and Drive permissions are deliberately separate.

8. Reinstall or move to another machine

After reinstalling Tarvena or deleting its local app data:

  1. install and start the runtime;
  2. sign in as the user and select the correct organization;
  3. run cloud-project list to recover the authorized cloud project catalog;
  4. ensure Google Drive is mounted locally;
  5. use Relink folder only for projects whose local binding cannot be resolved;
  6. open a project and verify its structured state and Files tab.

Deleting local runtime state does not delete, roll back, or recreate cloud project data. The local database contains only disposable settings, Drive roots, and Project Folder bindings.

9. Files and standalone Markdown

The Files tab reads the selected Project Folder directly. Listing, copying, creating, or opening arbitrary files does not add cloud file rows, hashes, sizes, revisions, or synchronization events.

Opening an arbitrary source.md is a separate standalone workflow. It opens directly in the editor without authentication, project lookup, project registration, or database creation.

Forbidden legacy workflow

  • Do not look for or create .operat, .operat-sync, or project.json anchors.
  • Do not call removed project init, project create, project workspace, package-import, or snapshot-sync commands.
  • Do not infer application membership from Google Drive access.
  • Do not scan or hash every file to decide whether a project exists.
  • Do not copy or rewrite an old local project database to provision another machine.
  • Do not add a compatibility fallback when the Tarvena cloud service or Drive folder is unavailable.

Final verification

& $Tarvena --local runtime ping
& $Tarvena --local auth status
& $Tarvena --local cloud-project list

Then confirm in the desktop application that:

  1. the expected cloud projects are visible;
  2. the selected organization is correct;
  3. each required Drive Project Folder is connected or has an explicit pending/relink state;
  4. a project member can open the Files tab and a representative local file;
  5. reinstall recovery required only sign-in and local folder relinking;
  6. no hidden project or sync directory was created.