This document contains the help content for the sideko
command-line program.
Command Overview:
sideko
↴sideko login
↴sideko api
↴sideko api version
↴sideko api version create
↴sideko api version list
↴sideko api version update
↴sideko api create
↴sideko api list
↴sideko api stats
↴sideko sdk
↴sideko sdk init
↴sideko sdk config
↴sideko sdk config init
↴sideko sdk config sync
↴sideko sdk create
↴sideko sdk update
↴sideko doc
↴sideko doc list
↴sideko doc deploy
↴sideko logout
↴sideko config
↴sideko config autocomplete
↴
.*....*......*.....*......*....*........*....*.....
..####...######..#####...######..##..##...####..
.##........##....##..##..##......##.##...##..##.
..####.....##....##..##..####....####....##..##.
.....##....##....##..##..##......##.##...##..##.
..####...######..#####...######..##..##...####..
................................................
- Your API Ecosystem, On Autopilot
*....*......*.....*......*.....*......*.....*.....*
Usage: sideko [OPTIONS] <COMMAND>
login
— Authenticate CLI interactively via browserapi
— Manage API specificationssdk
— Generate, customize, and sync SDKsdoc
— Manage API documentation websiteslogout
— Logout of Sidekoconfig
— Configure the CLI
-q
,--quiet
— No logging except for errors-v
,--verbose
— Verbose logging (-v) or trace logging (-vv)--config <CONFIG>
— Load config from custom path
Authenticate CLI interactively via browser
Usage: sideko login [OPTIONS]
--key <KEY>
— Manually provide you Sideko API key to the CLI, this will take priority over browser login--output <OUTPUT>
— Path to file to store API key, default: $HOME/.sideko
Manage API specifications
Usage: sideko api <COMMAND>
version
— Manage API specification versionscreate
— Create a new APIlist
— List all APIsstats
— Display stats gathered from the API specification
Manage API specification versions
Usage: sideko api version <COMMAND>
create
— Create a new version of an API with an OpenAPI speclist
— List an APIs versionsupdate
— Updates an existing API version,
Create a new version of an API with an OpenAPI spec
Usage: sideko api version create [OPTIONS] --name <NAME> --version <VERSION> --spec <SPEC>
-
--name <NAME>
— API name or id e.g. my-api -
--version <VERSION>
— Semantic version (e.g.2.1.5
) or version bump (patch
,minor
,major
,rc
) -
--spec <SPEC>
— Path to OpenAPI spec (YAML or JSON format) -
--disable-mock
— Disable mock server for new version [default: enabled] -
--display <DISPLAY>
— Display result as a raw json or prettifiedDefault value:
pretty
Possible values:
raw
,pretty
List an APIs versions
Usage: sideko api version list [OPTIONS] --name <NAME>
-
--name <NAME>
— API name or id e.g. my-api -
--limit <LIMIT>
— Limit results to most recent N versions -
--display <DISPLAY>
— Display result as a raw json or prettifiedDefault value:
pretty
Possible values:
raw
,pretty
Updates an existing API version,
Usage: sideko api version update [OPTIONS] --name <NAME> --version <VERSION>
-
--name <NAME>
— API name or id e.g. my-api -
--version <VERSION>
— Version to update (e.g.2.1.5
orlatest
) -
--new-version <NEW_VERSION>
— Version to update with (e.g.2.1.5
) -
--spec <SPEC>
— Path to OpenAPI spec (YAML or JSON format) to update with -
--mock <MOCK>
— Enable or disable the mock serverPossible values:
true
,false
-
--display <DISPLAY>
— Display result as a raw json or prettifiedDefault value:
pretty
Possible values:
raw
,pretty
Create a new API
Usage: sideko api create [OPTIONS] --name <NAME> --version <VERSION> --spec <SPEC>
-
--name <NAME>
— Name of API (only alphanumeric characters and dashes, e.g.my-api
) -
--version <VERSION>
— Semantic version of initial version (e.g.2.1.5
) -
--spec <SPEC>
— Path to OpenAPI spec of initial version (YAML or JSON format) -
--disable-mock
— Disable mock server for initial version [default: enabled] -
--display <DISPLAY>
— Display result as a raw json or prettifiedDefault value:
pretty
Possible values:
raw
,pretty
List all APIs
Usage: sideko api list [OPTIONS]
-
--display <DISPLAY>
— Display result as a raw json or prettifiedDefault value:
pretty
Possible values:
raw
,pretty
Display stats gathered from the API specification
Usage: sideko api stats [OPTIONS] --name <NAME>
-
--name <NAME>
— API name or id e.g. my-api -
--version <VERSION>
— API name or id e.g. my-apiDefault value:
latest
-
--display <DISPLAY>
— Display result as a raw json or prettifiedDefault value:
pretty
Possible values:
raw
,pretty
Generate, customize, and sync SDKs
Usage: sideko sdk <COMMAND>
init
— Interactively configure and create suite of SDKs (recommended command for getting started)config
— Manage SDK configscreate
— Create an SDK using an SDK Configupdate
— Update SDK to implement changes to APIs
Interactively configure and create suite of SDKs (recommended command for getting started)
Usage: sideko sdk init
Manage SDK configs
Usage: sideko sdk config <COMMAND>
init
— Generate the default SDK configuration for an APIsync
— Sync SDK configuration file with an API version
Generate the default SDK configuration for an API
Usage: sideko sdk config init [OPTIONS] --api-name <API_NAME>
-
--api-name <API_NAME>
— API name or id e.g. my-api -
--api-version <API_VERSION>
— Generate config for specific version (e.g.2.1.5
)Default value:
latest
-
--x-mods
— Use thex-sideko-*
x-fields in OpenAPI to define the module structure/function names for the SDKIncluding this flag will cause the module config to be omitted from the generated config file.
-
--output <OUTPUT>
— Custom output path of SDK config (must be .yaml or .yml)Default value:
./sdk-config.yaml
Sync SDK configuration file with an API version
Usage: sideko sdk config sync [OPTIONS] --name <NAME> --config <CONFIG>
-
--name <NAME>
— API name or id e.g. my-api -
--version <VERSION>
— Sync config with specific version (e.g.2.1.5
)Default value:
latest
-
--spec <SPEC>
— Sync config with local OpenAPI specification -
--config <CONFIG>
— Config to sync -
--output <OUTPUT>
— Custom output path of SDK config (must be .yaml or .yml) [defaults to same path as --config] -
--x-mods
— Use thex-sideko-*
x-fields in OpenAPI to define the module structure/function names for the SDKIncluding this flag will cause the module config to be omitted from the generated config file.
Create an SDK using an SDK Config
Usage: sideko sdk create [OPTIONS] --config <CONFIG> --lang <LANG>
-
--config <CONFIG>
— Path to SDK config -
--lang <LANG>
— Programming language to generatePossible values:
python
,typescript
,rust
,go
,java
-
--version <VERSION>
— Semantic version of generated SDKDefault value:
0.1.0
-
--api-version <API_VERSION>
— Generate SDK for a specific version of the API (e.g.2.1.5
)Default value:
latest
-
--gh-actions
— Include Github actions for testing and publishing the SDK in the generation -
--output <OUTPUT>
— Path to save SDKDefault value:
./
Update SDK to implement changes to APIs
Usage: sideko sdk update [OPTIONS] --config <CONFIG> --repo <REPO> --version <VERSION>
-
--config <CONFIG>
— Path to SDK config -
--repo <REPO>
— Path to root of SDK repo -
--version <VERSION>
— Semantic version of generated SDK (e.g.2.1.5
) or version bump (patch
,minor
,major
,rc
) -
--api-version <API_VERSION>
— API version to update SDK with (e.g.2.1.5
)Default value:
latest
Manage API documentation websites
Usage: sideko doc <COMMAND>
list
— List all documentation websitesdeploy
— Trigger documentation website deployment to preview or production
List all documentation websites
Usage: sideko doc list [OPTIONS]
-
--display <DISPLAY>
— Display result as a raw json or prettifiedDefault value:
pretty
Possible values:
raw
,pretty
Trigger documentation website deployment to preview or production
Usage: sideko doc deploy [OPTIONS] --name <NAME>
--name <NAME>
— Doc project name or id e.g. my-docs--prod
— Deploy to production [default: preview]--no-wait
— Exit command after successful trigger [default: waits until deployment completes]
Logout of Sideko
Removes the Sideko API key from the OS-native key service (e.g. keychain
on macOS, keyutils
on Linux, Windows Credential Manager
on Windows)
Usage: sideko logout
Configure the CLI
Usage: sideko config <COMMAND>
autocomplete
— Writes shell completion for the CLI to stdout
Writes shell completion for the CLI to stdout
Example (zsh
): sideko config autocomplete --shell zsh > ~/sideko-complete.sh
Then add source ~/sideko-complete.sh
to ~/.zshrc
Usage: sideko config autocomplete --shell <SHELL>
-
--shell <SHELL>
— Generate completions for the specified shellPossible values:
bash
,elvish
,fish
,powershell
,zsh