Build

CLI Commands

Per-command reference for the Lev CLI covering deals, contacts, companies, placements, pipelines, lenders, term sheets, market data, and API key management.

Updated March 2026

Auth

Manage authentication credentials and inspect the current session.

lev auth login                   # Store API key in OS keychain
lev auth login --profile staging # Store under a named profile
lev auth status                  # Show user, account, scopes, rate limits
lev auth switch staging          # Change the default profile
Keychain storage

Credentials are stored in the OS keychain (macOS Keychain, Linux Secret Service) — never written to a config file.

Deals

Full CRUD operations on the core deal resource. See Deals for field definitions and schema details.

List deals

                         Deals (42 total)
┌──────┬──────────────────────────┬──────────────┬───────────┬──────────┐
│ Id   │ Title                    │ Loan Amount  │ Type      │ Updated  │
├──────┼──────────────────────────┼──────────────┼───────────┼──────────┤
│ 2303 │ Office Tower Acquisition │  $50,000,000 │ permanent │ 2d ago   │
│ 2301 │ 500 Broadway Refinance   │  $22,500,000 │ permanent │ 5d ago   │
│ 2000 │ Palm Avenue Residence    │  $19,125,000 │ permanent │ 1mo ago  │
│ 1987 │ Industrial Park Bridge   │  $12,000,000 │ bridge    │ 1mo ago  │
│ 1920 │ Downtown Mixed-Use       │   $8,500,000 │ construct │ 2mo ago  │
└──────┴──────────────────────────┴──────────────┴───────────┴──────────┘
Showing 5 of 42. Use --offset to see more.
FlagDescription
--loan-type TYPEFilter by loan type (permanent, acquisition, construction, etc.)
--business-plan PLANFilter by business plan (stabilized, value_add, etc.)
--filter FIELD=VALUEGeneric filter for any supported field
--sort FIELDSort by field (prefix with - for descending)
--include RESOURCESEmbed sub-resources: financials, properties, team
--fields FIELDSReturn only specific fields (id always included)
--limit NResults per page (1–200, default 50)
--allFetch all pages with progress bar

Get a deal

lev deals get 2303
lev deals get 2303 --include financials,properties,team
lev deals get 2303 --fields title,loan_amount,loan_type

Create a deal

lev deals create --title "456 Oak Ave Refinance" --loan-amount 3500000 --loan-type refinance
Created deal 2350: 456 Oak Ave Refinance
Mutation safety

Create, update, and delete commands prompt for confirmation in interactive terminals. Use --yes to skip prompts in scripts, and --dry-run to preview without executing. See CLI Workflows for scripting patterns.

Update a deal

lev deals update 2303 --loan-amount 55000000 --description "Updated loan amount after reappraisal"

Delete a deal

lev deals delete 2303

Performs a soft-delete (archive). The deal is not permanently removed.

Contacts

Manage lender and sponsor contacts in the CRM. See Contacts for field definitions.

List contacts

                     Contacts (156 total)
┌──────┬──────────────────┬───────────────────┬─────────┬──────────┐
│ Id   │ Name             │ Company           │ Type    │ Updated  │
├──────┼──────────────────┼───────────────────┼─────────┼──────────┤
│ 891  │ Jane Park        │ Capital One       │ lender  │ 1d ago   │
│ 887  │ Michael Torres   │ Wells Fargo       │ lender  │ 3d ago   │
│ 854  │ Sarah Chen       │ Brookfield Asset  │ sponsor │ 1wk ago  │
└──────┴──────────────────┴───────────────────┴─────────┴──────────┘

Get, create, update

lev contacts get 891
lev contacts create --first-name "Alex" --last-name "Kim" --email alex@example.com --type lender
lev contacts update 891 --title "Senior Vice President"

Companies

Manage lender and sponsor company records. See Companies for field definitions.

List companies

                     Companies (89 total)
┌──────┬──────────────────────┬─────────┬───────┬──────────┐
│ Id   │ Name                 │ Type    │ State │ Updated  │
├──────┼──────────────────────┼─────────┼───────┼──────────┤
│ 312  │ Capital One CRE      │ lender  │ NY    │ 2d ago   │
│ 298  │ Wells Fargo CMBS     │ lender  │ CA    │ 5d ago   │
│ 245  │ Brookfield Asset Mgmt│ sponsor │ NY    │ 2wk ago  │
└──────┴──────────────────────┴─────────┴───────┴──────────┘

Get, create, update

lev companies get 312
lev companies create --name "New Capital LLC" --type sponsor
lev companies update 312 --website "https://capitalcre.com"

Placements

View lender outreach and placement progression. See Placements for field definitions.

List placements

               Placements for Deal 2303 (12 total)
┌──────┬──────────────────┬──────────────┬──────────┬──────────┐
│ Id   │ Lender           │ Status       │ Score    │ Updated  │
├──────┼──────────────────┼──────────────┼──────────┼──────────┤
│ 4501 │ Capital One      │ sent         │ 92       │ 1d ago   │
│ 4498 │ Wells Fargo      │ interested   │ 88       │ 2d ago   │
│ 4490 │ JPMorgan Chase   │ reviewing    │ 85       │ 3d ago   │
└──────┴──────────────────┴──────────────┴──────────┴──────────┘

Get a placement

lev placements get 4501

Pipelines

View deal pipelines and move deals between stages. See Pipelines for field definitions.

List pipelines

lev pipelines list
                     Pipelines (3 total)
┌──────┬──────────────────────┬──────────────────────────────┐
│ Id   │ Name                 │ Statuses                     │
├──────┼──────────────────────┼──────────────────────────────┤
│ 10   │ Financing            │ New → Outreach → Closing     │
│ 11   │ Acquisition          │ Sourcing → DD → Under PSA    │
│ 12   │ Internal Review      │ Submitted → Approved         │
└──────┴──────────────────────┴──────────────────────────────┘

Get a pipeline

lev pipelines get 10

Move a deal

lev pipelines move --deal-id 2303 --pipeline-id 10 --status-id 3
Launch date automation

Moving a deal to a launching status (Outreach, Negotiating, Closing, Closed) in a financing pipeline automatically sets the deal's launch date if not already set.

Lender Directory

Search the institutional lender directory. See Lender Directory for field definitions.

Search lenders

                   Lenders matching "Capital One" (3 total)
┌──────┬──────────────────────────┬───────────┬──────────────┐
│ Id   │ Name                     │ Type      │ Programs     │
├──────┼──────────────────────────┼───────────┼──────────────┤
│ 1042 │ Capital One CRE          │ bank      │ 5 programs   │
│ 1043 │ Capital One Multifamily  │ bank      │ 3 programs   │
│ 1044 │ Capital One Healthcare   │ bank      │ 2 programs   │
└──────┴──────────────────────────┴───────────┴──────────────┘

Get a lender

lev lenders get 1042
lev lenders get 1042 --include programs

Term Sheets

View term sheets for a deal. See Term Sheets for field definitions.

List term sheets

lev term-sheets list 2303
              Term Sheets for Deal 2303 (4 total)
┌──────┬──────────────────┬─────────┬───────────┬──────────┐
│ Id   │ Lender           │ Rate    │ Type      │ Updated  │
├──────┼──────────────────┼─────────┼───────────┼──────────┤
│ 780  │ Capital One      │ 5.25%   │ fixed     │ 1d ago   │
│ 778  │ Wells Fargo      │ S+185   │ floating  │ 2d ago   │
│ 775  │ JPMorgan Chase   │ 5.50%   │ fixed     │ 3d ago   │
│ 770  │ Signature Bank   │ S+200   │ floating  │ 5d ago   │
└──────┴──────────────────┴─────────┴───────────┴──────────┘

Get a term sheet

lev term-sheets get 780

Market Data

Retrieve current base rates and reference data. See Market Data for field definitions.

lev market rates
                     Base Rates
┌───────────────────┬────────┬─────────────────┐
│ Index             │ Rate   │ As Of           │
├───────────────────┼────────┼─────────────────┤
│ SOFR              │ 4.33%  │ 2026-04-04      │
│ 5Y Treasury       │ 3.92%  │ 2026-04-04      │
│ 10Y Treasury      │ 4.21%  │ 2026-04-04      │
│ Prime             │ 7.50%  │ 2026-04-04      │
└───────────────────┴────────┴─────────────────┘

API Keys

Manage API keys for your account. See API Keys for details.

List keys

lev api-keys list
                     API Keys (3 total)
┌────────────────┬──────────────────┬─────────────────┐
│ Prefix         │ Label            │ Last Used       │
├────────────────┼──────────────────┼─────────────────┤
│ lev_sk_a1b2... │ production-sync  │ 2h ago          │
│ lev_sk_c3d4... │ staging          │ 3d ago          │
│ lev_sk_e5f6... │ ci-pipeline      │ 1wk ago         │
└────────────────┴──────────────────┴─────────────────┘

Create and revoke

lev api-keys create --label "new-integration"
# Created key: lev_sk_... (shown once — save it now)
 
lev api-keys revoke lev_sk_a1b2
Key visibility

The full key is shown only at creation. Store it securely — you cannot retrieve it later.

Next steps
More in this section