You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reduce repetition and simplify usage, the CLI provides flexible ways to define your commonly used `iTwin` and `iModel` IDs. Once set, you can run commands without manually passing these IDs every time.
4
+
5
+
The CLI supports two mechanisms for this:
6
+
7
+
1.**Environment variables** — set manually in your terminal or CI environment
8
+
2.**Local context** — managed via the `itp context` command
9
+
10
+
Either approach can help streamline your workflow.
11
+
12
+
---
13
+
14
+
### Setting environment variables
15
+
16
+
You can define your default IDs directly in the terminal environment:
These values will be automatically picked up in commands unless overridden by context or flags.
31
+
32
+
---
33
+
34
+
### Using the `context` system
35
+
36
+
The `itp context` command allows you to **save default iTwin and iModel IDs locally**. Once set, these values will persist across CLI sessions and be automatically used in commands.
37
+
38
+
- Set context:
39
+
40
+
```bash
41
+
itp context set --itwin-id <iTwinId> --imodel-id <iModelId>
42
+
```
43
+
44
+
- View current context:
45
+
46
+
```bash
47
+
itp context info
48
+
```
49
+
50
+
- Clear context:
51
+
52
+
```bash
53
+
itp context clear
54
+
```
55
+
56
+
> ℹ️ Context values take precedence over environment variables.
57
+
58
+
---
59
+
60
+
### Using the `--save` flag
61
+
62
+
You can also update the context automatically during iTwin or iModel creation by using the `--save` flag. This stores the newly created ID into the local context, making it available for subsequent commands.
Copy file name to clipboardExpand all lines: docs/itwin101.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
# iTwin 101
2
2
3
-
**A developer-friendly introduction to Bentley's iTwin Platform.**
3
+
**A friendly introduction to Bentley's iTwin Platform.**
4
4
5
5
The infrastructure industry has undergone a major shift — from static design files to **cloud-connected systems** that reflect how assets behave in real time.
6
6
7
-
This shift is driven by the rise of **digital twins**: living models that combine infrastructure design with data from numerous cloud sources for a complete view of the asset. For example, a dam reporting structural health and energy output, or a smart building tracking occupancy, lighting, and air quality. It’s no longer just about designing — it’s about how an asset lives and performs in the real world.
7
+
This shift is driven by the rise of **digital twins**: living models that combine infrastructure data to numerous cloud sources for a complete view of the asset. For example, a dam reporting structural health and energy output, or a smart building tracking occupancy, lighting, and air quality. It’s no longer just about designing infrastructure — it’s about how an asset lives and performs in the real world.
8
8
9
-
**Bentley Systems**, a long-standing leader in infrastructure software, created the **iTwin Platform** to support this evolution. While desktop tools like **MicroStation** and **AutoCAD** have supported infrastructure design for decades, the iTwin Platform brings this data into the cloud — where teams can visualize entire assets, integrate live data, and build connected solutions across industries.
9
+
**Bentley Systems**, a long-standing leader in infrastructure software, created the **iTwin Platform** to support this evolution. While desktop tools like **MicroStation** and **AutoCAD** have supported infrastructure design for decades, the iTwin Platform brings infrastructure data into the cloud — where teams can visualize entire assets, integrate live data, and build connected solutions across industries.
10
10
11
-
Following Bentley’s acquisition of **Cesium**, high-performance 3D geospatial visualization is now a built-in part of the iTwin ecosystem. **Cesium** is an open platform for streaming large-scale 3D data, and its developer sandbox, **Sandcastle**, makes it easy to prototype and interact with infrastructure in a global context.
11
+
Following Bentley’s acquisition of **Cesium**, high-performance 3D geo-spatial visualization is now a built-in part of the iTwin ecosystem. **Cesium** is an open platform for streaming large-scale 3D data, and its developer sandbox, **Sandcastle**, makes it easy to prototype and interact with infrastructure in a global context.
12
12
13
13
The **iTwin CLI** ties it all together — letting you manage iTwins, bring design data into the cloud, and visualize your models in Cesium Sandcastle — all from the command line.
14
14
@@ -23,13 +23,13 @@ A **digital twin** is more than a design model. It’s a cloud-based, real-time
23
23
-**📈 Sensor Data**: Live IoT data reflecting asset performance, environmental conditions, and more.
24
24
-**📂 External Repositories**: Additional cloud data sources that enrich the digital twin's context.
25
25
26
-
What makes a digital twin powerful is the way these sources come together in the cloud to form a "living" version of an asset—something that's not just visual, but interactive and analyzable.
26
+
What makes a digital twin powerful is the way these sources come together in the cloud to form a "living" version of an asset — something that's not just visual, but interactive and analyzable.
27
27
28
28
---
29
29
30
30
### 🪧 Enter the iTwin
31
31
32
-
The **iTwin** is Bentley’s implementation of a digital twin—a central hub that brings together all the data related to an infrastructure asset. It's built to be open, extensible, and deeply interoperable.
32
+
The **iTwin** is Bentley’s implementation of a digital twin — a central hub that brings together all the data related to an infrastructure asset into the cloud. It's built to be open, extensible, and deeply interoperable.
33
33
34
34
At its core, an iTwin includes several key components:
35
35
@@ -40,11 +40,11 @@ An **iModel** is a specialized cloud repository for 3D design data. It acts as a
40
40
> Have a Revit file for a building? Add it to the iModel.
41
41
> Got utility designs from MicroStation? Add them too.
42
42
43
-
The iModel isn’t just a storage format—it acts like **Git for infrastructure**. Designers "synchronize" their changes, which are stored as **changesets**. This allows for collaborative workflows, version tracking, and comparison of changes between versions.
43
+
The iModel isn’t just a storage format — it acts like **Git for infrastructure**. Designers commit - or in design words - **synchronize** their changes, which are stored as **changesets**. This allows for collaborative workflows, version tracking, and comparison of changes between versions.
44
44
45
45
#### 🌎 Reality Data: Contextual Visualization
46
46
47
-
Drones, scanners, and photogrammetry can capture detailed environmental data around your asset. This is imported into the iTwin to create photorealistic context and increase the accuracy of both design and decision-making.
47
+
Drones, scanners, and photogrammetry can capture detailed environmental data around your asset. This is imported into the iTwin to create photorealistic context and increase the accuracy of asset visualization and project decision-making.
48
48
49
49
#### 📊 Sensor Data: Real-Time Awareness
50
50
@@ -127,7 +127,7 @@ Design data becomes globally interactive. Combined with reality meshes and IoT d
127
127
128
128
The iTwin CLI makes it easy to build, manage, and explore digital twins using the iTwin Platform. For anyone interested in geospatial technology and digital twin workflows, it opens a new path to work with infrastructure data at scale, integrate diverse data sources, and publish them to a geospatially rich, interactive viewer.
129
129
130
-
Whether you’re just exploring or already building, the iTwin CLI is your entry point into a next-generation platform for digital infrastructure.
130
+
Whether you’re just exploring or already building, the iTwin CLI is your entry point into the next-generation platform for the infrastructure digital twin.
0 commit comments