# CloudBees .NET: second Setup is ignored; Shutdown first to reinit

## TL;DR

In the CloudBees .NET SDK, call Setup exactly once at startup and guard it so it cannot run twice; a second successful Setup is ignored, which hides configuration bugs instead of failing loudly. If you need to reinitialize (new key, new options), call Shutdown first, then Setup. The SDK key is environment-specific: a key from staging reports against staging, so a prod deployment with a staging key shows no prod data.

Use this when you run into the situation in the title.

**When not to use this skill:** unrelated tasks. It covers only the procedure above.

## Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

## Details

Flags you register in a RoxContainer appear in the CloudBees UI after the first run, which is the fastest way to confirm the key and environment are right.

Context: Official docs (CloudBees, .NET SDK): documents the setup gotchas: the SDK key is environment-specific, and calling Setup again after a successful setup is silently ignored unless Shutdown ran or the first setup failed.
