Install the Codiac CLI
Learn how to install and use the Codiac command-line interface (CLI).
The codiac command is automatically aliased to cod to save typing. For example, you can type cod -h instead of codiac -h.
Windows
Windows
Install
-
Use a package manager like Node.js to install npm on your system if you don't have it already.
-
Open PowerShell then use npm to install the
codiac-clipackage:
npm i -g @codiac.io/codiac-cli
Authenticate
Before you access Codiac, you need to authenticate your session.
- Use
codiac loginto log into Codiac:
codiac login
The command prompts you to authenticate with your Codiac username and password.
- Use
codiac csp loginto log into your cloud service provider:
codiac csp login
The command prompts you to:
- Authenticate with your Codiac username and password.
- Select your tenant.
- Select the cloud provider for your project.
The CLI then authenticates with your cloud provider.
Update
- Use npm to update the Codiac CLI:
npm i -g @codiac.io/codiac-cli
- Use
codiac -vto check the version number:
Help
Use the -h flag to view the help documentation for the CLI commands. For example:
codiac -h
codiac asset -h
codiac asset view -h
You can also use the CLI command reference page.
macOS
macOS
Install
-
Use a package manager like Node.js to install npm on your system if you don't have it already.
-
Open a Terminal window then use npm to install the
codiac-clipackage:
npm i -g @codiac.io/codiac-cli
Authenticate
Before you access Codiac, you need to authenticate your session.
- Use
codiac loginto log into Codiac:
codiac login
The command prompts you to authenticate with your Codiac username and password.
- Use
codiac csp loginto log into your cloud service provider:
codiac csp login
The command prompts you to:
- Authenticate with your Codiac username and password.
- Select your tenant.
- Select the cloud provider for your project.
The CLI then authenticates with your cloud provider.
Update
- Use npm to update the Codiac CLI:
npm i -g @codiac.io/codiac-cli
- Use
codiac -vto check the version number:
Help
Use the -h flag to view the help documentation for the CLI commands. For example:
codiac -h
codiac asset -h
codiac asset view -h
You can also use the CLI command reference page.
Linux
Linux
Install
-
Use a package manager like Node.js to install npm on your system if you don't have it already.
-
Use npm to install the
codiac-clipackage:
npm i -g @codiac.io/codiac-cli
Authenticate
Before you access Codiac, you need to authenticate your session.
- Use
codiac loginto log into Codiac:
codiac login
The command prompts you to authenticate with your Codiac username and password.
- Use
codiac csp loginto log into your cloud service provider:
codiac csp login
The command prompts you to:
- Authenticate with your Codiac username and password.
- Select your tenant.
- Select the cloud provider for your project.
The CLI then authenticates with your cloud provider.
Update
- Use npm to update the Codiac CLI:
npm i -g @codiac.io/codiac-cli
- Use
codiac -vto check the version number:
Help
Use the -h flag to view the help documentation for the CLI commands. For example:
codiac -h
codiac asset -h
codiac asset view -h
You can also use the CLI command reference page.