Loading...
Loading...
Use Fusion DevTools CLI (fdev) for API testing, token acquisition, service discovery, and person lookup during development. USE FOR: calling Fusion REST APIs, getting access tokens as JSON, discovering services and environments, resolving persons, PIM role activation. DO NOT USE FOR: modifying backend service code, deploying services, infrastructure changes, CI/CD pipeline configuration, or Service Bus operations.
npx skill4agent add equinor/fusion-skills fusion-devtoolsdotnet tool install --global --add-source "https://statoil-proview.pkgs.visualstudio.com/Fusion%20-%20Packages/_packaging/Fusion-Public/nuget/v3/index.json" fusion-devtoolsdotnet tool update --global --add-source "https://statoil-proview.pkgs.visualstudio.com/Fusion%20-%20Packages/_packaging/Fusion-Public/nuget/v3/index.json" fusion-devtoolsfdev loginfdev restfdev rest <serviceKey> '<path>'?# GET from people service (production)
fdev rest people '/persons/me?api-version=3.0'
# POST with JSON body
fdev rest context '/contexts?api-version=1.0' -m post -b '{"query":"test"}'
# POST with body from file
fdev rest people '/persons/search?api-version=3.0' -m post -b @request.json
# Different environment
fdev rest people '/persons/me?api-version=3.0' -e ci
# Save response to file
fdev rest people '/persons/me?api-version=3.0' -o response.json
# Full URL mode (skip discovery)
fdev rest --url https://httpbin.org/get --no-auth
# Custom scope override
fdev rest people '/persons/me?api-version=3.0' --scope api://my-app/.default-m-b@file-e--url--no-auth--scope-o--header KEY=VALUEfdev get-access-tokenaz account get-access-token# Token for a specific service (resolves scope via discovery)
fdev get-access-token --service-key people
# Token with explicit scope
fdev get-access-token --scope api://97978493-9777-4d48-b38a-67b0b9cd88d2/.default
# Extract just the token
fdev get-access-token --service-key people | jq -r '.accessToken'{
"accessToken": "eyJ...",
"expiresOn": "2026-05-15T12:00:00+00:00",
"expiresOnUnix": 1778846400,
"scope": "api://app-id/.default",
"tokenType": "Bearer"
}# List all environments
fdev disc envs
# List services in an environment (JSON output)
# Note: disc subcommand uses single-dash flags (-json, -out) — this is by design
fdev disc env list fprd -json
# List services showing key and URI
fdev disc env list fprd -out ku# Resolve by email
fdev persons resolve user@equinor.com
# Search by name
fdev persons search "John"fdev pim azure activatefdev token # test environment token
fdev token --prod # production tokenfdev --versionfdev login| Need | Command |
|---|---|
| Call a Fusion API and see the response | |
| Get a token for scripting/piping | |
| Find available services | |
| Find service base URL and scope | |
| Look up a person | |
| Quick clipboard token | |
--verbosefdev rest people '/persons/me?api-version=3.0' --verbose--no-cachefdev rest people '/persons/me?api-version=3.0' --no-cache| Key | Purpose | Notes |
|---|---|---|
| Continuous integration / development | Least stable, latest changes |
| Quality assurance | Pre-production validation |
| Production | Default environment |
fprd-e <env>references/command-reference.mdagentic-patterns.md?--no-authfdev pim azure activate