v1.4.0CLI
•1 min read

Link a directory to a project with .apivault.json

You can now save a project binding, default run command, environment, and vault key in an .apivault.json file in your project root. The CLI uses it whenever you work in that directory.

Shell
# Link the current directory to a project
apivault link <id>

# See the active project and where it came from
apivault projects current

# Remove the link
apivault unlink

apivault projects use <id> now links the current directory by default. Pass --global to set a system-wide default instead.

#Config scopes

All apivault config commands now accept --local (-l) and --global (-g). Local settings take precedence over global ones.

Learn more in the project linking guide.