Skip to content

Commit d755f0f

Browse files
authored
Merge pull request #3381 from reubenmiller/docs-fix-smartrest-one-notes
docs: fix Cumulocity username/password instructions
2 parents f80c5b4 + 1f48d03 commit d755f0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/operate/c8y/smartrest-one.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ This guide is intended for users who must use the SmartREST 1.0 for specific rea
1717
To use SmartREST 1.0, the authentication mode must be set to `basic` using the `tedge config` CLI tool:
1818

1919
```sh
20-
sudo tedge config set c8y.auth_mode basic
20+
sudo tedge config set c8y.auth_method basic
2121
```
2222

2323
Next, provide credentials (username/password) in a credential file formatted as follows.
2424
The default location of the credentials file is `/etc/tedge/credentials.toml`:
2525

26-
```toml
26+
```toml title="file: /etc/tedge/credentials.toml"
2727
[c8y]
2828
username = "t5678/octocat"
2929
password = "abcd1234"
@@ -32,7 +32,7 @@ password = "abcd1234"
3232
If needed, you can specify a custom location for the credentials file using the `tedge config` CLI tool:
3333

3434
```sh
35-
sudo tedge config set c8y.credentials_path </custom/path/to/credentials.toml>
35+
sudo tedge config set c8y.credentials_path /custom/path/to/credentials.toml
3636
```
3737

3838
## Configuring the device ID

0 commit comments

Comments
 (0)