Resources Commands
Learn about Cased CLI resources and commands
Cased CLI provides several commands for managing and viewing your resources, including projects, targets, branches, and deployments. This guide covers the key commands you’ll use to interact with these resources.
Projects
The projects
command helps you manage and switch between different Cased projects.
Usage
Running this command will:
- Display a list of all available projects
- Show which project is currently selected
- Allow you to switch between projects
- Store the selected project’s information for future commands
Options
--details
or-d
: Show detailed information about each project (default: true)
Example Output
Targets
The targets
command allows you to view deployment environments for your project.
Example Output
Branches
The branches
command provides visibility into your active branches and their status.
Usage
View a comprehensive table showing:
- Branch names
- Authors
- Associated PR information
- Deployment eligibility
- Check statuses
Options
--limit
: Specify the number of branches to display--project
: Filter branches by specific project
Example Output
Deployments
The deployments
command helps you track and monitor your deployment history.
Usage
View deployment information including:
- Deployment timestamps (begin/end times)
- Deployer information
- Current status
- Associated branch
- Target environment
Options
--limit
: Specify the number of deployments to display--project
: Filter deployments by specific project--target
: Filter deployments by target environment
Example Output
Using Resources Together
These commands work together to provide a complete view of your deployment pipeline:
- Use
projects
to select your working project - Check available
targets
for deployment - Review
branches
to see what’s ready for deployment - Monitor
deployments
to track the status of your releases
Each command provides specific information while working together as part of a cohesive deployment workflow.