ViviScape.CLI 0.7.0

dotnet tool install --global ViviScape.CLI --version 0.7.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local ViviScape.CLI --version 0.7.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ViviScape.CLI&version=0.7.0
                    
nuke :add-package ViviScape.CLI --version 0.7.0
                    

ViviScape CLI (vs)

Command-line interface for ViviScape Work.

Install

Requires the .NET 8 SDK (or newer).

dotnet tool install -g ViviScape.CLI

Open a new terminal and:

vs auth login    # browser opens → click "Allow access"
vs --help

Upgrade:

dotnet tool update -g ViviScape.CLI

Uninstall:

dotnet tool uninstall -g ViviScape.CLI

If vs isn't found, ensure %USERPROFILE%\.dotnet\tools is on PATH (the .NET SDK installer normally adds it; just open a fresh terminal).

Build from source

git clone https://viviscapesoft.visualstudio.com/ClockWyzWeb/_git/ClockWyzWeb
cd ClockWyzWeb\ViviScape.CLI
.\install.ps1                  # pack + install locally
.\install.ps1 -Reinstall       # force a clean reinstall

Publish a new release (maintainer)

# bump <Version> in ViviScape.CLI.csproj first
dotnet pack .\ViviScape.CLI\ViviScape.CLI.csproj -c Release
dotnet nuget push .\ViviScape.CLI\nupkg\ViviScape.CLI.<version>.nupkg `
    -s https://api.nuget.org/v3/index.json `
    -k <NUGET_API_KEY>

Auth

The CLI uses a browser-based loopback flow (similar to gh auth login):

  1. vs auth login starts a local listener on http://127.0.0.1:<random> and opens https://work.viviscape.io/auth/cli/connect?port=<port>&state=<csrf> in your browser.
  2. The bridge page (rendered by AuthController.CliConnect) reads your existing Work session (access_token, aid, auth) from sessionStorage and POSTs it to the CLI's localhost callback. If you aren't signed in, it sends you to /login#cli=<bridge-url> and login.js returns you to the bridge after auth.
  3. The CLI verifies the state token and stores the credentials in:
    • Windows → Windows Credential Manager (ViviScape.CLI:default)
    • macOS / Linux → ~/.viviscape/credentials.json (chmod 600)

API requests use the standard Work headers user_id, pid, plus a Bearer access token.

Override the API host with VIVISCAPE_BASE_URL (defaults to https://work.viviscape.io).

Commands

vs auth login | logout | status

vs projects ls [--company <id>] [--json]
vs companies ls [--json]

vs tasks ls [--json]
vs tasks get <task_id>
vs tasks add --title "..." --group <group_id> [--description ...] [--due <iso>]
             [--priority low|normal|high] [--service <id>] [--estimate 4h]
vs tasks update <task_id> --set status=onhold --set priority=high
vs tasks done <task_id>
vs tasks log <task_id> --note "..." [--hours 1.5] [--minutes 30] [--when <iso>] [--billable]

vs tickets ls [--status open|closed|all] [--query ...] [--json]
vs tickets get <ticket_id>

vs time in  [--note "..."]
vs time out [--note "..."]
vs time history [--json]

vs logs ls [--json]
vs logs add --note "..." [--hours 1.5] [--minutes 30] [--service <id>] [--when <iso>]
vs logs rm <log_id>
vs logs hours [--start <date>] [--end <date>] [--json]
vs logs hours-by-service [--start <date>] [--end <date>] [--json]
vs logs alltime [--json]

vs notes ls [--json]
vs notes get <note_id>
vs notes add [--title "..."] (--note "..." | --file path) [--public] [--summary]
             [--book <id>] [--knowledge]
vs notes edit <note_id> [--title ...] [--note ... | --file path] [--public]
vs notes rm <note_id>

vs comment ls <task_id> [--json]
vs comment add <task_id> "comment text"
vs comment edit <comment_id> "new text"      # known issue: upstream returns 400
vs comment rm <comment_id>

vs artifacts ls [--parent-type room|task|ticket|project|company|client|none] [--parent-id <id>]
                [--query ...] [--top 50] [--json]
vs artifacts get <artifact_id>
vs artifacts share <artifact_id> [--public] [--version <n>] [--expires-days <n>]
                   [--password ...] [--label ...] [--json]
vs artifacts links <artifact_id> [--json]
vs artifacts revoke <share_id>

vs artifacts share prints the link on stdout (so vs artifacts share <id> --public | clip works) and a one-line summary on stderr. The full URL is shown once: the server keeps only a hash of it. --public means anyone on the internet who has the link can open it, with no password; without it the link is restricted and can take a --password. Only the artifact's author or an account admin can make or revoke links.

Plans

Commands are gated by your plan_type to mirror the portal sidebar:

Command Requires plan
auth, projects, companies, tasks, comment, time, artifacts starter
logs (incl. insights) pro
notes premium
tickets enterprise

A blocked command prints a clean message with an upgrade link and exits 1. Set VS_FORCE_PLAN=starter|pro|premium|enterprise to test the gate locally without changing your account.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.7.0 122 10/10/2026
0.6.1 136 9/14/2026
0.6.0 165 5/28/2026
0.5.2 162 5/10/2026
0.5.1 156 5/9/2026
0.5.0 132 5/9/2026
0.4.0 138 5/9/2026
0.3.0 138 5/9/2026
0.2.0 144 5/9/2026