Skip to content

Commit

Permalink
docs: add config-environment note
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Oct 29, 2023
1 parent 14a04d2 commit 378f8e5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# netsuite
---
hide:
- navigation
---

# netsuite python library

Make async requests to NetSuite SuiteTalk SOAP/REST Web Services and Restlets

Expand Down Expand Up @@ -78,6 +83,18 @@ You can add multiple sections like this. The `netsuite` section will be read by

The default location that will be read is `~/.config/netsuite.ini`. This can overriden with the `-p` flag.

Alternatively, you can source configuration from your environment variables instead (pairs well with [direnv](https://direnv.net)):

```shell
export NETSUITE_ACCOUNT=DIGITS_SB1
export NETSUITE_CONSUMER_KEY=LONGALPHANUMERIC
export NETSUITE_CONSUMER_SECRET=LONGALPHANUMERIC
export NETSUITE_TOKEN_ID=LONGALPHANUMERIC
export NETSUITE_TOKEN_SECRET=LONGALPHANUMERIC
```

And using the `--config-environment` flag when loading the CLI.

Append `--help` to the commands to see full documentation.

### `rest-api` - Make requests to NetSuite REST API
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
site_name: netsuite
repo_name: jacobsvante/netsuite
theme:
name: material
github_url: "https://github.com/jacobsvante/netsuite"

0 comments on commit 378f8e5

Please sign in to comment.