Update cheatsheets

This commit is contained in:
ivuorinen
2024-08-04 00:16:38 +00:00
parent 76321127ee
commit 680f252b67
5 changed files with 122 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`arduino-builder -build-path {{path/to/build_directory}}`
- Use a build option file, instead of specifying `--hardware`, `--tools`, etc. manually every time:
- Use a build option file, instead of specifying `-hardware`, `-tools`, etc. manually every time:
`arduino-builder -build-options-file {{path/to/build.options.json}}`

34
tldr/doppler Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# doppler
> Manage environment variables across different environments using Doppler.
> Some subcommands such as `doppler run` and `doppler secrets` have their own usage documentation.
> More information: <https://docs.doppler.com/docs/cli>.
- Setup Doppler CLI in the current directory:
`doppler setup`
- Setup Doppler project and config in current directory:
`doppler setup`
- Run a command with secrets injected into the environment:
`doppler run --command {{command}}`
- View your project list:
`doppler projects`
- View your secrets for current project:
`doppler secrets`
- Open doppler dashboard in browser:
`doppler open`

29
tldr/doppler-projects Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# doppler projects
> Manage Doppler Projects.
> More information: <https://docs.doppler.com/docs/cli>.
- Get all projects:
`doppler projects`
- Get info for a project:
`doppler projects get {{name|project_id}}`
- Create a project:
`doppler projects create {{name}}`
- Update a project's name and description:
`doppler projects update {{name|project_id}} --name "{{new_name}}" --description "{{new_description}}"`
- Delete a project:
`doppler projects delete {{name|project_id}}`

29
tldr/doppler-run Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# doppler run
> Run a command with Doppler secrets injected into the environment.
> More information: <https://docs.doppler.com/docs/cli#run-a-command-with-secrets-populated-in-environment>.
- Run a command:
`doppler run --command {{command}}`
- Run multiple commands:
`doppler run --command {{command1 && command2}}`
- Run a script:
`doppler run {{path/to/command.sh}}`
- Run command with specified project and config:
`doppler run -p {{project_name}} -c {{config_name}} -- {{command}}`
- Automatically restart process when secrets change:
`doppler run --watch {{command}}`

29
tldr/doppler-secrets Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# doppler secrets
> Manage your Doppler project's secrets.
> More information: <https://docs.doppler.com/docs/accessing-secrets>.
- Get all secrets:
`doppler secrets`
- Get value(s) of one or more secrets:
`doppler secrets get {{secrets}}`
- Upload a secrets file:
`doppler secrets upload {{path/to/file.env}}`
- Delete value(s) of one or more secrets:
`doppler secrets delete {{secrets}}`
- Download secrets as `.env`:
`doppler secrets download --format=env --no-file > {{path/to/.env}}`