Skip to content

Commit 514aad3

Browse files
authored
Merge pull request #385 from opsmill/may-202504-docs-object-load-minor-fix
Fix object load command to from infrahub -> infrahubctl in topics/object_file.mdx
2 parents 89c823a + 4f4d994 commit 514aad3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/docs/python-sdk/topics/object_file.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Object files are meant to be used in an idempotent way and as such they work bet
2727
2828
## Load Object files into Infrahub
2929
30-
Object files can be loaded into Infrahub using the `infrahub object load` command.
30+
Object files can be loaded into Infrahub using the `infrahubctl object load` command.
3131

3232
```bash
33-
infrahub object load <path_to_object_file>
33+
infrahubctl object load <path_to_object_file>
3434
```
3535

3636
Multiple object files can be loaded at once by specifying the path to multiple files or by specifying a directory.
@@ -40,10 +40,10 @@ Also, if some objects present in different files are identical and dependent on
4040

4141
### Validate the format of object files
4242

43-
The object file can be validated using the `infrahub object validate` command.
43+
The object file can be validated using the `infrahubctl object validate` command.
4444

4545
```bash
46-
infrahub object validate <path_to_object_file>
46+
infrahubctl object validate <path_to_object_file>
4747
```
4848

4949
## Object file format
@@ -185,7 +185,7 @@ Metadata support is planned for future releases. Currently, the Object file does
185185

186186
1. **Objects not being created**: Ensure that the YAML syntax is correct and that the file follows the required format.
187187
2. **Dependency errors**: When objects depend on each other, load them in the correct order (dependencies first).
188-
3. **Validation errors**: Use the `infrahub object validate` command to check for syntax errors before loading.
188+
3. **Validation errors**: Use the `infrahubctl object validate` command to check for syntax errors before loading.
189189

190190
### Best practices
191191

0 commit comments

Comments
 (0)