Setting Up Fluent Sandbox with Claude Code
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
Prerequisites
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.| Document | Purpose | .md File |
| Getting Started with the Fluent CLI | CLI installation and basic usage | Download |
| Bootstrap an account using the Fluent CLI | Account setup procedures | Download |
| Set up a new Account with Reference Modules and B2C Sample Data | Module installation sequence | Download |
| What is a Module | Understanding Fluent's module architecture | Download |
| Fluent CLI Reference | Command reference | Download |
| API Authentication | Authentication flow understanding | Download |
Environment Requirements
| Requirement | Version/Details |
| Node.js | >= 20.0.0 and < 23.0.0 |
| npm | >= 10.5.0 |
| Git | Any recent version |
| OS | Terminal access required (macOS, Linux, or Windows with PowerShell) |
| Claude Code | Terminal CLI |
| Claude Model | Opus 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
Create Project Directory
Initialize Git with Security Protection
`.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.
Create Credentials File
`.env` file to store your Fluent sandbox credentials:macOS/Linux:Windows (PowerShell):
Add Fluent Documentation
Verify Security Configuration
`.env` file is protected:Expected result: The `.env` file should NOT appear in the output. If it does, fix `.gitignore` before continuing.
Launch Claude Code
Execute Setup Prompt
Approve Each Phase
- Review the proposed commands
- Ask questions if anything is unclear
- Approve to proceed or request modifications
- 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)
`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.`
When to Stop and Troubleshoot
- 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
- 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)
Verify Installation
| Module | Version | Status |
| Core | 2.x.x | ACTIVE |
| Fulfilment | 2.x.x | ACTIVE |
| Order | 2.x.x | ACTIVE |
| Inventory | 2.x.x | ACTIVE |
| Application | URL |
| 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` |
Result
| Component | Status |
| Fluent CLI | Installed globally |
| CLI Profile | Configured and authenticated |
| Retailer | b2c (ID: 1) |
| Core Module | Active |
| Fulfilment Module | Active |
| Order Module | Active |
| Inventory Module | Active |
| Sample Data Loaded | Sample data includes products, locations, networks, and inventory across the B2C reference set. |
| User Access | Account admin with retailer context |
| User Type | Username | Use 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 |
| Category | Data |
| Locations | RJT_1, B2C_HQ_1, B2C_SYD_1 |
| Products | AH8050 (1 standard + 6 variants) |
| Categories | SHOES, MENS_SHOES, WOMENS_SHOES, UNISEX_SHOES |
| Inventory | 150 units per location per SKU |
| Networks | B2C_GROUP_1, B2C_CC_1, B2C_HD_1, B2C_BASE_1, B2C_ATS_1 |
Known 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
| Symptom | Cause | Solution |
| Authentication failed (400 error) | Username case mismatch | Use lowercase username |
| Wrong username in CLI | Duplicate entries in `.env` | Remove duplicates, keep one correct value |
| System overrides username | macOS `$USERNAME` variable | Use `FLUENT_USERNAME` in `.env` |
| Blank OMS screen | Missing retailer context | Add ADMIN/GRAPHQL roles to retailer context |
| Inventory install fails | Catalogue cache not ready | Wait full 10 minutes after sample data install |
`.env` visible in git status | `.gitignore` not configured | Add `.env` to `.gitignore` |
