Fluent Commerce Logo

Setting Up Fluent Sandbox with Claude Code

How-to Guide
Extend

Author:

Jarryd Zankovic

Changed on:

5 Mar 2026

Key Points

  • This guide helps SI partners and customer developer set up a Fluent OMS sandbox using Claude Code in Terminal mode. 
  • You’ll install the reference modules (Core, Fulfillment, Order, Inventory) and load B2C sample data with Claude Code as an AI development partner.
  • Claude Code will read local Fluent docs and propose CLI commands. You approve each phase before anything runs. 
  • Total human effort is ~45 minutes, plus a required 10-minute catalogue cache wait during sample data install. 

Steps

Step arrow right iconPrerequisites

Required Fluent Documentation

Claude Code must be able to read Fluent documentation from your local machine. Download the required Markdown docs and place them in a /docs folder inside your project directory.
DocumentPurpose.md File
Getting Started with the Fluent CLICLI installation and basic usageDownload 
Bootstrap an account using the Fluent CLIAccount setup proceduresDownload 
Set up a new Account with Reference Modules and B2C Sample DataModule installation sequenceDownload 
What is a ModuleUnderstanding Fluent's module architectureDownload 
Fluent CLI ReferenceCommand referenceDownload 
API AuthenticationAuthentication flow understandingDownload 

Environment Requirements

RequirementVersion/Details
Node.js>= 20.0.0 and < 23.0.0
npm>= 10.5.0
GitAny recent version
OSTerminal access required (macOS, Linux, or Windows with PowerShell)
Claude CodeTerminal CLI
Claude ModelOpus 4.5 (recommended)

Fluent Sandbox Credentials

You will receive these values when your Fluent sandbox is provisioned (from your Fluent contact or provisioning email)
  • Account ID (e.g., `YOURACCOUNTID`)
  • Client ID (typically same as Account ID)
  • Client Secret (UUID format)
  • Admin Username (typically `youraccount_admin`, lowercase)
  • Admin Password

Step arrow right iconCreate Project Directory

Create a dedicated folder for your Fluent sandbox project:macOS/Linux:Windows (PowerShell):Expected result: you are inside the new project folder in Terminal.

Step arrow right iconInitialize Git with Security Protection

Initialize a Git repository and create a `.gitignore` file to protect sensitive credentials:Note: Run all commands from within your project folder root. The `.gitignore` file is created directly in the project root, no additional folder structure is required at this stage.macOS/Linux:Windows (PowerShell):Why this matters: your `.env` contains credentials. If `.env` is ever committed to git, treat it as a credential leak and rotate secrets immediately.

Step arrow right iconCreate Credentials File

Create a `.env` file to store your Fluent sandbox credentials:macOS/Linux:Windows (PowerShell):

Step arrow right iconAdd Fluent Documentation

Place your Fluent documentation files in the project directory. Recommended structure:Expected result: your /docs folder contains the required .md files, and you can open them locally.

Step arrow right iconVerify Security Configuration

Before proceeding, verify that your `.env` file is protected:Expected result: The `.env` file should NOT appear in the output. If it does, fix `.gitignore` before continuing.

Step arrow right iconLaunch Claude Code

Open Claude Code in Terminal mode within your project directory:

Step arrow right iconExecute Setup Prompt

Copy and paste the following prompt into Claude Code:

Step arrow right iconApprove Each Phase

Claude Code will execute the setup in phases, requesting approval before each action. For each phase:
  • Review the proposed commands
  • Ask questions if anything is unclear
  • Approve to proceed or request modifications
Expected timeline:
  • Phases 1–2: ~5 min (prereqs + CLI install)
  • Phases 3–4: ~3 min (auth + retailer)
  • Phases 5–6: ~10 min (configs + modules)
  • Phase 7: ~20 min (sample data, includes required 10-min wait)
  • Phases 8–9: ~5 min (access + verification) 
Known behavior: Claude Code may incorrectly evaluate version numbers (e.g., thinking 22.22.0 is not less than 23). If you are stuck in a loop on environment checks and your Node version is confirmed valid, tell Claude Code explicitly:
`My Node version is [YOUR VERSION] which is within the valid range (>= 20.0.0 < 23.0.0). Skip environment verification and proceed to the next phase.`
 

Step arrow right iconWhen to Stop and Troubleshoot

Stop and seek help if:
  • Claude Code suggests deleting or overwriting system files outside your project folder
  • The same phase fails 3+ times with the same error
  • Claude Code enters a loop (repeating the same action without progress)
  • Authentication fails repeatedly after verifying credentials are correct
  • Any command modifies your global Node.js, npm, or other system-level tooling unexpectedly
Normal behavior (don't panic):
  • Claude Code asks for approval before each action
  • Some phases take several minutes (especially module installation)
  • The 10-minute wait during sample data is mandatory and expected
  • Minor warnings in CLI output (as long as the command succeeds)
If stuck: Describe the issue to Claude Code and ask for an alternative approach, or exit Claude Code and manually run the commands from the Appendix.

Step arrow right iconVerify Installation

After Phase 9 completes, verify your installation:Check installed modules:Expected output:
ModuleVersionStatus
Core2.x.xACTIVE
Fulfilment2.x.xACTIVE
Order2.x.xACTIVE
Inventory2.x.xACTIVE
Access the OMS web interface:
ApplicationURL
OMS Console`https://[ACCOUNT_ID].sandbox.apps.fluentcommerce.com/oms/`
Store App`https://[ACCOUNT_ID].sandbox.apps.fluentcommerce.com/store/`
Inventory`https://[ACCOUNT_ID].sandbox.apps.fluentcommerce.com/inventory/`
GraphQL Playground`https://[ACCOUNT_ID].sandbox.api.fluentretail.com/graphiql`

Step arrow right iconResult

Upon successful completion, you will have:
ComponentStatus
Fluent CLIInstalled globally
CLI ProfileConfigured and authenticated
Retailerb2c (ID: 1)
Core ModuleActive
Fulfilment ModuleActive
Order ModuleActive
Inventory ModuleActive
Sample Data LoadedSample data includes products, locations, networks, and inventory across the B2C reference set.
User AccessAccount admin with retailer context
Users created:
User TypeUsernameUse For
Account Admin`[account]_admin`Full OMS access
Retailer Admin`b2c_admin`Retailer operations
Store User (HQ)`B2C_HQ_1`Store app
Store User (Sydney)`B2C_SYD_1`Store app
Sample data loaded:
CategoryData
LocationsRJT_1, B2C_HQ_1, B2C_SYD_1
ProductsAH8050 (1 standard + 6 variants)
CategoriesSHOES, MENS_SHOES, WOMENS_SHOES, UNISEX_SHOES
Inventory150 units per location per SKU
NetworksB2C_GROUP_1, B2C_CC_1, B2C_HD_1, B2C_BASE_1, B2C_ATS_1

Step arrow right iconKnown Behaviors and Troubleshooting

CLI Debug Output on Authentication Failure

If fluent profile create fails authentication, the CLI may print debug output that includes sensitive values.Action: Treat this as a credential exposure. Rotate your password in Fluent, update `.env`, and recreate the CLI profile.

Username Case Sensitivity

Fluent usernames are case-sensitive. Use the exact username provided in your sandbox credentials (typically lowercase).

Environment Variable Conflicts

On macOS, the system `USERNAME` environment variable may conflict with a user-defined `USERNAME` in your `.env` file. Use `FLUENT_USERNAME` to avoid this conflict.

Account Admin Blank Screen

After initial setup, the account admin user may see a blank screen when logging into OMS. This occurs because the user lacks retailer context roles. Phase 8 of the setup prompt addresses this by adding the required roles.

Troubleshooting

SymptomCauseSolution
Authentication failed (400 error)Username case mismatchUse lowercase username
Wrong username in CLIDuplicate entries in `.env`Remove duplicates, keep one correct value
System overrides usernamemacOS `$USERNAME` variableUse `FLUENT_USERNAME` in `.env`
Blank OMS screenMissing retailer contextAdd ADMIN/GRAPHQL roles to retailer context
Inventory install failsCatalogue cache not readyWait full 10 minutes after sample data install
`.env` visible in git status`.gitignore` not configuredAdd `.env` to `.gitignore`
Except as otherwise stated in the Extend Knowledge Content site policy, the content on this page is licensed under the Creative Commons Attribution 4.0 Licence, and any code samples that appear on this page are licensed under the Apache 2.0 Licence, unless any code sample forms part of the Fluent Order Management Platform code. Neither of these licences apply to any content on any other page that can be reached via a link on this page unless otherwise specified on that other page. If you wish to use any of the Extend Knowledge Content, you must do so in compliance with the licenses referred to above and the Extend Knowledge Content site policy, including attribution in the manner set out on this page.