v1.3.0CLILatest
1 min read

Multi-Project Support

CLI

The ApiVault CLI now natively supports multiple projects with a new projects command group and a global --project flag.

#CLI Multi-Project Support

The ApiVault CLI has been updated to seamlessly work with multi-project accounts. You can now use the apivault projects list command to see all your available workspaces and apivault projects use <id> to set your default project.

ShellShell
# List all accessible projects:
apivault projects list

# Switch active default project:
apivault projects use <project-id>

# Run a process with an explicit project override:
apivault run -p <project-id> -- npm start

All existing commands now accept a global -p, --project <id> flag to override the default project context. Additionally, if you work in multiple repositories, you can create a local .apivaultrc file in your codebase containing your project ID, and the CLI will automatically use it for that directory.